ASP.NET MVC 1.0 AfterBuilding Views fails on TFS Build

后端 未结 9 1381
你的背包
你的背包 2020-12-12 17:42

I\'ve upgraded from ASP.NET MVC Beta to 1.0 and did the following changes to the MVC project (as descibed in the RC release notes):


  ...         


        
9条回答
  •  感动是毒
    2020-12-12 18:27

    Jim Lamb's solution didn't work for us when I built our web .csproj with

    /p:UseWPP_CopyWebApplication=true;PipelineDependsOnBuild=False
    

    because the target was being executed AfterBuild and the application has not been copied into the WebProjectOutputDir yet. (BTW, I pass those properties to the web project build cos I want the build to create a OutDir folder with only my binaries and cshtml files suitable for zipping, ie not an in-place build)

    To get around this issue and honour the intent of his original target, I did the following:

    
        
            MvcBuildViews;
        
    
    
    
        
    
    

提交回复
热议问题