c# - Compiler Error Message: CS0246: when I renamed my project -
I have changed my project and will be compiled before, but when I made some changes, for some reason
is error
Compiler Error Message: CS0246: Type or Name Location Name 'Lab4' not found (whether you use the command or an assembly reference Is unavailable?)
I have created a new project from the Lab4 template and it is here It has been turned into lab 5
I found the source file
Line 28: Use 4 Use; Line 29: Line 30: Source file: c: \ Users \ Albert \ AppData \ Local \ Temp \ Temporary asp.NET files \ root \ 4b806faf \ de1f1e7 \ App_Web_index.cshtml.a8d08dba.c_hu0onk.0.cs Line: 28
But when I try to use Lab 4 to change lab5 and compile it again, the same error happens and the file is removed and a new Lab 4 problem Together becomes a new one.
Does anyone know the answer?
When VS When you create your project, it automatically adds its original namespace to \ view \ web.config
:
& Lt; / Namespace & gt; & Lt; / Pages & gt; & Lt; /system.web.webPages.razor>
After changing the name of the project or changing its default namespace, you have to manually convert it to this file.
Comments
Post a Comment