msbuild

Build output files have the db name prepended to them; don't want that.

I have STFW, the documentation, and poured through my own build scripts and cannot find the answer; even reading through a "Diagnostic" build log has yet to reveal what I am looking for. When I build a VS2010 / MSSQL 2008 solution containing four projects, the output for each project looks like: __target/$Arch_$Config/sql/$projectName/...

registering DLLs / COM interops during command-line MSBuild

Hi, I'm automating my MSBuild-based C# solution build using Hudson running on a Windows machine. My product depends on a number of third-party DLLs that need to be registered in some form or fashion for the build to work. Are there any best practices for performing that sort of registration via MSBuild or Hudson? The particulars: Red...

Exit msbuild on target failure in Teamcity

How do I get Teamcity to stop when an MSbuild target fails rather than continuing to run all targets? ...

Winform application setup project ouptput installer and project files to write to multiple DVDs

I developed a Winform application that provides security, encryption and plays huge bunch of SWF files. I created a setup project for my application and it packages the files as uncompressed files. I would like to burn the ouptut files to a DVD but the problem being the size (6GB or more), it requires 2 DVDs at least. I would need to pro...

References of ALL Properties MsBuild

Where is a complete reference of ALL MsBuild properties ?? Like this $(OutDir) $(OutputPath) $(TargetName) $(TargetExt) ... ...

Removing a trailing slash in MSBuild / Convention based filename generation

I'm trying to search for a set of assemblies based on the following convention within a directory: {SubDirName}\{SubDirName}.dll I've started by creating an MSBuild ItemGroup [by batching another ItemGroup on the .RecursiveDir portion]. <AllAssemblies Include="$(SourceDirectory)\**\Test.*.dll" /> <Dirs Include="@(AllAssemblies->'%(Re...

anyone who has used Atlassian's Elastic Bamboo to build .NET projects - what AMI do I need to use?

This whole setup process is fairly perplexing, and I feel like the documentation is written for CI and cloud experts. Can anybody lend some inght into their setup? ...

Wrong version of aspnetcompiler when using msbuild 4.0

I'm trying to use the AspNetCompiler task within a custom msbuild file to precompile an asp .net 4.0 website. However, when i run: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe custom.msbuild /t:PrecompileWeb it uses the v2.0.50727 aspnet_compiler. Is there a way to force it to use the v4.0.30319 aspnet_compiler? The reas...

error MSB4006: There is a circular dependency in the target dependency graph involving target "Install".

I'm use msbuild for deploy my applications, using VS 2008, windows xp It appears this errors: warning MSB4011: There is a circular reference involving the import of file. error MSB4006: There is a circular dependency in the target dependency graph involving target "Install". ScriptDespliegue.Targets file call to task from $(MSBuild...

Building a project with MSBUILD builds up-to-date, not specified projects (.NET 4)

Hello, I have a solution I am migrating from Visual Studio 2005 to 2010. Inside the IDE on developers machines, everything works fine, but my build server (with CC.NET) is giving me an error. I have around 10 projects, 3 of which are not strong-named due to using unsigned references. One of them (signed) has an InternalsVisibleTo anot...

How do I keep MSDeploy from deleting extra folders in my project?

I am using the MSBuild runner in Team city to build and deploy my project to a staging environment. Everything works perfectly except for the fact that it keeps removing my repository folder located in the root of the project. In Visual Studio 2010 there is a check box in the publish profile dialog that says "Leave extra files on destin...

MsBuild: Read part of the file using ReadLinesFromFile

Hi, I need to read the XML from the file. I use following code: <ItemGroup> <SourceXsltFile Include="SourceFile.xml" /> </ItemGroup> <ReadLinesFromFile File="@(SourceXsltFile)"> <Output TaskParameter="Lines" ItemName="FileContents" /> </ReadLinesFromFile> But I need only the part of the file's content to be copied which resides ins...

C# application not recognizing satellite resource assemblies

Due to the extreme amount of .resx files in our application, I have created the following MSBuild script to compile all language .resx files into .resource, then embed them into satellite resource assemblies. <Project DefaultTargets="Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <ItemGroup> <Res Include...

How to start on MS-Build

Hi, I wish to start using MS-Build. I have lots of projects which I build manually (from Visual Studio) as of now. I want to automate build process and preferably from a machine onto which I don't wish to install Visual Studio. I started reading about MS-Build on MSDN. But I am yet to get a step by step guidance where to start and how to...

Why msbuild.exe can do publishing (clickonce) while msbuild task can not?

Hy guys I'm writing script for CI system (Bamboo). So, it calls "msbuild.exe project.sln /p:Configuration=Release". In csproj file of mvc web application i defined after-build task in different ways. None of these do publish: <AspNetCompiler VirtualPath="temp" ToolPath="C:\Windows\Microsoft.NET\Framework\v4.0.30319" PhysicalPa...

TFS and MSBuild: how to get latest changeset version.

I am attempting to get the latest changeset version in a TFS MSBuild. I have tried a number of solutions, and have referenced http://stackoverflow.com/questions/1630823/tfs-and-msbuild-version-number-with-last-changeset without the desired result. Any other ideas? Some blog entries/examples suggest using 'tf changeset /latest /i msbu...

MSBuild 3.5 produces different IL than MSBuild 4 for the same code

Edited to indicate the VS'08 cannot compile a working dll, though I original said it could We have a piece of VB code that compiles differently depending on what tools are used to compile it. I have tried compiling this code on several different computers using Visual Studio '08, '10, and MSBuild 3.5 and 4. MSBuild 3.5 (which our bu...

How to output a timestamp in MSBuild

I am using MSBuild/yuicompressor to combine and minify JavaScript. As part of this process, I want to modify my script references so they have a timestamp in the querystring. That way, a user always gets the non-cached version of the file when a new release is published. For example: <script type="text/javascript" src="/scripts/combine...

TFS Continuous Build - MSBuild - Running Test fails when search Config files

Hi all, I'm having a little problem with Running Test on VS TFS 2008 Continuous Build. The problem is that MSTest.exe search config file under "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\" path, so the error is: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\MyConfig.config could not be found. Ther...

MS-Build BeforeBuild not firing

I'm customising a .csproj project to run some custom tasks before the main build. However, I can't get the tasks to execute at all. I uncommented the <Target Name="BeforeBuild" /> element in the .csproj file and added a simple Message task, but when I build, the message doesn't appear in my output, so it seems the task isn't running. S...