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 <Project>{F74F55A1-DFCF-4C7C-B462-E96E1D0BB667}</Project>
12 <ProjectReference Include="CMakeLists.txt" />
15 <Compile Include="main.cs" />
18 <CLRTestBatchPreCommands><![CDATA[
19 $(CLRTestBatchPreCommands)
21 REM Suppress some COMPlus variables for the duration of Crossgen2 execution
24 set "COMPlus_GCStress="
25 set "COMPlus_HeapVerify="
26 set "COMPlus_ReadyToRun="
30 echo FAILED to delete test.dll
33 COPY /Y ..\testv1\test\test.dll test.dll
34 if not exist test.dll (
35 echo FAILED to copy test.dll
39 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:test.ni.dll test.dll
41 set CrossGenStatus=!ERRORLEVEL!
42 IF NOT !CrossGenStatus!==0 (
43 ECHO Crossgen failed with exitcode - !CrossGenStatus!
46 if not exist test.ni.dll (
47 echo FAILED to build test.ni.dll
51 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:fieldgetter.ni.dll fieldgetter.dll
53 set CrossGenStatus=!ERRORLEVEL!
54 IF NOT !CrossGenStatus!==0 (
55 ECHO Crossgen failed with exitcode - !CrossGenStatus!
58 if not exist fieldgetter.ni.dll (
59 echo FAILED to build fieldgetter.ni.dll
63 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:mainv1.ni.dll mainv1.dll
65 set CrossGenStatus=!ERRORLEVEL!
66 IF NOT !CrossGenStatus!==0 (
67 ECHO Crossgen failed with exitcode - !CrossGenStatus!
70 if not exist mainv1.ni.dll (
71 echo FAILED to build mainv1.ni.dll
76 ]]></CLRTestBatchPreCommands>
77 <BashCLRTestPreCommands><![CDATA[
78 $(BashCLRTestPreCommands)
80 # Suppress some COMPlus variables for the duration of Crossgen2 execution
81 export -n COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
86 echo Failed to delete test.dll
89 cp ../testv1/test/test.dll test.dll
92 echo Failed to copy test.dll
95 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:test.ni.dll test.dll
98 if [ $__cgExitCode -ne 0 ]
100 echo Crossgen failed with exitcode: $__cgExitCode
103 if [ ! -f test.ni.dll ]
105 echo Failed to build test.ni.dll
109 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:fieldgetter.ni.dll fieldgetter.dll
112 if [ $__cgExitCode -ne 0 ]
114 echo Crossgen failed with exitcode: $__cgExitCode
117 if [ ! -f fieldgetter.ni.dll ]
119 echo Failed to build fieldgetter.ni.dll
123 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:mainv1.ni.dll mainv1.dll
126 if [ $__cgExitCode -ne 0 ]
128 echo Crossgen failed with exitcode: $__cgExitCode
131 if [ ! -f mainv1.ni.dll ]
133 echo Failed to build mainv1.ni.dll
137 export COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
138 ]]></BashCLRTestPreCommands>