开发者

ClickOnce using MSBuild

开发者 https://www.devze.com 2023-03-31 05:27 出处:网络
I have been trying to achieve ClickOnce deployment using MSBuild scripts, but I could not find any resource on how to copy the files af开发者_JS百科ter generating the manifests.

I have been trying to achieve ClickOnce deployment using MSBuild scripts, but I could not find any resource on how to copy the files af开发者_JS百科ter generating the manifests.

Since we need to script baby steps in case of mannual deployment, which Visual Studio does for us if we use the wizard, I'm not able to do it, since I'm new to both MSBuild and ClickOnce.

Is there a resource where I can find detailed information on how to script the entire ClickOnce deployment for multiple environments, increment version number using TeamCity's BUILD_NUMBER and sign the assemblies?


All that you see Visual Studio doing is done by MSBuild (except creating/updating the "publish.html"). This is true for any environment, if you meant configuration. To publish using MSBuild, all I do is execute the following at Command Line:

%SystemRoot%\Microsoft.Net\Framework\v3.5\msbuild <myProjectName> /p:Configuration=Debug; /t:publish

This gives me a Development environment Build (we use the default Debug configuration for Dev). For QA I just replace the "Debug" part in the above command to "Release".

0

精彩评论

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