Using MSBuild.exe to “Publish” a ASP.NET MVC 4 project with the cmd line

前端 未结 5 1042
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 08:23

I\'m looking for a command to run against the MSBuild.exe that just takes a MVC 4 project and publishes it to a given directory.

For example,



        
5条回答
  •  悲&欢浪女
    2020-12-07 09:03

    Create a build.xml file thats look like below

    Start Visual Studio command prompt

    Run msbuild build.xml

    
    
    
      
        $(MSBuildProjectDirectory)\Build
        MyProject.csproj 
        MyProjectNameInVisualStudio
        $(MSBuildProjectDirectory)\CopyTo
       
    
       
          
          
            
      
    
    
    

提交回复
热议问题