-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathMSTest.Engine.csproj
More file actions
95 lines (81 loc) · 5.58 KB
/
MSTest.Engine.csproj
File metadata and controls
95 lines (81 loc) · 5.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;$(SupportedNetFrameworks)</TargetFrameworks>
<RootNamespace>Microsoft.Testing.Framework</RootNamespace>
<!-- Cancel default license (closed-source) and set license as packaged license file -->
<PackageLicenseExpressionInternal></PackageLicenseExpressionInternal>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<VersionPrefix>$(MSTestEngineVersionPrefix)</VersionPrefix>
<PreReleaseVersionLabel>$(MSTestEnginePreReleaseVersionLabel)</PreReleaseVersionLabel>
<SuppressFinalPackageVersion>true</SuppressFinalPackageVersion>
<!-- Temporarly disable missing XML documentation on public APIs -->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<IsPackable>true</IsPackable>
<GenerateBuildInfo>true</GenerateBuildInfo>
</PropertyGroup>
<PropertyGroup>
<EnableSingleFileAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</EnableSingleFileAnalyzer>
<TrimmerSingleWarn>false</TrimmerSingleWarn>
<!--
- Use IsAotCompatible and not <EnableAotAnalyzer>true</EnableAotAnalyzer>
- Use IsTrimmable and not <EnableTrimAnalyzer>true</EnableTrimAnalyzer>
There is no property for single file so we can use the analyzer directly. Check this file for more details:
https://github.com/dotnet/sdk/blob/b3288690d4ef92019370562b807092f62b4059e7/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs#L436-L473
-->
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsTrimmable>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>
<!-- NuGet properties -->
<PropertyGroup>
<PackageDescription>
<![CDATA[Microsoft.Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.
This package provides a new experimental engine for MSTest test framework.]]>
</PackageDescription>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="BannedSymbols.txt" />
<!-- API that is common to all frameworks that we build for. -->
<AdditionalFiles Include="PublicAPI/PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI/PublicAPI.Unshipped.txt" />
<!-- Framework specific API -->
<AdditionalFiles Include="PublicAPI/netstandard/PublicAPI.Unshipped.txt" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
<AdditionalFiles Include="PublicAPI/netstandard/PublicAPI.Shipped.txt" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
<AdditionalFiles Include="PublicAPI/net/PublicAPI.Shipped.txt" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<AdditionalFiles Include="PublicAPI/net/PublicAPI.Unshipped.txt" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="MSTest.Engine.UnitTests" Key="$(VsPublicKey)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(RepoRoot)src/Platform/Microsoft.Testing.Extensions.TrxReport.Abstractions/Microsoft.Testing.Extensions.TrxReport.Abstractions.csproj" />
</ItemGroup>
<!-- NuGet package layout -->
<!-- NuGet folders https://learn.microsoft.com/nuget/create-packages/creating-a-package#from-a-convention-based-working-directory -->
<ItemGroup>
<Content Include="buildMultiTargeting/**">
<Pack>true</Pack>
<PackagePath>buildMultiTargeting</PackagePath>
</Content>
<Content Include="$(RepoRoot)/LICENSE.PLATFORMTOOLS.txt" Pack="true" PackagePath="License.txt" />
<TfmSpecificPackageFile Include="build/**">
<PackagePath>build/$(TargetFramework)</PackagePath>
</TfmSpecificPackageFile>
</ItemGroup>
<!-- Generates NuGet package layout inside artifacts to make it testable with simple imports -->
<Target Name="ReproNugetPackageLayout" AfterTargets="Build" Condition=" '$(TargetFramework)' != '' ">
<ItemGroup>
<MSBuildAssetsBuildTargeting Include="buildMultiTargeting/**" />
<MSBuildAssetsBuild Include="build/**" />
<MSBuildLib Include="$(TargetDir)$(TargetName).dll" />
<!-- We ship with embedded symbols -->
<!--<MSBuildLib Include="$(TargetDir)$(TargetName).pdb" />-->
</ItemGroup>
<Message Text="MSBuildAssetsBuildTargeting tests: @(MSBuildAssetsBuildTargeting->'$(ArtifactsDir)tests/nugetPackageFolder/$(AssemblyName)/buildMultiTargeting/%(RecursiveDir)%(Filename)%(Extension)')" Importance="low" />
<Copy SourceFiles="@(MSBuildAssetsBuildTargeting)" DestinationFiles="@(MSBuildAssetsBuildTargeting->'$(ArtifactsDir)tests/nugetPackageFolder/$(AssemblyName)/buildMultiTargeting/%(RecursiveDir)%(Filename)%(Extension)')" />
<Message Text="MSBuildAssetsBuild tests: @(MSBuildAssetsBuild->'$(ArtifactsDir)tests/nugetPackageFolder/build/$(TargetFramework)/%(RecursiveDir)%(Filename)%(Extension)')" Importance="low" />
<Copy SourceFiles="@(MSBuildAssetsBuild)" DestinationFiles="@(MSBuildAssetsBuild->'$(ArtifactsDir)tests/nugetPackageFolder/$(AssemblyName)/build/$(TargetFramework)/%(RecursiveDir)%(Filename)%(Extension)')" />
<Message Text="MSBuildLib tests: @(MSBuildLib->'$(ArtifactsDir)tests/nugetPackageFolder/lib/$(TargetFramework)/%(RecursiveDir)%(Filename)%(Extension)')" Importance="low" />
<Copy SourceFiles="@(MSBuildLib)" DestinationFiles="@(MSBuildLib->'$(ArtifactsDir)tests/nugetPackageFolder/$(AssemblyName)/lib/$(TargetFramework)/%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
</Project>