Visual Studio正在编译解决方案中未包含的文件



我有一个CMS系统,其中visual studio解决方案位于文件系统CMS的顶部。visual studio解决方案中没有包含许多文件。当我尝试编译时,我会收到一些.aspx文件的错误,这些文件物理上位于文件夹中,但不包含在解决方案中。我不知道为什么会发生这种事。如何防止VS试图编译这些?

更新

实际上并没有堆栈跟踪。完全错误:

Severity    Code    Description Project File    Line    Suppression State
Error       The virtual path '/sitecore/shell/Applications/Analytics/ReportRunner/DateSelector.ascx' maps to another application, which is not allowed. KSCVCPII.Web    C:tempsitecoreshellApplicationsAnalyticsReportRunnerReport.aspx  5   

文件Report.aspx存在于磁盘上,但未包含在解决方案中。

我不完全确定这为什么会导致问题,但我不得不关闭csproj中的MvcCompile设置(将MvcBuildViews设置为false(:

<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='false'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />

最新更新