Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Neil Enns » How To   (RSS)

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: 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: ,

How To: Insert Custom Process at Specific Points During Build

Today Kieran, Faisal, and I met with one of our partners to give them an introduction to MSBuild. During the discussion one of them asked us about the different places someone can plug into the standard Visual Studio build process (as defined by the Microsoft.Common.Targets
Posted by msbuild | 6 Comments
Filed under: ,

How To: Conditionally Apply Metadata to Items

Last week we got a great question over on our forum about applying metadata to items depending on a condition. What the author wanted to was something like this: <ItemGroup> <Compile Include="MyClass.boo"> <DefineConstants Condition=" '$(Configuration)'
Posted by msbuild | 0 Comments
Filed under: ,

How To: Update Assembly Version Numbers with MSBuild

UPDATE: For information on the "Y7K" or "2007" issue, see our new blog entry . One of our most frequently asked questions is: "How do update my assembly version numbers at build time?". Unfortunately our answer has been "you can't". Until today, that
More Posts Next page »
 
Page view tracker