Reputation: 665
I have 2 programs: One written in c++ and compile on MS visual studio 2010; The other written in C# and compile on MS visual studio 2010.
My second program automatically edit one of first projects file (.cpp), I want to know is there any way to auto compile my c++ code on file changed?
Upvotes: 0
Views: 446
Reputation: 106530
Yes, call msbuild
.
E.g.
msbuild YourSolution.sln /p:Configuration=Release
(Or Debug, if that's what you're building for)
Sounds like your tool would be better off written as an msbuild task though.
Upvotes: 1