mrlacey / MauiAppAccelerator

A Visual Studio extension to accelerate the creation of new .NET MAUI apps.
https://marketplace.visualstudio.com/items?itemName=MattLaceyLtd.MauiAppAccelerator
MIT License
352 stars 10 forks source link

Warning creating project #46

Closed eduardoagr closed 2 weeks ago

eduardoagr commented 7 months ago

Describe the bug Create a new Maui project.

To Reproduce Steps to reproduce the behavior:

Expected behavior I want a clean project with all the nugget updated.

Screenshots image

mrlacey commented 7 months ago

What are the actual warnings you're getting? Which version of the extension have you got installed? Which options did you choose in the wizard?

I try and keep things as up to date as I can with new versions of extensions and so address warnings from requiring a newer package version as quickly as possible.

There are also VS configuration options that prevent restoring automatically and can lead to you seeing these warnings until you do a full build.

Do you get the same warnings if you do a File > New > MAUI project with the official templates?

eduardoagr commented 7 months ago

I can confirm, that with MAUI NEW, I do not get any problems, but it appears sometimes.

mrlacey commented 2 weeks ago

The above can happen if there's an issue restoring the packages as part of creating the project.

This can happen because of:

It's currently set to ignore such errors and carry on. This is preferable to a project only being partially created and getting a (mostly) incomprehensible error message.

When this happens, manually restoring and rebuilding the project should fix things. If it doesn't please raise an issue.

Yes, it would be totally great if I could get this to never happen, but sadly, I've been unable to. Hopefully, the time saved in the creation of the project outweighs the inconvenience of sometimes needing to rebuild the project after generation.