msbuild

UseHostCompilerIfAvailable False causes an "One or more types required to compile a dynamic expression cannot be found" error

The C# dynamic type seems not to compile when UseHostCompilerIfAvailable is set to false. I have both the required references Microsoft.CSharp and System.Core in my project, but it refuses to recognize it. Using the integrated Visual Studio compiler works, however. The offending line is: dynamic obj = this.Engine.Operations.CreateInsta...

TeamCity + MSBuild: Deployment with access rights

Need to write the script for deploying of web site to shared directory. But for access to this directory needs enter login/password. How can i do it? The part of MSBuild config: <PropertyGroup Condition="'$(SERVER)'=='DEV'"> <DeploymentFolder>\\server\dir$</DeploymentFolder> <CopyConfig>dev.web.config</CopyConfig> <Zip...

MSBuild Community Tasks Documentation

Hi, Is it just me or is the documentation on this project really scarce? I'm trying to find how to use the FtpCreateRemoteDirectory and FTP functionality in general, but can't seem to find anything. Googling FtpCreateRemoteDirectory, only shows the project's source code... ...

What invokes _CopyWebApplication?

I've used AstroGrep and searched both C:\Windows\Microsoft.NET and C:\Program Files (x86)\MSBuild and I can't find anything that refers to _CopyWebApplication besides the file itself. I also tried to search for webapplication to see if something was importing that file, no luck. I have vs2008 and vs2010 ultimate installed. I'm troublesh...

VS2010 Deployment package MSBUILD

The VS2010 Deployment package feature creates the package with a directory structure like: Package\Archive\Content\C_C\Sources\Website1\Web\obj\Debug\Package\PackageTmp I want to have the contents of the last PackageTmp in the root and not the whole directory structure. What is the best way to do this, create a custom task which copies...

How do you override a project target import from a build script that calls it?

In the project file(s) I have the following <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" /> Which I am not able to change. So far my attempts at <Properties>CustomAfterMicrosoftCommonTargets=D:\Projects\OverrideCopyWebApplication.targets</Properties> are no...

Running command line statements from TFS custom activity

I'd like to run a command to execute a subversion command from the TFS custom activity. Should I create a msbuild script to exec the svn command and call msbuild from the activity? Thanks. Anyone? ...

Simple Question on CruiseControl.Net and MSBuild

I have had my first successful build using CC.Net + MSBuild on legacy project. Only took 8 hours. My newb question is: Where is the output? My ArtifactDirectory is empty. Where did everything go? ...

Can you do parallel incremental building on a list of projects?

Is it possible to take a list of projects and parallel build them only if they aren't up to date? <Target Name="DependenciesLevel7" DependsOnTargets="DependenciesLevel6"> <Message Text="5 items to build" /> <MSBuild Projects="C:\Projects\ApplicationManager.csproj;C:\Projects\Metrics.csproj" Properties="$(CustomAllProperties)" BuildInPar...

VS2010 - same soltuion (IE SVN checkout), different locations, one builds, one fails any ideas?

I've got the weirdest thing I've seen in a long while with VS2010. I have the same solution, checked out from svn, into two different folders. One builds one doesn't... but MSBuild doesn't actual fail to build. All the assemblies build and it will run, but VS2010 keeps saying one project fails. If anyones seen this before or can see what...

team build 2008 to build vs2010

I have refer msbuild path in tfsbuild.config.exe to msbuild4.0 and also change tools version in tfsbuild.config to 4 but when i build, i found out that it build solution with tools version 2.0.. Does anyone face this problem before ?? my vs2010 solution consists of vs2010 and vs2008 project. ...

Third-party referenced dll not been copied to build out.

Hi, I have a thirdparty .net dll being reference and used by my dll/class library project “A”. My console app project “B” references project “A”. My problem is the thirdparty dll is not being copied to the build out for console app project “B”. What’s the problem here? The thirdparty dll ref’d in my dll/class library is set to LocalCo...

MSBuild - use default Configuration and Platform for referenced projects

Hello, My "entry point" project has explicit x86 and x64 platform configuration. All referenced projects are of Any CPU. When I try to build my project with /p:Configuration=Debug;Platform=x86 it fails on referenced projects with messages The OutputPath property is not set for this project. Please check to make sure that you have spec...

MSBUILD : error MSB1008: Only one project can be specified. Switch: Education

Why am I getting the following Build error? C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\" /p:InstallUrl="https://www.bene...

How to easily switch reference paths for build?

I have a project that is for a piece of software. So I reference DLL libraries for that software in my project so I can code and make some nice plugins and extensions for the software via their API. The problem is that the software has many kinds of versions: Enterprise, Lite, version 1.6, version 1.7, version 2.0, etc. If I want my pro...

Make CruiseControl.NET MSBuild Task Work The Same As VS 2008 Build

This is similar to these 2 questions: http://stackoverflow.com/questions/2604594/why-does-msbuild-fail-from-the-command-line-where-vs2008-succeeds http://stackoverflow.com/questions/280559/how-to-get-cmd-line-build-command-for-vs-solution When I build from Visual Studio 2008, the build succeeds. If I build from the command line using ...

What hardware improvements should we make to speed up our build machine?

We have a build machine running in our development department, which we've set up to build continuously throughout the working day. What this does is: Deletes the source code previously checked out (5 minutes) Does a clean checkout from subversion (15 minutes) Builds a whole bunch of C++ and .NET code (35 minutes) Builds installers and...

How can I filter which files are included in a workspace using MSBuild?

It seems that MsBuild creates a folder called, "BuildType" on the build server and this folder is where the .proj file is copied. In source control I have several files that are in the same folder as the build project file. I have a workspace mapped to this location. I would like to be able to specify explicitly which files from this wo...

Tfs 2010: Why is my build account explicitly denied all permissions?

I'm setting up a new deployment of tfs 2010. I've got a couple stub projects to be built sitting inside a solution, and I'm attempting to configure a continuous integration build on it. So, I configured a build with all the defaults, and kicked it off. I got this error: TF215097: An error occurred while initializing a build for build de...

MS Build Error 3181- Problem with referenced assemblies

Hello everybody, imagine the following scenario: Assembly "Foo.dll" references the ADOX-Library (Microsoft ADO Ext. 2.8 for DDL and Security) which was added as Interop.ADOX.dll in the bin-directory by VS 2010. "Local copy" of this reference was set to true, too. Assembly "Bar.exe" references both Foo.dll and additionally the ADOX-Lib...