dotnet-presentations / blazor-hybrid-workshop

A full day workshop (.NET MAUI Blazor Hybrid Workshop in a Box) on how to build Blazor Hybrid apps with .NET MAUI for iOS, Android, macOS, and Windows
MIT License
60 stars 17 forks source link

"Part 2 - Add Monkey Dialog" - trying to build and run it as it -> "The project needs to be deployed before we can debug. Please enable Deploy in the Configuration Manager."" #2

Open ShamilS opened 1 week ago

ShamilS commented 1 week ago

TheProjectNeedsToDeployed

TheProjectNeedsToDeployed


Do you have an effective solution of the subject issue? Did you try to go through your tutorial "Part 2 - Add Monkey Dialog" source code on a fresh PC?

ShamilS commented 1 week ago

continued...

Target deployment folder S:\Learning\Blazor\blazor-hybrid-workshop-main\Part 2 - Add Monkey Dialog\MonkeyFinderHybrid\bin\Debug\net8.0-windows10.0.19041.0\win10-x64\AppX\wwwroot\_content\Microsoft.FluentUI.AspNetCore.Components\Components\DesignSystemProvider

exists. But is has blanks. Could these blanks be the source/cause of the subject issue? Let's check:

When the whole solution folder with all the files was moved to the S:\Learning\Blazor\Issue folder, NuGet packages restored, solution cleared, closed, rebuilt then the The project needs to be deployed... issue disappeared. So I can assume the subject issue was caused by the target deployment fullpath having blanks.

But when I have tried to run the project's first time the result program window was:

AnUnahndledErrorHasOccurred

After a few more tries I have got the positive result program window:

FinallyAllMonkyesAreHere

Still unclear why on first runs the result was an "Unhandled exception" (debug/trace mode didn't allow to catch the source of this error).

So the recommendations would be: