I am using Visual Studio 2017 Professional. I would like every new version to be automatically compiled into a subfolder whose name would be the version number. Does anyone of you know how to get this effect in a simple way? Maybe some extension or NuGet package that does it? Or pre / post -build events? I use the "Automatic Versions 1" extension for versioning
答案 0 :(得分:2)
您可以定义一个构建后事件,并使用xcopy复制文件。至于版本号,这可能会有所帮助:How to get the version number in post-build event