File: MSBuildTaskHost.csproj
Web Access
Project: ..\..\..\src\MSBuildTaskHost\MSBuildTaskHost.csproj (MSBuildTaskHost)
<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="'$(DotNetBuildFromSource)' != 'true'">win7-x86;win7-x64</RuntimeIdentifiers>
    <UseRidGraph>true</UseRidGraph>
 
    <EnableDefaultItems>false</EnableDefaultItems>
    <DefineConstants>$(DefineConstants);CLR2COMPATIBILITY;TASKHOST;NO_FRAMEWORK_IVT</DefineConstants>
    <!-- Need pointers for getting environment block -->
    <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\MSBuild.ico</ApplicationIcon>
 
    <!-- workaround for https://github.com/dotnet/msbuild/issues/5620 -->
    <BypassFrameworkInstallChecks>true</BypassFrameworkInstallChecks>
 
    <DebugType>full</DebugType><!-- Work around arcade stomping on symbols for same-program-different-arches. -->
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.Build.Framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <SpecificVersion>true</SpecificVersion>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <!-- Source Files -->
    <Compile Include="..\Shared\BuildEnvironmentHelper.cs">
      <Link>BuildEnvironmentHelper.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildEnvironmentState.cs">
      <Link>BuildEnvironmentState.cs</Link>
    </Compile>
    <Compile Include="..\Shared\AssemblyNameComparer.cs">
      <Link>AssemblyNameComparer.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildEngineResult.cs">
      <Link>BuildEngineResult.cs</Link>
    </Compile>
    <Compile Include="..\Framework\IBuildEngine3.cs">
      <Link>IBuildEngine3.cs</Link>
    </Compile>
    <Compile Include="..\Framework\RunInSTAAttribute.cs">
      <Link>RunInSTAAtribute.cs</Link>
    </Compile>
    <Compile Include="..\Framework\ITaskItem2.cs">
      <Link>ITaskItem2.cs</Link>
    </Compile>
    <Compile Include="..\Framework\IExtendedBuildEventArgs.cs">
      <Link>IExtendedBuildEventArgs.cs</Link>
    </Compile>
    <Compile Include="..\Framework\AssemblyUtilities.cs" />
    <Compile Include="..\Framework\NullableAttributes.cs" />
    <Compile Include="..\Framework\ResponseFileUsedEventArgs.cs" />
    <Compile Include="..\Shared\BufferedReadStream.cs" />
    <Compile Include="..\Shared\CollectionHelpers.cs" />
    <Compile Include="..\Shared\CopyOnWriteDictionary.cs">
      <Link>CopyOnWriteDictionary.cs</Link>
    </Compile>
    <Compile Include="..\Shared\Constants.cs" />
    <Compile Include="..\Shared\ReadOnlyEmptyDictionary.cs" />
    <Compile Include="..\Framework\ErrorUtilities.cs">
      <Link>ErrorUtilities.cs</Link>
    </Compile>
    <Compile Include="..\Shared\ErrorUtilities.cs">
      <Link>SharedErrorUtilities.cs</Link>
    </Compile>
    <Compile Include="..\Shared\EscapingUtilities.cs">
      <Link>EscapingUtilities.cs</Link>
    </Compile>
    <Compile Include="..\Shared\ExceptionHandling.cs">
      <Link>ExceptionHandling.cs</Link>
    </Compile>
    <Compile Include="..\Shared\FileUtilities.cs">
      <Link>FileUtilities.cs</Link>
    </Compile>
    <Compile Include="..\Shared\FileUtilitiesRegex.cs">
      <Link>FileUtilitiesRegex.cs</Link>
    </Compile>
    <Compile Include="..\Shared\INodeEndpoint.cs">
      <Link>INodeEndpoint.cs</Link>
    </Compile>
    <Compile Include="..\Shared\INodePacket.cs">
      <Link>INodePacket.cs</Link>
    </Compile>
    <Compile Include="..\Shared\INodePacketFactory.cs">
      <Link>INodePacketFactory.cs</Link>
    </Compile>
    <Compile Include="..\Shared\INodePacketHandler.cs">
      <Link>INodePacketHandler.cs</Link>
    </Compile>
    <Compile Include="..\Framework\ITranslatable.cs">
      <Link>ITranslatable.cs</Link>
    </Compile>
    <Compile Include="..\Framework\ITranslator.cs">
      <Link>ITranslator.cs</Link>
    </Compile>
    <Compile Include="..\Shared\TranslatorHelpers.cs" />
    <Compile Include="..\Framework\InternalErrorException.cs">
      <Link>InternalErrorException.cs</Link>
    </Compile>
    <Compile Include="..\Shared\InterningBinaryReader.cs">
      <Link>InterningBinaryReader.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BinaryReaderFactory.cs">
      <Link>BinaryReaderFactory.cs</Link>
    </Compile>
    <Compile Include="..\Shared\BinaryReaderExtensions.cs">
      <Link>BinaryReaderExtensions.cs</Link>
    </Compile>
    <Compile Include="..\Shared\BinaryWriterExtensions.cs">
      <Link>BinaryWriterExtensions.cs</Link>
    </Compile>
    <Compile Include="..\Shared\LogMessagePacketBase.cs">
      <Link>LogMessagePacketBase.cs</Link>
    </Compile>
    <Compile Include="..\Shared\Modifiers.cs">
      <Link>Modifiers.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NamedPipeUtil.cs" />
    <Compile Include="..\Framework\NativeMethods.cs">
      <Link>NativeMethodsShared.cs</Link>
    </Compile>
    <Compile Include="..\Framework\Logging\AnsiDetector.cs">
      <Link>AnsiDetector.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NodeBuildComplete.cs">
      <Link>NodeBuildComplete.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NodeEndpointOutOfProcBase.cs">
      <Link>NodeEndpointOutOfProcBase.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NodeEngineShutdownReason.cs">
      <Link>NodeEngineShutdownReason.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NodePacketFactory.cs">
      <Link>NodePacketFactory.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BinaryTranslator.cs">
      <Link>BinaryTranslator.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildException\BuildExceptionBase.cs">
      <Link>BuildExceptionBase.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildException\BuildExceptionRemoteState.cs">
      <Link>BuildExceptionRemoteState.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildException\BuildExceptionSerializationHelper.cs">
      <Link>BuildExceptionSerializationHelper.cs</Link>
    </Compile>
    <Compile Include="..\Framework\BuildException\GenericBuildTransferredException.cs">
      <Link>GenericBuildTransferredException.cs</Link>
    </Compile>
    <Compile Include="..\Shared\NodeShutdown.cs">
      <Link>NodeShutdown.cs</Link>
    </Compile>
    <Compile Include="..\Shared\ReadOnlyEmptyCollection.cs">
      <Link>ReadOnlyEmptyCollection.cs</Link>
    </Compile>
    <Compile Include="..\Shared\ResourceUtilities.cs">
      <Link>ResourceUtilities.cs</Link>
    </Compile>
    <Compile Include="..\Framework\StringBuilderCache.cs">
      <Link>StringBuilderCache.cs</Link>
    </Compile>
    <Compile Include="..\Framework\SupportedOSPlatform.cs">
      <Link>SupportedOSPlatform.cs</Link>
    </Compile>
    <Compile Include="..\Shared\TaskEngineAssemblyResolver.cs">
      <Link>TaskEngineAssemblyResolver.cs</Link>
    </Compile>
    <Compile Include="..\Shared\TaskParameterTypeVerifier.cs">
      <Link>TaskParameterTypeVerifier.cs</Link>
    </Compile>
    <Compile Include="..\Framework\Traits.cs">
      <Link>FrameworkTraits.cs</Link>
    </Compile>
    <Compile Include="..\Framework\VisualStudioLocationHelper.cs">
      <Link>VisualStudioLocationHelper.cs</Link>
    </Compile>
    <Compile Include="..\Shared\XMakeAttributes.cs">
      <Link>XMakeAttributes.cs</Link>
    </Compile>
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="AssemblyResources.cs" />
    <Compile Include="..\Framework\ChangeWaves.cs">
      <Link>ChangeWaves.cs</Link>
    </Compile>
    <Compile Include="Concurrent\ConcurrentDictionary.cs" />
    <Compile Include="Concurrent\ConcurrentQueue.cs" />
    <Compile Include="Immutable\ImmutableDictionary.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="TypeLoader.cs" />
    <Compile Include="..\MSBuild\LogMessagePacket.cs">
      <Link>LogMessagePacket.cs</Link>
    </Compile>
    <Compile Include="OutOfProcTaskHost.cs" />
    <Compile Include="..\Shared\CommunicationsUtilities.cs" />
    <Compile Include="..\Shared\TaskHostConfiguration.cs" />
    <Compile Include="..\Shared\TaskHostTaskComplete.cs" />
    <Compile Include="..\Shared\OutOfProcTaskHostTaskResult.cs">
      <Link>OutOfProcTaskHostTaskResult.cs</Link>
    </Compile>
    <Compile Include="..\Shared\TaskLoader.cs" />
    <Compile Include="..\Shared\LoadedType.cs" />
    <Compile Include="..\Shared\AssemblyLoadInfo.cs" />
    <Compile Include="..\Shared\TaskHostTaskCancelled.cs" />
    <Compile Include="..\Shared\TaskParameter.cs" />
    <Compile Include="..\Shared\AssemblyNameExtension.cs" />
 
    <Compile Include="..\Shared\FileSystem\IFileSystem.cs" />
    <Compile Include="..\Shared\FileSystem\FileSystems.cs" />
    <Compile Include="FileSystem\MSBuildTaskHostFileSystem.cs" />
 
    <Compile Include="..\MSBuild\NodeEndpointOutOfProcTaskHost.cs" />
    <Compile Include="..\MSBuild\OutOfProcTaskHostNode.cs" />
    <Compile Include="..\MSBuild\OutOfProcTaskAppDomainWrapperBase.cs">
      <Link>OutOfProcTaskAppDomainWrapperBase.cs</Link>
    </Compile>
    <Compile Include="OutOfProcTaskAppDomainWrapper.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="app.config" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="..\Shared\Resources\Strings.shared.resx">
      <LogicalName>$(AssemblyName).Strings.shared.resources</LogicalName>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\MSBuild\MSBuild.ico" />
  </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>
</Project>