msbuild

Error doing an MSBuild on a CLR Storedprocedure project on Build Server

Hi, When building a CLR Storedprocedure Project using MSBuild on our build server (Team City) we're getting the following error: error MSB4019: The imported project "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\SqlServer.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists o...

Microsoft TFS Build Automation - ASPNETCOMPILER error

I'm trying to get the build automation going for our TFS solution. The solution contains multiple class libraries, and one web site (not a web project). Everything seems to build fine, except for the web site. I'm getting the following error: ASPNETCOMPILER : error ASPRUNTIME: The target directory is not empty, and does not appear to co...

TeamBuild: How to create a bug on a partially successful build.

Hello, I am using TFS 2008 and writing my builds using the built-in TeamBuild. I have the build set up in such a way that it will create a work item of type Bug upon failure, and will also create a bug upon unit test failure. However; today our build partially succeeded due to the fact that an exec task kicked off an executable which ...

MSBuild, build dependant projects with different configurations

I've a (C++) solution with a Tools project and a Main project. Main depends on Tools. I can build this project easily using MSBuild with e.g. msbuild /t:configuration="Release" Main.sln The Tools project only have the "Release" and "Debug" configuration. The Main project also have a "Release Lite" configuration - from within Visual S...

How do I use Visual Studio 2010 RC 'one click publish' from the command line?

I've got VS 2010 RC running and have two publish profiles set up in it, one for publishing to the staging server and one for the developer test box. It works great but I want to put the deployment to our dev server into our build server and run it on check-in. I'm looking for an MS Build target or a command I can call via MS Build that ...

How do I handle two assemblies with the same filename during a TFS 2010 RC build?

I am following the CSLA.NET for Silverlight pattern of using the same filename for the business objects assemblies. For example: CSLA.dll // .NET assembly MyProject.Entities.dll // .NET assembly CSLA.dll // Silverlight assembly MyProject.Entities.dll // Silverlight assembly This is done so you can use a si...

How do you stop MSBuild execution without raising an error?

With MSBuild, as soon as an error occurs, the execution of the project is stopped unless ContinueOnError=true. Is there a way to stop the execution of the project without raising an error? I'd like to have this possibility because I have an existing set of msbuild project files and in some circumstances, I would need to stop processin...

TFS 2008 MSBuild Dynamic Random Messages?

I have added custom build messages so the Visual Studio GUI shows status messages during the course of a msbuild. I would like to now add something dynamic so I can inject random cute thoughts for the build-watcher. How could this be done? Thanks. ...

Changing MsBuild error message language

Hello, I'm on a Japanese system and when I run MsBuild.exe to build a Visual Studio project, I get a mix of Japanese and English in the output: C:\path\to\solution>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe solution.sln Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright ...

OutputPath ignored on projects being build by TFS 2010

I have installed TFS2010 Beta 2 with default settings and configured a CI build with a solution containing the indivial projects. My *.cspoj files could have: <OutputPath>bin\debug\</OutputPath> Or alternatively: <OutDir>bin\debug\</OutDir> When the build server is done building and running tests etc. all the assemblies are placed...

When a TFS build is triggered by a check-in what how does it do the get?

I have a CI process set up in TFS 2008 so that every time a check-in happens a build is triggered but only if a build is not already running. The exact setting used in the configuration is the radio button labeled: "Accumulate check-ins until the prior build finishes (fewer builds)" The checkbox "Build no more than every _ minutes." is ...

TFS Build Automation - Web Deployment Project error

I'm trying to build a web deployment project using TFS automated build process. When I build the project directly in Visual Studio 2008, it works fine. But from TFS, I get the following error: "C:\Users\tfsservice\AppData\Local\Temp\TestProduct\TestSolution\BuildType\TFSBuild.proj" (EndToEndIteration target) (1) -> "C:\Users\tfsservice...

MSBuild - Set Properties For Solution

We are using .NET 3.5 with VS2008. I have a solution with ~20 projects in it, and that number will grow over time as the application grows and adds new modules. Today I needed to set a property on every project. I had to edit each csproj file to add the following: <Target Name="BeforeBuild"> <CreateProperty Condition=" '$(Solut...

MSBuild appending data to configuration string

Hi, I am getting strange behavior from MSBuild. I use the command: msbuild.exe /p:Configuration="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" "MySolution.sln" && exit %%ERRORLEVEL%% And it gives me the error: MySolution.sln : error MSB4126: The specified solution configuration "Release|Windows Mobile 5.0 Pocket PC SDK (...

msbuild proj file creator/tool for msbuild proj file.

Is there any tool that will create .proj file. Its very cumbersome to create it by hand for big & complex project structure. ...

When do we use msbuild file?

Hello, I am working on a web application in VS 2008. To compile the applicaiton I go to Build in Visual Studio and click on Build Solution and when i have to deploy the site I click on Publish and it publishes the site to a directory. Now my question is when do we use this msbuild file? what exactly this file does for Us? Thanks. ...

When using devenv /command to execute a command or macro can you make the process return an error code or message?

Not going into detail on why I want to do this, I need to execute a macro inside Visual Studio as part of our msbuild script. The macro performs some actions in the IDE and then calls Application.Quit() to close the IDE. Do you know if there is a way to make devenv.exe return some error code or anything really that could let msbuild kno...

How to avoid breaking build when committing Visual Studio Unit Tests in CruiseControl.Net

I'm having a problem when a project is committed to SVN, which in turn is automatically picked up by our newly set-up CruiseControl.NET server, the UnitTests are failing. The unit tests are written in the default Visual Studio Unit test framework - which is the problem. I spot that nUnit appears to be recommended as a good alternative. ...

How can I get the list of properties that MSBuild was invoked with?

Given this command: MSBuild.exe build.xml /p:Configuration=Live /p:UseMerge=true /p:EnableUpdateable=false how can I form a string like this in my build script: UseMerge=true;EnableUpdateable=true where I might not know which properties were used at the command line. ...

Delphi Build Automation and Continuous Integration feasible using MS Build only?

I am looking to implement a tinderbox, (a build server that does clean version control check-outs and full system builds of everything in a given source repository or project), and something like "continuous integration" for small teams, with Delphi. I am loathe to commit to a commercial "build server" product and am hoping I can do a l...