I want to execute more than one pre-build event in Visual Studio. But Visual Studio takes all the text in the pre-build events field and executes it as one single command line function, unless you were calling a bunch of batch files. In the case of batch files, you can prefix the word call in front of each batch file and put all of them in separate lines and Visual Studio will call each of them.

But the commands I want to execute are not batch files. They are invocations of EXEs with parameters that contain Visual Studio pre-build event macros.

For e.g. like so:

"%windir%\Microsoft.NET\Framework\v4.0.30319\EdmGen.exe" 
/nologo /language:CSharp /mode:ViewGeneration 
"/inssdl:$(TargetDir)School.ssdl" 
"/incsdl:$(TargetDir)School.csdl" 
"/inmsl:$(TargetDir)School.msl" 
"/outviews:$(ProjectDir)School.Views.cs"

That's just one pre-build event. I've added line-breaks only for readability. The real pre-build event does not have line breaks in it.

I want to have several of those in one pre-build event.

0

There are 0 best solutions below