set __ExtraBuildArgs=!__ExtraBuildArgs! -SkipSOS=true
)
+ if "%__BuildManagedTools%" == "1" (
+ set __ExtraBuildArgs=!__ExtraBuildArgs! -BuildManagedTools=true
+ )
+
if /i "%__BuildArch%" == "arm64" (
set __nugetBuildArgs=-buildNugetPackage=false
) else if "%__SkipNugetPackage%" == "1" (
<Delete Files="$(BinDir)SOS.NETCore.*" />
<Delete Files="$(BinDir)mscorlib.*" />
<Delete Files="$(BinDir)System.Private.CoreLib.*" />
+ <Delete Files="$(BinDir)netcoreapp2.0/R2RDump.*" />
</Target>
<!--
"values": [ true, false ],
"defaultValue": false
},
+ "BuildManagedTools": {
+ "description": "",
+ "valueType": "property",
+ "values": [ true, false ],
+ "defaultValue": true
+ },
"SignType": {
"description": "Sets the SignType.",
"valueType": "property",
<ItemGroup>
<Project Condition="$(SkipSOS) != 'true'" Include="ToolBox\SOS\NETCore\SOS.NETCore.csproj" />
<Project Include="System.Private.CoreLib\System.Private.CoreLib.csproj" />
- <Project Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(__BuildManagedTools)' == '1'" Include="tools/r2rdump/R2RDump.csproj" />
+ <Project Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" Include="tools/r2rdump/R2RDump.csproj" />
</ItemGroup>
<Import Project="..\dir.targets" />
<CoreLibPDBPath>$(BinDir)System.Private.CoreLib.pdb</CoreLibPDBPath>
</PropertyGroup>
- <Target Name="RestoreR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(__BuildManagedTools)' == '1'" BeforeTargets="Build">
+ <Target Name="RestoreR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" BeforeTargets="Build">
<Exec Command="$(DotnetRestoreCommand) tools/r2rdump/R2RDump.csproj"
StandardOutputImportance="Low" />
</Target>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>Exe</OutputType>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <NoStdLib>true</NoStdLib>
- <NoCompilerStandardLib>true</NoCompilerStandardLib>
- <IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
- <AssemblyKey>Open</AssemblyKey>
- <ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
+ <AssemblyKey>Open</AssemblyKey>
+ <IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
</PropertyGroup>
<PropertyGroup>