I've added an additional after build step so that I can integrate mspec with teamcity. However I do not want to run this when I'm building in the IDE as it lengthens the time to build. Is there someway I can detect whether I'm building from the IDE and not execute this specific target? This is what I have so far.
<Target Name="RunSpecs"...
I am currently working on an application that generates C# code files and adds them to an existing project. To edit the project I'm using Microsoft.Build.BuildEngine, and loading the exisiting .csproj file into the Project class.
csproj = new Project(new Engine(),"3.5");
csproj.Load("/myproject.csproj");
After wich I am able to add...
Hello I am using the MSBuild Bootstrapper for my Visual Studio 2005 project. I need to have a specific version of DirectX installed with my program. The problem is I am unable to catch and defer the reboot after DirectX gets installed. I dont know why it wont catch it. So my new idea is to have DirectX be installed after my program is. T...
I've been working on tacking on a deployment operations to my web project file so that I can deploy a web project from TeamCity. How can I enclose the and steps so that I do not need to repeat the condition check?
<Target Name="Deploy">
<PropertyGroup Condition=" '$(Configuration)' == 'Development-Publish' ">
<ScriptPath>c:\scri...
As part of a solution containing many projects, I have a project that references (via a <ProjectReference> three other projects in the solution, plus some others). In the AfterBuild, I need to copy the outputs of 3 specific dependent projects to another location.
Via various SO answers, etc. the way I settled on to accomplish that was:
...
I need to build VC++ project (made in VS2008) from command line using MSBuild with additional .cpp file which isn't part of this project (doesn't listed in section of .vcproj file.
Is there are any way to do this? (e.g. just by passing filename to command line input).
Editing .vcproj file by my script is also is a option but I save it ...
We are using TFS build and we have a couple of custom steps within the configuration (e.g. running NUnit tests in AfterCompile target, deployment steps in AfterDropBuild target etc.). Now I wanted to add the functionality of sending emails on broken builds. I have configured a mail task from MS Community tasks and put it to the BeforeOnB...
I'm trying to automate publishing a click once application.
I am using VS2005.
I have been able to deploy properly from VS, but not from the command line.
Here is the line I'm using:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe
/p:Configuration=Release
/t:Publish
/p:PublishUrl=C:\source\deploy\
/p:PublishDir=c:\sour...
I'm imagining something like
msbuild /t:CodeplexRelease
which would build, then upload the outputs to the specified Codeplex project.
Has anyone done this?
...
Hi Guys,
Does anybody know, on a per project bases, whether you can set the WebProjectOutputDir in visual studio. I want to be able to have it so that when i hit Ctrl + Shift + B it automaticaly builds my web project to a specific directory, but I also need to be able to override this in my build script.
Many thanks
Matt
...
In our project files we are using StyleCop and are running it during the build process. We've modified our project files to include the StyleCop targets like so:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.t...
I am trying to integrate the automatic generation of MSI installers with my CruiseControl.Net installation. I can see how I can manually build an MSBuild file that calls candle and then light, but I need to make it build installers that can do upgrades, so can I use the BuildLabel (or something of that area) to regenerate new GUIDs for t...
How do I need to indicate to the msbuild task in my nant script that it should use .net 4.0 rc?
...
New problem with VS2005 Team Build:
Building locally a solution of a mobile client for a platform of the company, everything goes pretty neat and compilation occurs without major hiccups, but using the very same solution on a Team Build gives me the following problem:
Solution: TB Client.sln, Project: Client.PocketPC.UIAPI.csproj,...
Hi,
I want to run MSBuild on a users PC as part of a WinForms ClickOnce deployment. That is after the application is downloaded and run (via clickonce) the application needs to kick off an MsBuild to handle database updates (using MigratorDotNet).
Q - How can my application robustly kick off MsBuild? i.e. how can it be sure what pat...
I have a custom build target in a visual studio 2008 c# project. Is there a simple way to add a context menu item to the project, so that the custom build target can be executed via the ide? The build target is not integrated into the default build process and has to be started by hand. This step should be simple for all developers and s...
Hello,
The jist is I want to copy all the compiled files from a project to another folder after a build is finished. I figured I would use a Copy task in the AfterBuild target. Is there any way to get a list of built files in this target so I know exactly which files to copy?
Thanks
Update:
Read my comment below to see how I figure...
I need Team Build to provide version numbers while performing an incremental build. I need this for both .csproj and .vcproj files. How do I do this?
Evidently Jeff Atwood provided the solution for .csproj projects at a link that no longer works:
blogs.vertigosoftware.com//teamsystem/archive/2006/07/06/Adding_the_Build_Number_to_your...
I have three different configurations on my project, all three do not require all files to be build into the application. Actually I'd prefer if I could exclude those files from the build, which would make my application a little more lightweight.
What I'm looking for is #if MYCONFIG or #if DEBUG statement but for files. I've already re...
Our Team Foundation Server has to build three different versions of the same solution. The only difference between them is the app.config file which should be changed for each build. How do I select correct file during the build?
What I want to do is switch app.config file and then build, repeat for each file. Ie:
<Replace file="app.co...