Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

visual studio 2022 Maui .net 9 build issues #27759

Open
kenspencer8996 opened this issue Feb 13, 2025 · 2 comments
Open

visual studio 2022 Maui .net 9 build issues #27759

kenspencer8996 opened this issue Feb 13, 2025 · 2 comments
Labels
platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working

Comments

@kenspencer8996
Copy link

Description

I am using visual studio 2022 bo build Maui Net 9 applications.
I have created several apps with the same result: build error with duplicate filename. Always some file thats not directly in my project.

Steps to Reproduce

  1. Create a new maui .Net 9 project
  2. F5 to run
  3. Add any nuget package.
  4. F5 to run.
  5. repeat step 3 & 4.
  6. After 1 or 2 added packages, builds will fail with above error.

i have repeated these steps several times.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.100 SR10

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

Yes.

I put all of my content in a control library and host the master control in 1 page in main app. I did this to make it easier to change out main project when it corrupts.

I moved all of these projects to .net 8.

My opinion is .Net 9 and Maui is currently unusable.

Relevant log output

@kenspencer8996 kenspencer8996 added the t/bug Something isn't working label Feb 13, 2025
@MartyIX
Copy link
Contributor

MartyIX commented Feb 13, 2025

The issue is mostly non-actionable because there is no repro project. If you provide one, I'll try to compile it on my end.

Our app on .NET 9 and MAUI 9.0.40 SR4 works and it's a non-trivial one, so the issue might be some real edge case.

@MartyIX MartyIX added platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue labels Feb 13, 2025
Copy link
Contributor

Hi @kenspencer8996. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants