File: Microsoft.NET.TestFramework.csproj
Web Access
Project: ..\..\..\test\Microsoft.NET.TestFramework\Microsoft.NET.TestFramework.csproj (Microsoft.NET.TestFramework)
<Project>
 
  <PropertyGroup>
    <EnableDefaultItems>false</EnableDefaultItems>
  </PropertyGroup>
 
  <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
 
  <PropertyGroup>
    <!-- PackageReference to xunit defaults IsTestProject to true, which we don't want for TestFramework
         If IsTestProject is true, then Arcade automatically adds a reference to Microsoft.NET.Test.Sdk,
         which sets the OutputType to Exe, which is what we use to determine whether a project should
         have the common Program.cs included.  We don't want that in this project to avoid type conflicts
         with the actual test projects that reference it.
    -->
    <IsTestProject>false</IsTestProject>
 
    <TargetFrameworks>$(SdkTargetFramework);net472</TargetFrameworks>
  </PropertyGroup>
 
  <ItemGroup>
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
      <_Parameter1>NewtonsoftJsonPackageVersion</_Parameter1>
      <_Parameter2>$(NewtonsoftJsonPackageVersion)</_Parameter2>
    </AssemblyAttribute>
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
      <_Parameter1>SystemDataSqlClientPackageVersion</_Parameter1>
      <_Parameter2>$(SystemDataSqlClientPackageVersion)</_Parameter2>
    </AssemblyAttribute>
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" >
      <_Parameter1>MicrosoftAspNetCoreAppRefPackageVersion</_Parameter1>
      <_Parameter2>$(MicrosoftAspNetCoreAppRefPackageVersion)</_Parameter2>
    </AssemblyAttribute>
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" >
      <_Parameter1>AspirePackageVersion</_Parameter1>
      <_Parameter2>$(AspirePackageVersion)</_Parameter2>
    </AssemblyAttribute>
  </ItemGroup>
 
  <ItemGroup>
    <!--
    WARNING: Do not add dependencies on MSBuild packages.
    Some tests (e.g. dotnet-watch.Tests) need to have total control over the loading of MSBuild assemblies.
    -->
 
    <PackageReference Include="DiffPlex" />
    <PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" />
    <PackageReference Include="Microsoft.Extensions.Logging" />
    <PackageReference Include="Newtonsoft.Json" />
    <PackageReference Include="System.IO.Hashing" />
    <PackageReference Include="xunit" />
  </ItemGroup>
 
  <!-- Packages that are in-box for .NET Core, so we only need to reference them for .NET Framework -->
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <PackageReference Include="System.Reflection.Metadata" VersionOverride="$(SystemReflectionMetadataToolsetPackageVersion)" />
    <PackageReference Include="System.Reflection.MetadataLoadContext" VersionOverride="$(SystemReflectionMetadataLoadContextToolsetPackageVersion)" />
  </ItemGroup>
 
  <ItemGroup>
    <ProjectReference Include="..\..\src\Cli\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
    <ProjectReference Include="..\..\src\Cli\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
  </ItemGroup>
 
  <ItemGroup>
    <Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
    <Compile Include="$(RepoRoot)src\Common\Polyfills.cs" LinkBase="Common" />
  </ItemGroup>
 
  <ItemGroup>
    <EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
  </ItemGroup>
 
  <ItemGroup>
    <None Include="SetupTestRoot.targets" />
    <None Include="BuildTestPackages.targets" />
  </ItemGroup>
 
  <Import Project="SetupTestRoot.targets" Condition="'$(BuildTestPackages)' != 'false'" />
  <Import Project="BuildTestPackages.targets" Condition="'$(BuildTestPackages)' != 'false'" />
 
  <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
 
</Project>