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

[MAUI][Multi-Project] Downloading the .NET9.0 SDK causes the original .NET8.0 SDK to disappear when creating a project #41280

Closed
XamlTest opened this issue May 9, 2024 · 6 comments
Assignees
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@XamlTest
Copy link

XamlTest commented May 9, 2024

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))
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.
ActualResult

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

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

Copy link
Contributor

github-actions bot commented May 9, 2024

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@RoiChen001
Copy link

Can repro this issue on the latest 17.10 Preview 7(.NET SDK: 9.0.100-preview.3.24204.13).
22307

@TommiGustafsson-HMP
Copy link

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.

@mattleibow mattleibow transferred this issue from dotnet/maui May 30, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels May 30, 2024
@marcpopMSFT
Copy link
Member

@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.

@phenning
Copy link
Contributor

phenning commented Jun 5, 2024

@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.

@marcpopMSFT
Copy link
Member

Ahh, I didn't realize this was a new template. Makes sense then to me.

@marcpopMSFT marcpopMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

5 participants