Skip to content

WPF Blazor app - MC3050 Cannot find the type 'local:Index'. #49422

Closed Answered by danielchalmers
danielchalmers asked this question in Q&A
Discussion options

You must be logged in to vote

the @code section in the .razor file needs to be moved to a codebehind .razor.cs or it won't be found

EDIT: Real root problem was that I was using <Project Sdk="Microsoft.NET.Sdk"> instead of <Project Sdk="Microsoft.NET.Sdk.Razor">.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielchalmers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant