Build another project by prebuild event without adding reference

匿名 (未验证) 提交于 2019-12-03 00:46:02

问题:

I am copying .exe file form a separate to my main project's folder on prebuild event but I need to build that project before build my main project so i want to build that project on prebuild event of my main project.

回答1:

Not that this is the best solution, but it will definately work for what you want to do:

Put the below into your pre-build event

"$(VS100COMNTOOLS)..\IDE\devenv" "csproj location OR sln location" /Rebuild "configuration required if you have more than configuration ex: Debug|x64"



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