I know that msbuild does not support VDPROJ files, but it maybe built using command line devenv.

I want to build all prjects (C#) using msbuild task and only after that starting specific setup project from my solution. Of course this projects has dependencies to previously created C# projects (otput from proj1, proj2, proj3).

How could I do it?

有帮助吗?

解决方案

Override AfterCompile (or AfterBuild) task and add Exec command for devenv.exe to compile vdproj files. When you run devenv.exe /build /project you will only build the specified project within the specified solution. Only project files that have changed since the last build will be build. Therefore the dependant projects will not be build unless they have been changed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top