Can't start Blazor MAUI project rc2
See original GitHub issueDescription
When creating a new blazor maui project multiple error occurs
- Shared namespace not found
- Main class not found
Steps to Reproduce
Create a new Blazor MAUI project using Visual studio community 2022 preview 17.2.0 preview 6.0. (rc2)
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows SDK 10.0.17763.0
Did you find any workaround?
Adding @namespace NameOfTheProject
in Main.razor
Adding @namespace NameOfTheProject.Shared
in MainLayout.razor/NavMenu.razor/SuveryPrompt.razor
Relevant log output
1>------ Build started: Project: ----, Configuration: Debug Any CPU ------
1>D:\Code\Sandbox\----\----\Pages\Index.razor(7,1,7,56): warning RZ10012: Found markup element with unexpected name 'SurveyPrompt'. If this is intended to be a component, add a @using directive for its namespace.
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>D:\Code\Sandbox\----\----\_Imports.razor(8,21,8,27): error CS0234: The type or namespace name 'Shared' does not exist in the namespace '----' (are you missing an assembly reference?)
1>Done building project "----.csproj" -- FAILED.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
MAUI projects are not appeared after installing .NET SDK ...
NET MAUI is still in preview, so it will not be included in the RC or GA versions of Visual Studio 2022 until...
Read more >.NET MAUI Release Candidate 2 - With 100% More Tizen ...
NET MAUI RC2 on Windows, install or update Visual Studio 2022 Preview ... NET MAUI template project, the required workload dependencies are ...
Read more >Error running Unit Tests for .NET MAUI Apps with .NET 6 RC2
NET Workload, this means that dotnet test will not yet work for .NET MAUI ... NET MAUI projects will begin working in the...
Read more >What's New in .NET MAUI RC2 - Developer Thoughts
NET 6 and is yet to start its preview release with . ... NET MAUI app targeting the Tizen platform, open the project...
Read more >.NET MAUI Release Candidate 2 Adds Tizen Support - ...
NET MAUI) RC1, Microsoft has shipped RC2, highlighted by new Tizen ... NET MAUI template project, the required workload dependencies are ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Verified not repro on 17.3.0 Preview 1.0 [32427.505.main].
Closing as this is going to be addressed as part of VS 17.3 preview 1 release.