question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't start Blazor MAUI project rc2

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
v-longmincommented, May 6, 2022

Verified not repro on 17.3.0 Preview 1.0 [32427.505.main].

0reactions
mkArtakMSFTcommented, May 9, 2022

Closing as this is going to be addressed as part of VS 17.3 preview 1 release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found