How to build Visual studio Setup project using command-line?

一个人想着一个人 提交于 2020-06-26 12:24:10

问题


I have a sample WPF project and I created a Setup project to it. Now I want to build the project and Setup project through the command line.

I tried with this

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe

C:\Users\nandh\source\repos\CommendApp\CommendApp\CommendApp.csproj

command for build the project file it is successfully worked.

Then use with

devenv /build Debug

"C:\Users\nandh\source\repos\CommendApp\CommendApp.sln" /project

"C:\Users\nandh\source\repos\CommendApp\App\App.vdproj" /projectconfig Debug

for build the setup project it shows error.

------ Starting pre-build validation for project 'App' ------

ERROR: An error occurred while validating. HRESULT = '8000000A'

------ Pre-build validation for project 'App' completed ------

Regards.


回答1:


Have reproduced same issue in my machine. And resolve it by workaround from it3xl.

  1. Create a Text Document file in desktop and copy the content from this xx.bat file into it. (for professional editon)

  2. Save and rename the text document from xx.txt to Test.bat

  3. Double click the Test.bat file, then this issue goes away when i rebuild them by devenv command.

Hope it helps.



来源:https://stackoverflow.com/questions/57070069/how-to-build-visual-studio-setup-project-using-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!