I have a solution where all projects are targeting .NET v4.5.1.
TeamCity (v9.0.4) previously has built the solution just fine.
Added an Asp.Net web application (MVC + WebAPI) to the solution, still targeted at .NET 4.5.1.
It Works on My Machinetm, but TeamCity now fails the build with the following MSBuild error:
[src\app\Web\Web.csproj] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(186, 67): error MSB4025: The project file could not be loaded. There is an unclosed literal string. Line 186, position 67.
The offending line, when opening the .csproj file, corresponds to the first line of the following section:
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
</Target>
Any idea what could be causing this?
What I've Tried so Far:
- Commented the section I thought was offending. No change.
- Removed the section I thought was offending. No change.
- Realized the line numbers probably refer to the targets file.
- Tried completely removing / deleting and recreating the web application.
- Tried creating a new Web Project from within Visual Studio 2013 and committing that. Still failed.
- Submitted a bug report on this because it truly seems like it shouldn't be happening.
I can't think of any other leads or anything we're doing in a non-standard way.
Aucun commentaire:
Enregistrer un commentaire