Skip to content
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

What's New - .NET 10 Preview 1 #44878

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

Conversation

@CamSoper CamSoper requested review from gewarren, a team and BillWagner as code owners February 12, 2025 22:45
@dotnetrepoman dotnetrepoman bot added this to the February 2025 milestone Feb 12, 2025
@CamSoper CamSoper marked this pull request as draft February 12, 2025 22:45
@CamSoper CamSoper assigned CamSoper and unassigned CamSoper Feb 12, 2025
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed after commit 4. What's here looks good so far.

Co-authored-by: Genevieve Warren <[email protected]>
@CamSoper CamSoper self-assigned this Feb 19, 2025
@CamSoper CamSoper marked this pull request as ready for review February 19, 2025 20:16
CamSoper and others added 2 commits February 19, 2025 16:13
@CamSoper
Copy link
Contributor Author

@gewarren Snippets 5000 doesn't support .NET 10 yet and I'd rather wait until there are dev container images for preview 1 before I move the snippets to separate code files. Any objections to this approach?

@gewarren
Copy link
Contributor

gewarren commented Feb 20, 2025

@gewarren Snippets 5000 doesn't support .NET 10 yet and I'd rather wait until there are dev container images for preview 1 before I move the snippets to separate code files. Any objections to this approach?

Yes, I don't think we should keep them inline. You can at least verify that they build locally by placing them in separate code files, and then we can use admin perms to override the Snippets 5000 requirement for merging. cc @cmastr

P.S. The reason I'm being a stickler is because I was burnt multiple times in the past by not doing this.

@gewarren
Copy link
Contributor

Should you also add ai-assisted metadata to these docs?

@CamSoper
Copy link
Contributor Author

The reason I'm being a stickler is because I was burnt multiple times in the past by not doing this.

You're no fun, @gewarren. 😝 Okay, I figured out how to build the snippets with the daily build docker container.

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but let's wait for review from the product team too before merging.

- Obsoleted Clipboard APIs.
- New Clipboard related APIs.

For more information, see [What's new in Windows Forms for .NET 10](https://github.com/dotnet/core/blob/dotnet10p1/release-notes/10.0/preview/preview1/winforms.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link should be updated once Andy publishes.

Co-authored-by: Genevieve Warren <[email protected]>

## Pruning of framework-provided package references

Starting in .NET 10, the [NuGet Audit](/nuget/concepts/auditing-packages) feature can now [prune framework-provided package references](https://github.com/NuGet/Home/blob/451c27180d14214bca60483caee57f0dc737b8cf/accepted/2024/prune-package-reference.md) that aren't used by the project. This feature is enabled by default for all `net` target frameworks (for example, `net8.0` and `net10.0`) and .NET Standard 2.0 and greater target frameworks. This change helps to reduce the number of packages that are restored and analyzed during the build process, which can lead to faster build times and reduced disk space usage. It also can lead to a reduction in false positives from NuGet Audit and other dependency-scanning mechanisms.
Copy link
Member

@richlander richlander Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this is incorrect. Pune is not specific to Audit, right?

I thought that the feature was net10.0 +.

Note: The feature eliminates download of pruned packages.

@ericstj @nkolev92

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prune is not specific to audit only. Are you referring to:

It also can lead to a reduction in false positives from NuGet Audit and other dependency-scanning mechanisms.

This read fine to me, since it says NuGet Audit and other dependency scanning mechanisms.

It's available in .NET 10 SDK but we turned it on for all .NET frameworks as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the NuGet Audit feature can now prune framework-provided package references that aren't used by the project

The text presents pruning as an implementation detail of Audit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 10 Work items for the .NET 10 release dotnet-fundamentals/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New article]: What's new in .NET 10
6 participants