Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » How To   (RSS)

7 Steps to MSBuild

Brennan has a great post about all things MSBuild, and covers good breadth on both concepts, as well as the many things you may want to drive with MSBuild (unit testing, web deployment projects, etc). Check it out! [ Author : Faisal Mohamood ]
Posted by msbuild | 4 Comments
Filed under: ,

/p property values are immutable - (sort of)....

Hello there - sorry for the long absence, but we're back and hopefully I'll keep this going again. So there was a recent forum post about how property values that are specified from the command line are immutable - i.e. it is not straightforward to change

How To: Remove the Up-To-Date Check From the AssemblyInfoTask

Every couple of weeks I get mail from someone who is using the AssemblyInfoTask on a build machine under source control. The question typically goes like this: I added the .targets file to my project, and it works fine on my dev machine, but doesn't do

How To: Bypass Post-Build Steps in a Build Lab Environment

(Can you tell I'm going through my folder of interesting MSBuild questions today?) Here's another good question that came across our internal discussion alias last week: Is there a quick and easy way to bypass the PostBuild steps in a project file that
Posted by msbuild | 3 Comments
Filed under: ,

How To: Distribute Your Custom Task and .Targets file

We've had variations of the same question on how to distribute tasks come through both internal and external channels in the last couple of weeks. Here's one example: If we have a product that is installing custom MSBuild tasks, are there any type of
Posted by msbuild | 3 Comments
Filed under: ,

How To: Exclude Multiple Files From a Wildcard

We got the following question on our internal conversion discussion alias today: Is there a way to exclude two or more items from an ItemGroup using the “exclude” attribute without using a wildcard? It turns out the way to do this wasn't clear from our
Posted by msbuild | 15 Comments
Filed under: ,

How To: Add Custom Process at Specific Points During Build (Method #2)

Back in November I wrote about a quick-and-dirty way to add custom build process into the standard Visual Studio build by overriding pre-defined targets that exist in Microsoft.Common.Targets. While this method works fine for internal build processes
Posted by msbuild | 15 Comments
Filed under: ,

How To: Use the AssemblyInfoTask With ASP.NET Web Deployment Projects

About once a week we get a question from someone who wants to know how to set the assembly version information on ASP.NET projects. I spoke with Bradley, a development lead over in the ASP.NET team who worked on the Web Deployment Projects , and it turns

How To: Obtain Initial Property Values in a Logger

We got a question on our MSBuild Feedback alias today that went something like this: How do I obtain all the initial property values in the project file in my custom logger? It's not immediately obvious from our object model, but you can do this. In the
Posted by msbuild | 3 Comments
Filed under: ,

How To: Implementing Custom Tasks - Part I

While MSBuild is all about build customization,we never really blogged about what is involved in implementing custom tasks. Partly, I suppose that's because implementing a custom task is as easy as falling off a log most of the time: 1) Subclass Microsoft.Build.Utilities.Task
Posted by msbuild | 51 Comments
Filed under: ,

How To: Use the AssemblyInfoTask With Source Code Control

Several people have written our feedback alias with problems using the AssemblyInfoTask when the projects are under source code control. When the files are checked in the AssemblyInfo files are read-only, and the task fails with an error that the file

How To: Retrieve the AssemblyVersion using AssemblyInfoTask

We got a great question at msbuild@microsoft.com last week: What is the preferred method to retrieve the version of the assembly that was just built via MSBuild? Post build, we would like to automatically create and copy the assembly(ies) to version folder.

How To: Return Additional Information on Outputs from a Project

We got a great question today from an internal team at Microsoft that is working on some custom build process for their specific application: We have a project whose output is both libraries and header files. What is the best way to return those outputs
Posted by msbuild | 2 Comments
Filed under: ,

How To: Specify Long Command Lines to MSBuild

Sometimes when using MSBuild.exe the command lines can get pretty darn long and hard to manage. This is particularly true if you're using a custom logger that takes parameters. I also ran into some trouble when I was trying to pass an escaped string to
Posted by msbuild | 10 Comments
Filed under: ,

How To: Perform Nightly Builds with Team Foundation Server

Edit: Ok, after talking with Khushboo and given Niels's comment, it's clear that the article I linked to is woefully out of date. Please ignore this post. If you want to perform nightly builds with Team Foundation Server, tfsbuild.exe is the tool to use.
Posted by msbuild | 5 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker