VS2010: Creating post-build events (C #)

I want to add post-build events to the project, elegantly. At first I wrote them in a package, but there was little logic in them, so I thought it was best to write them in a more readable language. The project is free open source, so I want it to create Visual C # Express 2010 and SharpDevelop, as well as VS2010, and avoid using third-party software.

I found MSBuild Inline Tasks that can serve this purpose. I believe that it would be more intuitive for other developers if the build tasks were a file in the project (and not in the project file), and apparently there is a way to do this, but I did not find good resources on it.

Can we get a simple Post-Build template here and / or other resources after the build?

+4
source share
1 answer

I went ahead and left the post build event in batch form, but I moved the code to a batch file so that I could use the best text editor with syntax highlighting.

You can also use a scripting language such as CS-Script , which I will probably do later. This requires third-party software, but you can write a build event in C # with full syntax highlighting and code completion functions.

+1
source

All Articles