msbuild

How to create copying items from property values?

Let's say I have a list of sub paths such as <PropertyGroup> <subPaths>$(path1)\**\*; $(path2)\**\*; $(path3)\file3.txt; </subPaths> </PropertyGroup> I want to copy these files from folder A to folder B (surely we already have all the sub folders/files in A). What I try was: <Target Name="Replace" DependsOnTargets="Replace_Init...

VSTSDB Continuous Integration Best Practice: Installing our integration test SQL Server on the same box as TFS Build Agent?

We are beginning to use Visual Studio Database Edition 2010 (VSTSDB) for our continuous integration. In short I have our nightly build creating the Deploy SQL and then running the script on a SQL Server. I will eventually have integration unit tests run on the newly created database(s) after the build is dropped and database is created. ...

Which places I could question about TFS, Visual Studio and ALM?

Hi all, We are going to applying VSTS 2010 in our company. This includes Visual Studio, TFS, TFS Build and ALM. It's predictable that we would encounter a wave of new questions about their usage. But the problem is I don't know which places we could do questioning. StackOverflow is programming base question site and ServerFault is not...

Shared classes are build under VS2008 only but not under MSBuild.

We share our classes between silverlight 3.0 client and server as is it described here. Everything works fine under Visual Studio 2008 only. Using msbuild with following command line parameters: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe FoobarApplication.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU" we get fo...

Visual Studio build and deploy ordering

We have a VS 2010 solution that includes a few class library projects, a SQL Server 2008 database project and a Wix setup project. We are trying to get to a point where the following happens in the order specified: Build the class library projects and the database project Deploy the database project to generate the deploy .sql script B...

Resolving MSBuild 4.0 warnings

I've upgraded a solution to use MSBuild 4.0. It compiles but I get lots of warnings, for example: "T:\projects\Castle.Core\buildscripts\Build.proj" (Package target) (1) -> "T:\projects\Castle.Core\Castle.Core-vs2008.sln" (Build target) (2:2) -> "T:\projects\Castle.Core\src\Castle.DynamicProxy.Tests\Castle.DynamicProxy.Tests-vs2008.cspr...

Error while running Scheduled Task from MSBUILD script

I am running a MSBUILD script which disables and enabled a scheduled task from command line. I am getting following error. No idea, what 'exited with code 1' means. When I try to copy paste the line in command prompt, it works perfectly. I doesnot run in MSBuild script which is in turn called by CruiseControl.NET SNIPPET FROM MSBUILD fi...

MSBuild: automate collecting of db migration scripts?

Summary of environment. Asp.net web application (source stored in svn) sqlserver database. (Database schema (tables/sprocs) stored in svn) db version is synced with web application assembly version. (stored in table 'CurrentVersion') CI hudson server that checks out web app from repo and runs custom msbuild file to publish/package app...

Reusing MSBuild targets for different build types

I have got a problem with reusing the same MSBuild targets for different build types on TFS. Let me describe the situation. I have got two build types (CI - for continuous integration and RC - for release candidate). So I have got two build types defined in the TFS. Their *.proj files are under: - $/Repository/TeamBuildTypes/CI - $/Re...

Environment variables get lost between MSBuild projects

Hi, I have a .NET solution containing following projects: web application (WAP) web deployment (WDP, .wdproj) wix setup (WIX, .wixproj) In the WDP I've used a custom MSBuild task (SetEnvVar) to set some env. variables for further use in the build process. After setting them I can use them without prob. in the WDP but in the WIX th...

msbuild can't find .NET 'setup.bin' file

I'm getting the following warning and error from msbuild: C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.Common.targets : warning MSB3155: Item 'Microsoft.Net.Framework.2.0' could not be located in 'C:\src\Oakhurst\trunk\code\VisionCentral'. C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.Common.targets(3604,9): error MSB3...

Overriding MSBuildExtensionsPath in the MSBuild task is flaky

This is already cross-posted at MS Connect: https://connect.microsoft.com/VisualStudio/feedback/details/560451 I am attempting to override the property $(MSBuildExtensionsPath) when building a solution containing a C# web application project via msbuild. I am doing this because a web application csproj file imports the file "$(MSBuildE...

How can I trigger ClickOnce install in MSBuild?

I am creating a project template. I want the project template (at creating / opening the new project) to prompt an installation for a ClickOnce application. How do I do that? This did not help: http://stackoverflow.com/questions/502896/visual-studio-setup-deployment-adding-pre-requisits ...

Msbuild consumes memory, hangs creating folder and copying linked files

aHello! My msbuild script (v3.5) has recently started behaving very strange. I build the entire solution at once that has 110+ projects. The build seems to run normal but then gradually slows down to halt with 1hour+ per project and consuming 500+MB memory. It started happening with no apparent reason to be the cause (a code update afte...

MS build logging

Hi Guys, How to enable logging in msbuild. My build is failing, I don't know why. Is there any property needs to be set in property group. ...

How do I specify MSBuild to execute command-line calls in ascii not unicode

I'm attempting to target VC7.1 (visual studio 2003 sp1) from Visual Studio 2010. I'm so close to setting it to work. But when I build, I get this error. 1>------ Build started: Project: AnExample, Configuration: Release Win32 ------ 1> Microsoft (R) 32-bit C/C++ Standard Compiler Version 13.10.6030 for 80x86 1> Copyright (C) Microsof...

Visual Studio 2008, MSBuild: "replacement" projects

Hello, My solution has a library project which needs a special environment to be built (lots of external libraries and tools)... but it is not vital to our application. We'd like to avoid installing these tools when not necessary (most of our developers work on other parts of code). We have created another project which has the same AP...

MSBuild task for Silverlight unit testing

Hi All We have automated build environment which uses MSBuild task to launch NUnit test. How can I launch unit test written with Silverlight Unit Test framework? Is there a MSBuild task available? Thanks ...

How can I prevent external MSBuild files from being cached (by Visual Studio) during a project build?

I have a project in my solution which started life as a C# library project. It's got nothing of any interest in it in terms of code, it is merely used as a dependency in the other projects in my solution in order to ensure that it is built first. One of the side-effects of building this project is that a shared AssemblyInfo.cs is created...

MSBuild Script and VS2010 publish apply Web.config Transform

So, I have VS 2010 installed and am in the process of modifying my MSBuild script for our TeamCity build integration. Everything is working great with one exception. How can I tell MSBuild that I want to apply the Web.conifg transform files that I've created when I publish the build... I have the following which produces the compiled w...