-
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
[MAUI][Multi-Project] Downloading the .NET9.0 SDK causes the original .NET8.0 SDK to disappear when creating a project #41280
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
We had a similar issue with .NET SDK 9.0 Preview 2 disappearing, when .NET SDK 9.0 Preview 3 was installed. However, we could just re-install Preview 2, but that was weird. |
@phenning We don't have the 9.0 SDK inserted into VS yet. I'm surprised though that installing the 9 previews makes the 8 targeting disappear from NPE. |
@marcpopMSFT looking at the title and screenshots, it looks like the .NET MAUI MultiProject tempate was just added for NET 9.0. All the other listed templates are behaving as expected (showing both net8.0 and net9.0) (See history here: https://github.com/dotnet/maui/commits/main/src/Templates/src/templates/maui-multiproject/.template.config/template.json This is by design unless the template was added to a servicing release of the net 8.0 workload. |
Ahh, I didn't realize this was a new template. Makes sense then to me. |
Description
Creating a .NET MAUI Multi-Project App project and downloading the .NET9.0 SDK causes the original .NET8.0 SDK to disappear when creating the project.
Steps to Reproduce
1.Download SDK .NET9.0-Preview.3 (Download .NET 9.0 (Linux, macOS, and Windows) (microsoft.com))
![ActualResult](https://private-user-images.githubusercontent.com/97647558/329105221-7844b096-338e-4d2b-a7aa-a6fc6dcb9a19.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MjgxMTQsIm5iZiI6MTcyMDcyNzgxNCwicGF0aCI6Ii85NzY0NzU1OC8zMjkxMDUyMjEtNzg0NGIwOTYtMzM4ZS00ZDJiLWE3YWEtYTZmYzZkY2I5YTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDE5NTY1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwMjBjYjJhNTZmYjg3MzAyNzVlZTRmZTk4Njk1Y2IwOWY2OTcxNDNkMzQyYmU2YWYxODZkZTQ1OTMyZDkzZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mxM2_3UyWkQMiXxbaa77J9eHJkPMrf8SnXWXTJYkCu8)
2.Run the "dotnet workload install maui" in cmd to installer the Maui template
3.Launch the VS
4.Create a .NET MAUI Multi-Project App
Actual Result:
In Additional information, NET 9.0 (preview) only in the framework drop-down menu.
Expected Result:
.NET MAUI multi-project app should display .NET8.0 and .NET9.0 SDKs.
More information: In the .net Maui App, .NET MAUI Blazor Hybrid App and .NET Maui Class Library projects can display .net8.0 and .net9.0 SDKs.
![Expect Result](https://private-user-images.githubusercontent.com/97647558/329105329-1cf4590e-f80a-4335-8b21-ec2c6aae5c35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MjgxMTQsIm5iZiI6MTcyMDcyNzgxNCwicGF0aCI6Ii85NzY0NzU1OC8zMjkxMDUzMjktMWNmNDU5MGUtZjgwYS00MzM1LThiMjEtZWMyYzZhYWU1YzM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDE5NTY1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlYjVkZTA1NDU4ZDI3NzMxMmUzMmExNDdiMTBjZWUwYjA0NTdlNWEzODBkZGE1NDUyYzJjMGZlYjUyNzIxYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SWTmHcle0R0VQCgDi-IUDh74Nw1HygsgA1nf06MtrBI)
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows10.0.19041.0
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: