1 <Project Sdk="Microsoft.NET.Sdk">
3 <OutputType>Exe</OutputType>
4 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5 <Optimize>true</Optimize>
6 <CLRTestPriority>0</CLRTestPriority>
7 <!-- Generated shell script and corresponding assembly have different names -->
8 <CLRTestTargetUnsupported Condition="'$(TargetOS)' == 'Android'">true</CLRTestTargetUnsupported>
11 <Compile Include="BasicTestWithMcj.cs" />
14 <None Include="RunBasicTestWithMcj.cmd">
15 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
17 <None Include="RunBasicTestWithMcj.sh">
18 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
22 <CLRTestBatchPreCommands><![CDATA[
23 $(CLRTestBatchPreCommands)
26 REM Suppress some COMPlus variables for the duration of Crossgen2 execution
29 set "COMPlus_GCStress="
30 set "COMPlus_HeapVerify="
31 set "COMPlus_ReadyToRun="
33 "%CORE_ROOT%\corerun" %CORE_ROOT%\crossgen2\crossgen2.dll --out r2r\$(MSBuildProjectName).dll $(MSBuildProjectName).dll -r %CORE_ROOT%\*.dll
36 set CLRCustomTestLauncher=RunBasicTestWithMcj.cmd --runCustomTest
37 ]]></CLRTestBatchPreCommands>
38 <BashCLRTestPreCommands><![CDATA[
39 $(BashCLRTestPreCommands)
42 # Suppress some COMPlus variables for the duration of Crossgen2 execution
43 export -n COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
45 "$CORE_ROOT/corerun" $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options --out r2r/$(MSBuildProjectName).dll $(MSBuildProjectName).dll -r $CORE_ROOT/*.dll
47 export COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
48 chmod +x ./RunBasicTestWithMcj.sh
49 export CLRCustomTestLauncher="./RunBasicTestWithMcj.sh --runCustomTest"
50 ]]></BashCLRTestPreCommands>