|
<Project Sdk="Microsoft.NET.Sdk">
<!-- The .NET Core version of MSBuild doesn't support targeting .NET Framework 3.5. So in that case, we import
a .props file that prevents building the project from doing much of anything. -->
<Import Project="$(RepoRoot)eng\ProducesNoOutput.Settings.props" Condition="'$(MSBuildRuntimeType)' == 'Core'" />
<PropertyGroup>
<TargetFramework>net35</TargetFramework>
<OutputType>Exe</OutputType>
<PlatformTarget Condition="'$(Platform)' == 'x64'">x64</PlatformTarget>
<PlatformTarget Condition="'$(Platform)' == 'AnyCPU'">x86</PlatformTarget>
<!-- Set RuntimeIdentifiers so that NuGet will restore for both AnyCPU as well as x86 and x64.
This is important for the MSBuild.VSSetup project, which "references" both the x86 and x64
versions of this project -->
<RuntimeIdentifiers Condition="'$(DotNetBuildSourceOnly)' != 'true'">win7-x86;win7-x64</RuntimeIdentifiers>
<UseRidGraph>true</UseRidGraph>
<RootNamespace>Microsoft.Build.TaskHost</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- It is vital that msbuildtaskhost.exe is allowed to use the full 4GB on 64 bit machines in order to help avoid
out of memory problems on large trees -->
<LargeAddressAware>true</LargeAddressAware>
<ApplicationIcon>MSBuild.ico</ApplicationIcon>
<!-- workaround for https://github.com/dotnet/msbuild/issues/5620 -->
<BypassFrameworkInstallChecks>true</BypassFrameworkInstallChecks>
<!-- Work around arcade stomping on symbols for same-program-different-arches. -->
<DebugType>full</DebugType>
<!-- Work around arcade generating invalid string resource code on .NET 3.5 -->
<DefineConstants>$(DefineConstants);NET20</DefineConstants>
</PropertyGroup>
<ItemGroup>
<None Remove="MSBuild.ico" />
<Content Include="MSBuild.ico" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.Build.Framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>true</SpecificVersion>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StringTools\StringTools.csproj" />
</ItemGroup>
<ItemGroup>
<!-- Disabled PdbGit because of warnings; it could/should be brought back.
<PackageReference Include="PdbGit" /> -->
<PackageReference Include="LargeAddressAware" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\SR.resx">
<GenerateSource>true</GenerateSource>
</EmbeddedResource>
</ItemGroup>
</Project>
|