1、当重命名项目名称后,出现以下错误
The following errors occurred while attempting to load the app.
- No assembly found containing an OwinStartupAttribute.
- No assembly found containing a Startup or [AssemblyName].Startup class.”
尝试加载应用程序时发生以下错误。
-未找到包含OwinStartupAttribute的程序集。
-找不到包含Startup或[AssemblyName]的程序集。Startup类。
2、原因,如下,有些地方的名字还未修改
特别是Program的命名空间和项目名称不一致,同样会无法识别
3、重命名,修改到的地方
1)项目名称
2)目录名称
3)项目文件名称
4)工程文件csproj名称
5)项目属性-命名空间
6)AssemblyInfo.cs文件里