1 <Project Sdk="Microsoft.NET.Sdk">
3 <OutputType>exe</OutputType>
4 <CLRTestKind>BuildAndRun</CLRTestKind>
5 <CrossGenTest>false</CrossGenTest>
8 <ProjectReference Include="fieldgetter.ilproj" />
9 <ProjectReference Include="testv1\test.csproj" />
10 <ProjectReference Include="CMakeLists.txt" />
13 <Compile Include="main.cs" />
16 <CLRTestBatchPreCommands><![CDATA[
17 $(CLRTestBatchPreCommands)
19 REM Suppress some COMPlus variables for the duration of Crossgen2 execution
22 set "COMPlus_GCStress="
23 set "COMPlus_HeapVerify="
24 set "COMPlus_ReadyToRun="
28 echo FAILED to delete test.dll
31 COPY /Y ..\testv1\test\test.dll test.dll
32 if not exist test.dll (
33 echo FAILED to copy test.dll
37 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:mainv2.ni.dll mainv2.dll
39 set CrossGenStatus=!ERRORLEVEL!
40 IF NOT !CrossGenStatus!==0 (
41 ECHO Crossgen failed with exitcode - !CrossGenStatus!
44 if not exist mainv2.ni.dll (
45 echo FAILED to build mainv2.ni.dll
49 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:fieldgetter.ni.dll fieldgetter.dll
51 set CrossGenStatus=!ERRORLEVEL!
52 IF NOT !CrossGenStatus!==0 (
53 ECHO Crossgen failed with exitcode - !CrossGenStatus!
56 if not exist fieldgetter.ni.dll (
57 echo FAILED to build fieldgetter.ni.dll
62 echo FAILED to delete test.dll
65 COPY /Y ..\testv2\test\test.dll test.dll
66 if not exist test.dll (
67 echo FAILED to copy test.dll
71 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:test.ni.dll test.dll
73 set CrossGenStatus=!ERRORLEVEL!
74 IF NOT !CrossGenStatus!==0 (
75 ECHO Crossgen failed with exitcode - !CrossGenStatus!
78 if not exist test.ni.dll (
79 echo FAILED to build test.ni.dll
84 ]]></CLRTestBatchPreCommands>
85 <BashCLRTestPreCommands><![CDATA[
86 $(BashCLRTestPreCommands)
88 # Suppress some COMPlus variables for the duration of Crossgen2 execution
89 export -n COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
94 echo Failed to delete test.dll
97 cp ../testv1/test/test.dll test.dll
100 echo Failed to copy test.dll
104 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:mainv2.ni.dll mainv2.dll
107 if [ $__cgExitCode -ne 0 ]
109 echo Crossgen failed with exitcode: $__cgExitCode
112 if [ ! -f mainv2.ni.dll ]
114 echo Failed to build mainv2.ni.dll
118 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:fieldgetter.ni.dll fieldgetter.dll
121 if [ $__cgExitCode -ne 0 ]
123 echo Crossgen failed with exitcode: $__cgExitCode
126 if [ ! -f fieldgetter.ni.dll ]
128 echo Failed to build fieldgetter.ni.dll
134 echo Failed to delete test.dll
137 cp ../testv2/test/test.dll test.dll
140 echo Failed to copy test.dll
144 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:test.ni.dll test.dll
147 if [ $__cgExitCode -ne 0 ]
149 echo Crossgen failed with exitcode: $__cgExitCode
152 if [ ! -f test.ni.dll ]
154 echo Failed to build test.ni.dll
158 export COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
159 ]]></BashCLRTestPreCommands>