Tag | MSBuild Posts

Technorati Tags: Msbuild,TFS,Team Build What is MSBuild? MSBuild is a general-purpose build system created by Microsoft and is used to build most Microsoft Visual Studio projects. MSBuild is shipped with the Microsoft .NET Framework. What this means is that you do not need to have Visual Studio installed in order to build your applications. Project File Details you should follow these conventions for specifying the extension of the file: .proj A project file .targets A file that contains shared targets, ...
I promised I’d have a simpler mechanism for rebuilding the database. Below is a complete MSBuild targets file for rebuilding the database from scratch. I don’t know if I’ve explained the rational for this. The reason why you’d WANT to do this is so that each developer has a clean version of the database on their local machine. This also includes the continuous integration environment. Basically, you can do whatever you want to the database without fear, and in a minute or two, have a completely rebuilt ...
In part 1, I showed a complicated mechanism for performing a clean database build. There’s an easier way. The easier way is to use the msbuild extension tasks out on codeplex. While you’ll still need to forcibly take the database offline (ALTER DATABASE [mydb] SET OFFLINE WITH ROLLBACK IMMEDIATE), the other msbuild tasks more easily allow you to create and delete the database. Eventually, I’ll post an example. Technorati Tags: MSBuild ...
So I’m taking a break from writing about other Agile stuff for a post. :) I’m still going to get back to the other subjects, but this is fun too. Something I’ve done quite a bit of is MSBuild and CI work. I’m experimenting with ways to improve what I’ve done in the past, particularly around database CI. Today, I developed a mechanism for starting from scratch with your database. By scratch, I mean blowing away the existing database and creating it again from a single command line call. I’m a firm ...
As the complexity of our mobile line of business applications increases, it takes longer and longer to compile our applications. Now I knew that Microsoft has this great new build tool called MSBuild inside Visual Studio 2008, but I didn't know much about it. Bottom line you can compile .Net applications from the command line. Or more importantly have your application builds happening on another machine. Documentation here -http://msdn.microsoft.com/... This is what I have ...
Well, that was certainly annoying. I'm trying to create a new application manifest (deployment manifest), and if I use the -MinVersion (-mv) option as specified in the Mage documentation, it fails with the error, "The minimum version specified is not valid." I'm guessing that this goes hand in hand with the bug that I ran into earlier where you can't do anything but a check after install when using mage. For that defect, I ended up running some code to replace the <expiration maximumAge="0" unit="days" ...
I cannot believe that I am the first person ever to encounter the following error: MSB3095: Invalid argument. Illegal characters in path. [Update] As Tom pointed out in the comments, this issue is directly related to the encoding of my *.refresh file. Thanks Tom. I searched Google and other search engines with no success. I found "MSB3095: Invalid Argument", and I found "Illegal characters in path.", but never in the same place. I did not actually resolve the issue; I was able to work around it. ...
I really like the fact that MSBuild is installed with the .Net Framework so you do not have to install a separate build tool. Unfortunately, if you are developing Web Application projects (WAP), you may discover something is missing. In my case, I am building a VS2008 project and the build server does not have Visual Studio installed. No problem, right? Wrong. It turns out that when you install VS, it deploys some additional targets to the MSBuildExtensionsPath. Without these targets, when you run ...
Last week I started working on the build scripts for my new project. I've worked on build environments in the past, but I didn't really commit everything to memory. Thus, I have had to reinvent the wheel in some ways. So far I have established commit and nightly builds. Each build cleans up after the previous build, retrieves the latest source, compiles the application, and runs the tests under coverage. The tools of choice: CruiseControl.Net, Subversion, NUnit, NCover, and MSBuild. Originally, I ...