core icon indicating copy to clipboard operation
core copied to clipboard

.NET 8.0 Preview 6

Open rbhanda opened this issue 2 years ago • 14 comments

Release Notes

Please report any issues you find with .NET 8 Preview 6, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:

Known Issues

If there are any issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.

rbhanda avatar Jul 11 '23 16:07 rbhanda

Is this preview production ready?

luizfbicalho avatar Jul 11 '23 18:07 luizfbicalho

image

Could not upgrade via winget, while there's update when use dotnet sdk check, maybe winget package need to be updated?

WeihanLi avatar Jul 12 '23 00:07 WeihanLi

@luizfbicalho you can see the definition of our releases at https://dotnet.microsoft.com/platform/support/policy/dotnet-core#servicing. Preview 6 is not a go-live release. Those will be labeled as such and will be production ready.

mairaw avatar Jul 12 '23 01:07 mairaw

Could not upgrade via winget, while there's update when use dotnet sdk check, maybe winget package need to be updated?

The pull request for winget-pkgs had not been merged: https://github.com/microsoft/winget-pkgs/pull/111831

>> edit

merged, works now

WeihanLi avatar Jul 12 '23 01:07 WeihanLi

Will this safely be installed side by side with .Net 7 on Mac?

kcoop avatar Jul 12 '23 17:07 kcoop

Will this safely be installed side by side with .Net 7 on Mac?

https://github.com/dotnet/core/blob/main/release-notes/8.0/preview/8.0.0-preview.6.md#visual-studio-compatibility Visual Studio for Mac is currently not supported for .NET 8.0 Preview releases.

rbhanda avatar Jul 12 '23 17:07 rbhanda

Apparently no longer true, see last comment from Matt Ward:

https://stackoverflow.com/questions/76656738/how-do-you-target-net-8-for-net-maui-project-on-visual-studio-for-mac

If you update to the latest Visual Studio for Mac 17.6.1 released today then you can get .NET 8 support if you enable it in preferences. learn.microsoft.com/en-us/visualstudio/releases/2022/…Matt Ward 22 hours ago

kcoop avatar Jul 12 '23 17:07 kcoop

Given that, is it safe to install for evaluation, with a path to switch back to .Net 7? Or should I expect to be restoring from Time Machine?

kcoop avatar Jul 12 '23 17:07 kcoop

Given that, is it safe to install for evaluation, with a path to switch back to .Net 7? Or should I expect to be restoring from Time Machine?

@mrward who can help us here and I will also update our release assets as well

rbhanda avatar Jul 12 '23 17:07 rbhanda

Great. This isn't about VS Mac though, it's about the .Net runtime. Can multiple versions of .Net be installed side by side on Mac?

kcoop avatar Jul 12 '23 18:07 kcoop

VS Mac 17.6.1 added support for .NET 8. This support is not enabled by default. It can be enabled in Preferences - Other - Preview Features, by checking 'Use the .NET 8 SDK if installed' and then restarting VS Mac.

image

mrward avatar Jul 12 '23 21:07 mrward

@kcoop Yes, you can install multiple versions of .NET side by side. VS Mac will use the latest .NET SDK by default (.NET 7 or .NET 8, depending on the setting in Preferences) but you can pin VS Mac to a specific .NET SDK version using a global.json file for the solution.

mrward avatar Jul 12 '23 21:07 mrward

Great! Glad to hear it, will kick the tires now that I know the water's safe. And thanks for getting VS Mac out for this preview.

kcoop avatar Jul 12 '23 21:07 kcoop

VS Mac 17.6.1 added support for .NET 8. This support is not enabled by default. It can be enabled in Preferences - Other - Preview Features, by checking 'Use the .NET 8 SDK if installed' and then restarting VS Mac.

image

Given this, should we add VS for Mac info into the releases.json @rbhanda?

mairaw avatar Jul 12 '23 21:07 mairaw

I have a console app that has a ProcessExit handler, which gets consistently triggered on programmatic calls to Environment.Exit(0) in both Debug/Release and Publish native AOT builds.

Debug/Release build output triggers the ProcessExit handler when the terminal window's close [x] button is clicked to close the app. However, Publish native AOT (win-x64) build output's version does not trigger the ProcessExit handler when the terminal window's close [x] button is clicked to close the app.

I was expecting the native AOT version to also trigger ProcessExit like the non-native AOT builds.

etmendz avatar Jul 25 '23 10:07 etmendz

closing in favor of https://github.com/dotnet/core/issues/8674

rbhanda avatar Aug 08 '23 17:08 rbhanda