MSBuild DeployOnBuild=true not publishing

后端 未结 4 1794
遇见更好的自我
遇见更好的自我 2020-12-08 06:55

I have a Visual Studio 2010 MVC2 web application that I\'m building via the command line using Hudson. I\'d like to make Hudson publish a web output, so I added the DeployO

4条回答
  •  情歌与酒
    2020-12-08 07:28

    It seems that conditions to run publish target are not satisfied.

    1) You can have different publication paths

    2) Condition to run publish target is false

    To verify both of them call your command with flag /v:diag. Search by Target "Publish" and try to figure out what really happens. It will looks like

    Target "ExecuteT4Templates: (TargetId:144)" in file "D:\App\App.csproj" from project "D:\App\App.csproj":
    Skipping target "ExecuteT4Templates" because all output files are up-to-date with respect to the input files.
    Input files: D:\App\App.exe\\App_Config\Configuration.tt;D:\App\App.exe\\App_Config\Debug.App.tt;obj\\Debug.t4lastbuild
    Output files: D:\App\App.exe\\App.config
    Done building target "ExecuteT4Templates" in project "App.csproj".: (TargetId:144)
    

提交回复
热议问题