-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[regression/8.0.0] New MAUI project template in .NET 8 is defining default svg files as AndroidResource #17993
Comments
Cannot repro! On Mac
result
dotnet info dump:
Windows VS 17.8
windows
result:
|
I can't repro this either. The only thing I can think of that would cause this is accidentally selecting the items in the solution explorer and inadvertently changing the build action of them? |
Hi @anotherlab. 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. |
I've had it happen three times when creating new MAUI projects. I can not reliably reproduce it right now. I was not selecting the items in the solution explorer and changing the build action. I would say close it for now and when I find the steps to reproduce it each time, I'll open a new issue and add a screen recording. |
This happened to me as well, both on a preexisting project recently converted to .NET 8 and when creating a new project; I think yesterday happened once after reopening the solution with Visual Studio, but it's totally non-deterministic. In my case the bug converted also MauiFont to AndroidResource, adding the following lines:
I'm using Visual Studio 2022 64-bit 17.8.3. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
This is still happening, but non-deterministic. But it happens enough to be an annoyance. Open Visual Studio The project opens up and you immediately see the Red Squiggle of Unhappiness ™️ on the Resources folder. I just did this twice in a row in two different folders. The first one was broken, the second one was fine. The only change from when I first reported this is that I am now using Visual Studio 17.9.0 Preview 2.1, MAUI 8.0.100 |
Hi @anotherlab. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. 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. |
This issue has been verified using Visual Studio 17.12.0 Preview 1.0 (8.0.80 & 8.0.72)& 17.11.0 (8.0.72). Can not repro this issue. |
Description
When you create a new .NET MAUI project using File ->New with .NET 8 RC2 the default images are defined as
AndroidResource
instead ofMauiIcon
,MauiSplashScreen
orMauiImage
Expected outcome:
Actual outcome:
Steps to Reproduce
Link to public reproduction project repository
N/A
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.96
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
Not platform specific
Did you find any workaround?
Manually Replace the
AndroidResource
references in the csproj file with the correct references.Relevant log output
No response
The text was updated successfully, but these errors were encountered: