msbuild

How to get a property from a task in a TFS build?

I made a custom task in my TFS build to examine my project's GlobalAssemblyInfo.cs file in order to extract an attribute (AssemblyInformationalVersion to be exact) in order to use its value in naming a zip file that I make with the build. <UsingTask TaskName="GetAssemblyInformationalVersion.GetAssemblyInformationalVersionTask" ...

Return output from an MsBuild task?

I'd like to calculate a path in a MsBuild task, to be used by another MsBuild task. What is the best way to accomplish this? Setting a environment variable, printing to Console, ...? ...

Passing property group value from one MsBuild task to another

How do I keep values defined in one build target alive in other targert? If PropertyGroup is not the write MsBuild entity I should use here, what is? ReleaseDir is printed ok in "Package" target, but is empty in "DoPackage" <Target Name="Package"> <PropertyGroup> <ReleasesDir>c:\tmp</ReleasesDirBase> </PropertyGroup> <Message ...

ASP.NET GUI-friendly Build tools

I am new to .NET programming. We are a team of 4 members developing a web based application. We will begin our development once the Requirement Specification and other formalities are completed. As suggested in this forum we are planning to use Visual SVN for source control. We are not aware of Build tools, we heard that MSBuild and ...

msbuild not updating revision number using AssemblyInfoTask

After much Googling, I found a custom task that could increment my revision number while building my project using msbuild. However, the revision number is not being updated. Without modifying my "Microsoft.VersionNumber.targets" file, the build fails and says "The version specified '0.0.090903.0' is invalid". So I found this link which ...

Web Site project builds in VS2008 SP1 but not in MSBUILD through CruiseControl.net

I've got a pretty simple web site project that I want to build using CruiseControl.net. On one page there is a user control nested within a repeater control, and I need to get a strongly typed reference to that user control in the ItemDataBound event handler: ASP.usercontrols_stars_ascx stars = (ASP.usercontrols_stars_ascx)e.Row.Fin...

Cruise Control.NET File Merge NUnit File - Getting XmlException

I am new to Cruise Control. I'm running a project where I use an MSBuild file to build my project. I'm using the NUNit task in the MSBuild Community Tasks project to run all of my unit tests and output an xml file with the test results with this command: <NUnit Assemblies="@(OutputFiles)" WorkingDirectory="$(UnitTestResultsLocation)" ...

Does building a Delphi project with MSBuild create .Net dependencies?

This may be a stupid question, as I'm not sure how MSBuild works with Delphi under the hood, but we have a Delphi app that needs to run with no .Net dependencies, and since we have updated our build process (now using team build with msbuild) the app won't run without .Net. I am just trying to narrow things down, so I'd appreciate any he...

Creating msbuild script to build, publish with specified app.config, and update from different locations.

I have googled everywhere for this solution and cannot find anything! I want to have a msbuild script to do the following: Build the project solution Publish the built solution with the specified app.config (app.config.debug or app.config.release) to a specified folder (Development or Production) With the specified configuration, know...

Zip task of MSBuild Community Tasks changes file attribute

I have found that creating a zip file using the Zip task provided by MSBuild Community Tasks changes (or rather, deletes) any file attributes of the files being zipped. Here is one of my calls to the Attrib task to make DLLs inside a folder have the read-only attribute: <Attrib ReadOnly="true" Normal="true" Files="@(DLLsToReadOnly)" /> ...

How to build .dbproj without VSTS DB installed?

Is it possible to build Visual Studio Database Project (.dbproj) on a machine without Visual Studio Team Suite or Team Foundation Build installed? I've got a "clean" machine running CC.NET and would like to automatically build .dbproj projects using MSBuild. I wonder is it possible to copy required .targets files and some .dll and make...

Update version info with MSBuild (after binaries compilation)

I want to make a target in my MSBuild script that: Fetch SVN revision/datetime from sources folder ('svn info' command) Update VERSIONINFO resource from .EXEs and .DLLs generated by 'build' target There is something ready to accomplish this? I'm asking just before reinvent another wheel... I'm giving a look into http://msbuildexten...

How to install msi on remote machine from msbuild using Psexec?

I have searched all the custom tasks in Extension Pack and Community Tasks and finally found a task called Msi.Istall in SDC Tasks. But the documentation is bad and causes problems. I get errors regarding the properties passed to the installer. So I wrote a custom task that calls PsExec.exe from Msbuild but it hangs... Below is my Inst...

MSBuild output vs Visual Studio output against a COM interop

I am attempting to a get a isolated build environment setup in my dev team. The problem that I am presently hitting is a DotNet project which has a reference to a VB6 COM assembly. The COM assembly is registered on the build system, but when I run msbuild against the sln I get the following error: error MSB3303: Could not resolve COM ...

How to install assembly to GAC using Msbuild?

Is it possible to do this natively without addons or 3rd party tools? I know there is the gacutil, but there is not an exe to run, otherwise i could've called it from the Exec task. Has anyone done something similiar? ...

MSBuild.Community.Tasks.Attrib on x64 machine failing

I'm having an issue with the Attrib task from the MSBuild Community Tasks Project when running on a 64 bit build machine. I've put together this small test project to show what the problem is: <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <Import Project=...

Safe to use msbuild from VS 2010 on VS 2008 projects / .Net 3.5

I use Teamcity on Windows 2003/IIS 6 for my continous integration environment. I use the msbuild runner. Whilst I know there are a number of tasks and way to handle config replacement and transformation between environments I'm particularly interested in this one provided by Microsoft based XSLT principles which looks like it refers to m...

Send e-mail from MSBuild script with non-standard port SMTP server

Hi! Is there a way to send e-mail from a MSBuild script using a task that get a connection from a SMTP server that listens to a non-standard port? I've seen that tasks from Extension Pack, Community Tasks and SDC Tasks provide an attribute for the SMTP server name but no attribute for the server port. Any idea? Regards, Olivier. ...

MS Build & Cruise Control - replacing a reference in a project from a 32bit version to 64bit version

Hi Guys, I have a solution which contains a project with a reference to a library that creates PDF files. The PDF library has a 32 bit version and a 64 bit version. During development, the project references the 32 bit version. I am developing on a 32 bit machine. I have Cruise Control triggering a build every time I check something...

MSBuild file for deployment process

I could do with some pointers, code examples or references that may help me do the following in an msbuild file to help speed up the deployment process.. This scenario involves getting a developers 'local' version onto a 'development' server.. Increment a developers local Web Applications Assembly version number Publish a developers l...