msbuild-task

Automating builds with MSBUILD/TFS 2010/MSBuild.ExtensionPack

I need to create a build that is schedule from TFS 2010 and does the following: Get latest source Compile the project Check AssemblyInfo.cs files out and increment the version using Msbuild.ExtensionPack Check the files back in Deploy the Database project against a target database Run unit tests I am thinking of putting all these st...

MsBuild: Get current directory of targets

I have a msbuild target and it has a Import tag like this: <Import Project="$(MSBuildExtensionsPath)\Company\Company.LifeCycle.targets" /> In contents of Company.LifeCycle.targets file, how can I get programatically the current directory (in this case is: C:\Program Files\MsBuild\Company) ?? I use VS 2008, .NET 3.5 Edit: I have seen...

Create Task Scheduler (for running in machine restart) using MsBuild

I use VS 2008, .NEt 3.5, and MsBuild, and I need custom task MsBuild that create a "task scheduler" that it will run when the machine restarted. Anyone know any custom tasks in MsBuild Extensions or has any sample code about it ? ...

Build Servers, build agents, com registration and Windows 7 permissions

I am trying to build a continuous integration server on a Windows 7 machine. I can run the msbuild script cleanly on that machine but when I attempt to run it via a build agent the registration of certain COM (.NET and c++) components fail seemingly to do with write permissions to the registry. I have turned off UAC but it makes no diffe...

MSBuild task failing - Not running in Single Thread Apartment

I have a custom MsBuild task that sends an email (does some special stuff while sending the email -like formatting content). Background: Using TFS 2008 Build server is a separate machine using TeamBuild 2008. This custom task used to work fine until I installed .Net 4.0 on the build machine and setup the build service to use the new ...