-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .NET 9 #10593
Merged
Merged
Support .NET 9 #10593
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
78ef6fe
Support .NET 9
martincostello f2b2f3f
Fix NuGet audit warnings
martincostello 6ee5c6e
Disable NuGet audit
martincostello 12199cd
Update expected test output
martincostello 79b8813
Enable terminal logger
martincostello 630c228
Merge branch 'main' into dotnet-9
martincostello dd2acae
Run tests with .NET 8 SDK
martincostello ece057b
Fix type annotations
martincostello cd4fa52
Update specs
martincostello 54984f3
Revert expected output
martincostello b79b55d
Fix tests
martincostello 7c9c796
Fix test
martincostello 9f620d4
Add C# Dev Kit
martincostello c452545
Add .NET 9 to devcontainer
martincostello 3e0cb4b
Update to .NET 9
martincostello 97c41dc
Update target framework
martincostello 27ef275
Update assertion for terminal logger
martincostello 63b57cf
Merge branch 'main' into dotnet-9
martincostello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix tests
- Fix tests broken by error about usage of CPVM. - Update Microsoft.Windows.SDK.NET.Ref version.
- Loading branch information
commit b79b55d9ff49a643334928118ddd86faf2d38988
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,6 +186,7 @@ await TestUpdateForProject("Some.Package", "12.0.1", "13.0.1", | |
projectContents: $""" | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
|
@@ -199,6 +200,7 @@ await TestUpdateForProject("Some.Package", "12.0.1", "13.0.1", | |
(Path: "src/Project/Project.csproj", Content: """ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
|
@@ -244,7 +246,7 @@ await TestUpdateForProject("Some.Package", "9.0.1", "13.0.1", | |
MockNuGetPackage.CreateSimplePackage("Some.Package", "9.0.1", "net8.0"), | ||
MockNuGetPackage.CreateSimplePackage("Some.Package", "13.0.1", "net8.0"), | ||
// necessary for the `net8.0-windows10.0.19041.0` TFM | ||
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.31", Files: | ||
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.34", Files: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The latest .NET 8 SDK bumps this version, so it's been updated so the tests can find the package in the local cache. |
||
[ | ||
("data/FrameworkList.xml", Encoding.UTF8.GetBytes(""" | ||
<FileList Name="Windows SDK .NET 6.0"> | ||
|
@@ -548,6 +550,7 @@ await TestUpdateForProject("Some.Transient.Dependency", "5.0.1", "5.0.2", isTran | |
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
|
@@ -562,6 +565,7 @@ await TestUpdateForProject("Some.Transient.Dependency", "5.0.1", "5.0.2", isTran | |
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
|
@@ -588,6 +592,7 @@ await TestUpdateForProject("Some.Transitive.Package", "1.0.0", "1.0.1", isTransi | |
projectContents: """ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
|
@@ -608,6 +613,7 @@ await TestUpdateForProject("Some.Transitive.Package", "1.0.0", "1.0.1", isTransi | |
expectedProjectContents: """ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to force the ruby tests for C# to use the version of the .NET SDK in
global.json
for NuGetUpdater cause an error that package versions shouldn't be used in projects using central package management. I think this is because the build then picks up theDirectory.Packages.props
file in that directory despite the test project not being in the directory tree of that file.