Skip to content

Commit 0a19218

Browse files
filzrevyufeih
andauthored
chore: Remove NuGet.Frameworks dependency from test projects (#9276)
* chore: fix NuGet.Frameworks package version * chore: remove NuGet.Frameworks dependency from test projects * chore: update test sdk version * chore: remove NuGet.config file that is used for NuGet.Frameworks --------- Co-authored-by: Yufei Huang <yufeih@live.com>
1 parent 12a2fd2 commit 0a19218

File tree

4 files changed

+1
-63
lines changed

4 files changed

+1
-63
lines changed

Directory.Packages.props

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
4040
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
4141
<PackageVersion Include="Magick.NET-Q16-AnyCPU" Version="13.4.0" />
42-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
43-
<PackageVersion Include="NuGet.Frameworks" Version="6.8.0-rc.122" Condition="'$(TargetFramework)' != 'net8.0'" />
44-
<PackageVersion Include="NuGet.Frameworks" Version="6.8.0-rc.122" Condition="'$(TargetFramework)' == 'net8.0'" />
42+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0-preview-23531-01" />
4543
<PackageVersion Include="Verify.DiffPlex" Version="2.3.0" />
4644
<PackageVersion Include="Verify.Xunit" Version="22.4.1" />
4745
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.3" />

NuGet.config

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/Directory.Build.props

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@
1717
</PackageReference>
1818
<PackageReference Include="FluentAssertions" />
1919
<PackageReference Include="Microsoft.NET.Test.Sdk" />
20-
<!--
21-
The NuGet.Frameworks package is required to run csproj based tests targeting .NET 7.0.200.
22-
23-
Microsoft.NET.Test.Sdk bundles an old NuGet.Frameworks package to the output folder,
24-
which takes predence over the one shipped with .NET SDK.
25-
.NET 7.0.200 SDK depends on a newer NuGet.Frameworks package this is not availble on NuGet.org yet.
26-
27-
This only impact test since MSBuildLocator will resolve NuGet.Frameworks package from the appropreciate .NET SDK location.
28-
-->
29-
<PackageReference Include="NuGet.Frameworks" />
3020
<PackageReference Include="xunit.runner.visualstudio" />
3121
<PackageReference Include="xunit" />
3222
</ItemGroup>

test/docfx.Tests/ModuleInitializer.cs

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)