开发者

Renaming .msi and setup.exe with project version number

开发者_JS百科 Merged with How to include version number in VS Setup Project output filename.

This is about a Visual Studio 2008 Setup and Deployment project.

I would like to add the project version number to the .msi file name (and to the setup.exe). For example,

"MyApp.msi" -> "MyApp 3.0.1.msi"
"setup.exe" -> "MyApp 3.0.1 setup.exe"

I'm trying to do it in a Post-build Event, but the only macros that appear to be available to me are:

$(BuildOutputPath)
$(Configuration)
$(ProjectDir)

I tried using $(Version), but that "macro" resolves to nothing.

Is there a way to get the version number into my list of available Post-build Event macros?

Or is there some other way to accomplish this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜