|
1 | 1 | <Project> |
2 | | - <Import Project=".\Common.props" /> |
| 2 | + <Import Project=".\Common.props" /> |
3 | 3 |
|
4 | | - <PropertyGroup> |
5 | | - <IsPackable>false</IsPackable> |
6 | | - <TargetFrameworks>net8.0</TargetFrameworks> |
7 | | - <TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks> |
8 | | - </PropertyGroup> |
| 4 | + <PropertyGroup> |
| 5 | + <IsPackable>false</IsPackable> |
| 6 | + <TargetFrameworks>net8.0;net9.0</TargetFrameworks> |
| 7 | + <TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks> |
| 8 | + </PropertyGroup> |
9 | 9 |
|
10 | | - <PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Test'))"> |
11 | | - <IsTestProject>true</IsTestProject> |
12 | | - </PropertyGroup> |
| 10 | + <PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Test'))"> |
| 11 | + <IsTestProject>true</IsTestProject> |
| 12 | + </PropertyGroup> |
13 | 13 |
|
14 | | - <PropertyGroup> |
15 | | - <NoWarn>$(NoWarn);CA2007</NoWarn> |
16 | | - </PropertyGroup> |
| 14 | + <PropertyGroup> |
| 15 | + <NoWarn>$(NoWarn);CA2007</NoWarn> |
| 16 | + </PropertyGroup> |
17 | 17 |
|
18 | | - <ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))"> |
19 | | - <Content |
20 | | - Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'DotnetSdkContrib.sln'))\build\xunit.runner.json"> |
21 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
22 | | - </Content> |
23 | | - </ItemGroup> |
| 18 | + <ItemGroup Condition="$(MSBuildProjectName.EndsWith('Test'))"> |
| 19 | + <Content |
| 20 | + Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'DotnetSdkContrib.sln'))\build\xunit.runner.json"> |
| 21 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 22 | + </Content> |
| 23 | + </ItemGroup> |
24 | 24 |
|
25 | | - <ItemGroup> |
26 | | - <PackageReference Include="AutoFixture" Version="$(AutoFixtureVer)" /> |
27 | | - <PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVer)"> |
28 | | - <PrivateAssets>all</PrivateAssets> |
29 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
30 | | - </PackageReference> |
31 | | - <PackageReference Include="coverlet.msbuild" Version="$(CoverletCollectorVer)"> |
32 | | - <PrivateAssets>all</PrivateAssets> |
33 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
34 | | - </PackageReference> |
35 | | - <PackageReference Include="GitHubActionsTestLogger" Version="$(GitHubActionsTestLoggerVer)" /> |
36 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPkgVer)" /> |
37 | | - <PackageReference Include="NSubstitute" Version="$(NSubstituteVer)" /> |
38 | | - <PackageReference Include="xunit" Version="$(XUnitPkgVer)" /> |
39 | | - <PackageReference Include="xunit.runner.visualstudio" |
40 | | - Version="$(XUnitRunnerVisualStudioPkgVer)"> |
41 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
42 | | - <PrivateAssets>all</PrivateAssets> |
43 | | - </PackageReference> |
| 25 | + <ItemGroup> |
| 26 | + <PackageReference Include="AutoFixture" Version="$(AutoFixtureVer)" /> |
| 27 | + <PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVer)"> |
| 28 | + <PrivateAssets>all</PrivateAssets> |
| 29 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 30 | + </PackageReference> |
| 31 | + <PackageReference Include="coverlet.msbuild" Version="$(CoverletCollectorVer)"> |
| 32 | + <PrivateAssets>all</PrivateAssets> |
| 33 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 34 | + </PackageReference> |
| 35 | + <PackageReference Include="GitHubActionsTestLogger" Version="$(GitHubActionsTestLoggerVer)" /> |
| 36 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPkgVer)" /> |
| 37 | + <PackageReference Include="NSubstitute" Version="$(NSubstituteVer)" /> |
| 38 | + <PackageReference Include="xunit" Version="$(XUnitPkgVer)" /> |
| 39 | + <PackageReference Include="xunit.runner.visualstudio" |
| 40 | + Version="$(XUnitRunnerVisualStudioPkgVer)"> |
| 41 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 42 | + <PrivateAssets>all</PrivateAssets> |
| 43 | + </PackageReference> |
44 | 44 |
|
45 | | - <!-- Fare and System.Text.RegularExpressions are referenced directly to avoid indirect |
| 45 | + <!-- Fare and System.Text.RegularExpressions are referenced directly to avoid indirect |
46 | 46 | vulnerable packages from AutoFixture --> |
47 | | - <PackageReference Include="Fare" Version="$(FareVer)" /> |
48 | | - <PackageReference Include="System.Text.RegularExpressions" |
49 | | - Version="$(SystemTextRegularExpressionsVer)" /> |
50 | | - </ItemGroup> |
| 47 | + <PackageReference Include="Fare" Version="$(FareVer)" /> |
| 48 | + <PackageReference Include="System.Text.RegularExpressions" |
| 49 | + Version="$(SystemTextRegularExpressionsVer)" /> |
| 50 | + </ItemGroup> |
51 | 51 |
|
52 | | - <PropertyGroup Label="Package versions used in this repository"> |
53 | | - <!-- |
| 52 | + <PropertyGroup Label="Package versions used in this repository"> |
| 53 | + <!-- |
54 | 54 | Please sort alphabetically. |
55 | 55 | Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax. |
56 | 56 | --> |
57 | | - <AutoFixtureVer>[4.18.1]</AutoFixtureVer> |
58 | | - <CoverletCollectorVer>[3.1.2]</CoverletCollectorVer> |
59 | | - <FareVer>[2.2.1]</FareVer> |
60 | | - <GitHubActionsTestLoggerVer>[2.3.3]</GitHubActionsTestLoggerVer> |
61 | | - <MicrosoftNETTestSdkPkgVer>[17.13.0]</MicrosoftNETTestSdkPkgVer> |
62 | | - <NSubstituteVer>[5.0.0]</NSubstituteVer> |
63 | | - <SystemTextRegularExpressionsVer>[4.3.1]</SystemTextRegularExpressionsVer> |
64 | | - <XUnitRunnerVisualStudioPkgVer>[2.8.2,3.0)</XUnitRunnerVisualStudioPkgVer> |
65 | | - <XUnitPkgVer>[2.9.3,3.0)</XUnitPkgVer> |
66 | | - </PropertyGroup> |
| 57 | + <AutoFixtureVer>[4.18.1]</AutoFixtureVer> |
| 58 | + <CoverletCollectorVer>[3.1.2]</CoverletCollectorVer> |
| 59 | + <FareVer>[2.2.1]</FareVer> |
| 60 | + <GitHubActionsTestLoggerVer>[2.3.3]</GitHubActionsTestLoggerVer> |
| 61 | + <MicrosoftNETTestSdkPkgVer>[17.13.0]</MicrosoftNETTestSdkPkgVer> |
| 62 | + <NSubstituteVer>[5.0.0]</NSubstituteVer> |
| 63 | + <SystemTextRegularExpressionsVer>[4.3.1]</SystemTextRegularExpressionsVer> |
| 64 | + <XUnitRunnerVisualStudioPkgVer>[2.8.2,3.0)</XUnitRunnerVisualStudioPkgVer> |
| 65 | + <XUnitPkgVer>[2.9.3,3.0)</XUnitPkgVer> |
| 66 | + </PropertyGroup> |
67 | 67 | </Project> |
0 commit comments