WebApplication publish to relative filesystem path

后端 未结 6 1245
迷失自我
迷失自我 2020-12-14 13:59

I\'m setting up a publish to a relative path for testing locally (especially xml config transformations). Each developer has their own path to the checked out project and I\

6条回答
  •  情歌与酒
    2020-12-14 14:25

    For those using Visual Studio 2012 and the new publish configuration file (Properties/PublishProfiles/Local.pubxml) you can use this syntax in the file itself:

    
      
        FileSystem
        
        $(MSBuildThisFileDirectory)..\..\obj\publish
        True
      
    
    

    Be aware that the $(MSBuildThisFileDirectory) property will resolve to the Local.pubxml directory. From there you should traverse up to get where you need to be.

提交回复
热议问题