Recently a chapter from my book Deploying .NET Applications: Learning MSBuild and ClickOnce has been posted. You can read the sample chapter MSBuild By Example. Here is the TOC for that chapter.
MSBuild: By Example
Introducing Well-Known Metadata
Formatting Your Output
Editing MSBuild Files with IntelliSense
Integrating MSBuild into Visual Studio
Introducing Custom Metadata
Understanding the Difference Between @ and %
Using Environment Variables in Your Project
Reusing MSBuild Project Elements
Dealing with MSBuild Errors
Summary
Thanks to the guys at Apress and C# Online for making this chapter available online for everyone to have a look at!
Sayed Ibrahim Hashimi
Thanks for the chapter!
I have a question for you though, regarding reusing project elements.
I am using a web deployment project, and there are some properties set before the web deployment build targets are called. What I am trying to do is before the build targets are called, I want to fill these properties from a custom configuration file. I'm able to get these properties into another set of properties, but am unable to get them into the web deployment project properties. They keep getting overwritten by the MS target file properties. I can send you what I have, it's VERY ugly, but I am also using your procedure to build a solution, which works well, except I need to figure out how to order the projects for building.
Thanks for you help!
-John Baughman
Comments are closed.