开发者

visual studio, compile with a parameter

I have a program that creates a C# class from a text file. The line is:

D:\work> gppg /nolines Re开发者_如何学运维alCalc.txt > RealCalc.cs

Can I say Visual Studio to execute this line whenever I hit build or run because it is very annoying to do that in terminal before each run

PS: The reason for creating C# clas from text file is because I use a lexer and a parser for something like defining my own pogramming language. And gppg transforms a text gramatic into C# code


You can have a pre-build event.

Go to the project property pages - in the Build Events page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜