We have an ASP.NET MVC application that we build on VSTS. When a csproj file is referencing a missing cshtml file (ie it's not on disk, but is in the csproj file), we can still build locally. But the VSTS build fails.
Any idea what could be the cause of this weird behavior? I'd expect the local (Visual Studio) build to fail too.
I've tried it by building with the msbuild command line, but no difference there.
I've seen this question but don't want to have to start messing with my csproj file. I want both Visual Studio and VSTS to show the same behavior.