简体   繁体   English

在源参数中多次指定了App_Start / Startup.Auth.cs项

[英]The item App_Start/Startup.Auth.cs was specified more than once in the source parameter

I'm working on an ASP.NET MVC Project. 我正在研究ASP.NET MVC项目。 Whenever I try to Build it this error comes up : 每当我尝试构建它时,就会出现此错误:
The item App_Start/Startup.Auth.cs was specified more than once in the source parameter

I googled the error and found that a reference to App_Start/Startup.Auth.cs might be declared twice in the .csproj file, but it's only mentioned once. 我在错误中进行了搜索,发现在.csproj文件中可能两次声明了对App_Start/Startup.Auth.cs的引用,但只提到了一次。

Visual Studio Community 2015

I noticed I had two project files : 我注意到我有两个项目文件:

  • MyProject.csproj MyProject.csproj
  • MyProject.csproj.user MyProject.csproj.user

I deleted .user and now it's working fine. 我删除了.user ,现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM