msbuild

How do you schedule a TFS 2008 build to run every hour?

"New Build Definition" in Team Explorer doesn't allow you to force a build to run more frequently than once every 24 hours. Is this possible? I want the tests to run every hour regardless of whether any changes have been checked in. I think this is possible by creating a scheduled task but I'd rather keep the solution in TFS if possibl...

build ASP.Net default web site error

Hello everyone, I am using VSTS 2008 and I am using Create new ASP.Net web site and using default settings/automatically generated files. My questions are, How to use command line script (msbuild) to build the ASP.Net web site automatically? I want to build the web site into a DLL which could be easily copied to target IIS server lat...

What is the filetype .COMPILED

When you publish a website you get xml files of type .compiled. It contains for example: <?xml version="1.0" encoding="utf-8"?> <preserve resultType="6" virtualPath="/App_Code/" hash="ffffffffc89f22d3" filehash="" flags="140000" assembly="App_Code" /> What are those files for? Should a deploy them to the server? ...

CopyLogFiles won't override

I want to redefine the way TF Build Service, creates folders for each build (one folder for each build). I have overridden CoreDropBuild and CopyLogFiles targets. It copies the binaries to the new location that I want but the log files will be copied to the default location still. <Target Name="CoreDropBuild" Condition=" '$(SkipDro...

GenerateBootstrapperTask: configuring location of prerequisites on the install media

I'm using Bootstrap Manifest Generator to create custom prerequisites for my installer's bootstrapper (Acrobat, Flash, Java, etc). Everything works a treat but we have a requirement that the installation media be structured such that the "setup.exe" bootstrapper and the product MSI are the only things on the root of the disc, and all ...

MSBuild with Visual studio 2005

Hi Can anyone tell me how to write and run msbuild by using VS 2005? Thanks ...

What are the reasons to use build scripts and continuous integration?

I'm trying to grasp the idea with build scripts, nightly builds and technologies like continuous integration, but I fail to see the advantages. Take this as an example: We are a 4-person team developing an application, without unit tests. We also use Subversion for source control. What benefits do we get by using custom build scripts a...

MSBuild: How to override output filename to be different from Assembly Name?

I have 2 C# projects in my solution, both of them DLLs: MyApp.UI.WPF.csproj MyApp.UI.WinForms.csproj My setup process guarantees that only one of them will be installed at any given time. Whichever that might be, it will be picked up by the MyApp.exe bootstrapper when user runs the application. Since both DLLs contain the same entry...

Web Deployment Project with an replacement .config geting "changed"

I have cruisecontrol.net building a asp.net web deployment project. This is working great until i created multiple deployment "configurations". Basically we have a dev,test,stage, and prod. The stage and prod configurations have a web.config replacement setup to change the plain text connectionstring section to what our production webs...

Automatically updating a file with Revision from TFS?

I'm quite new to TFS (actually I only use it because I have some projects on CodePlex and did not want to go through svnbridge), and I'm looking for something equivalent to the $Revision$ parameter in SVN. Essentially on checkout, I want to update a file to contain the newest Revision number, to be displayed as Version number (just like...

Pass a value from TeamBuild to MSBuild

I have a build that is running in TFS TeamBuild. I want to pass a property from that to the MSBuild that is run for each Project built by the TFSBuild.proj. Example: TFSBuild.proj <PropertyGroup> <Version>0.0.0.0</Version> </PropertyGroup> <Target Name="BuildNumberOverrideTarget" DependsOnTargets="AfterInitializeWorkspac...

Modify MSBuild ItemGroup Metadata

Is it possible to modify a ItemGroup's metadata after it is declared. For Example: <ItemGroup> <SolutionToBuild Include="$(BuildProjectFolderPath)\MySolution.sln"> <Targets></Targets> <Properties></Properties> </SolutionToBuild> </ItemGroup> <Target Name="BuildNumberOverrideTarget"> <!--Code to get the ...

How can I build all with MSBuild from the command line?

Is this valid? MSBuild /t=all /configuration=all I want to build ALL configurations of all projects in a sln file, etc from the command line using MSBuild in Visual Studio 2008. I do not want to have to specify them when I call MSBuild, the sln/proj files all have that information. I don't want to change my build script if I add conf...

Hidden features of msbuild

I have an interest in msbuild this week. I'm cleaning up a lot of extremely complex build scripts. Digging in surprises me with how much it can do - msbuild is sort of a hidden feature of .NET programming in itself. In the SO convention that questions must have answers, in a few days or a week, I'll mark the most useful or coolest hidd...

Trouble with Properties in SolutionToBuild

I am trying to use the Properties Metadata in the SolutionToBuild item in Team Build. I am adding the version to the Properties metadata inside a target that gets called before the code is even gotten (BuildNumberOverrideTarget), but I guess that is too late. My changed values do not get passed to solutions that are built. When does ...

Compilation resulting in double warnings

I have a WPF project and compilation by Visual Studio/MSBuild seems to do 2 passes, with the latter pass adding some temporary resource files, e.g. csc <options> <files> csc <options> <files> /resource:obj\Debug\Project.g.resources I suspect you cannot work around this (at least not without giving up code generation or XAML). But the ...

Visual Studio integrated custom MSBuild task behaviour

I was looking around the net for a NUnit custom MSBuild task that would run on every build and also nicely play with Visual Studio UI (2008 is my version). I found MSBuild.Community.Tasks project that was great, but failed in Visual Studio integration part. What I actually wanted to have is get failed tests displayed as warnings/errors i...

How do you call an overridden MSBuild target

In MSBuild you can override a <Target /> from another file in your own. For example the AfterBuild target included in Microsoft.Common.targets file simply by defining your own Target with the same name: <Target Name="AfterBuild"> <!-- Do something different --> </TargetName> You'll see a note like this: Overriding target "AfterBu...

How to delete multiple files with msbuild/web deployment project?

I have an odd issue with how msbuild is behaving with a VS2008 Web Deployment Project and would like to know why it seems to randomly misbehave. I need to remove a number of files from a deployment folder that should only exist in my development environment. The files have been generated by the web application during dev/testing and are...

Build with msbuild and dynamically set project references

I have a couple of projects which reference SQL Server assemblies. With SQL Server 2005 and SQL Server 2008 I am currently maintaining 2 project files which point to the same source files and the only difference is the references to the SQL Server assemblies. Is there some way that I can only maintain one project and dynamically specif...