VS 2010 pre-compile web sites with build process?

后端 未结 4 414
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-20 06:56

VS 2010; TFS 2010; ASP.Net 4.0; Web Deployment Projects 2010;

I am using the build process templates in order to do one-click deploys (for dev and QA only). I want m

4条回答
  •  梦毁少年i
    2020-12-20 07:13

    You can do this by adding the following to your .csproj file

    
    /whatever
    .
    ..\precompiled
    true
    false
    
    
     
    
    
      
    
    
    
      
    
    
    
    

    Then in TFS2010's default template

    • your build definition
    • Process tab
    • Advanced parameters section
    • MSBuild Arguments
    • set /target="PrecompileWeb"

提交回复
热议问题