msbuild

How do I determine the current operating system version in MSBuild?

Is there a native or custom MSBuild task available that returns the current OS version? Is there a binary that I could call via an Exec task? Or is there some other option? Edit: Peter Lang suggested the following link: http://www.paraesthesia.com/archive/2009/07/06/getting-the-windows-os-version-in-msbuild.aspx ...

How is MSBuild Incremental Building Different from Copy with SkipUnchangedFiles=true?

If I have an msbuild target that just copies changed files, why would incremental building be better than just using the Copy task and setting SkipUnchangedFiles = true? ...

Error URL for Prerrequisites Setup.exe Click Once VS 2008

Hi all, I have this trouble: I am using VS 2008 Team Suite, and I have WinForms csproj. I want Publish it using ClickOnce. In Publish Properties of csproj, I have these values: Publishing Folder Location (web site, ftp server, or file path): C:\ClickOnce\Frk.Security.CarWin.WebInstall\Publicacion\ Installation Folder URL (...

MSBuild and TeamBuild - how to get post build files into BinariesRoot?

Hi! I wonder how to solve the following task: I build additional files in the AfterCompile Target in an MSBuild File. The Post Build Files should be copied somewhere, so that they are put to BinariesRoot automatically on TFS later on. The Post Build files references obj/Release/some.dll, so it must happen after some.dll was compiled, ...

SDC Tasks Library: CreateVirtualDirectory with AppCreate="False" Ignored...

With the following: <Web.WebSite.Create Condition="'$(Flag)'=='false'" Description="XXX" Path="$(SolutionPath)\Blah" Port="8100"/> <!-- Add Resources VirtualDirectory --> <Web.WebSite.CreateVirtualDirectory Condition="'$(Flag)'=='false'" VirtualDirectoryName="Profile" Path="$(RootFolderPath)\Resources" Ap...

changes url of setup.exe (deploy ClickOnce) using Msbuild

Hi all, I use msbuild for using setup -url="location"... I publish application using ClickOnce and I want changes the url in the setup.exe. <Exec Command="$(PublishDir)\setup -url=$(ProviderUrl)" /> Another problem is that after using the /url switch to change out the URL, it appears message for manually confirming that the signatur...

MSB3422 Failed to retrieve VC project information through the VC project engine object model. MSB3425

I'm getting the following errors from MSBuild while trying to build a solution: C:\dev\MySln.sln : warning MSB3422: Failed to retrieve VC project information through the VC project engine object model. Unable to determine default tool for the specified file configuration. C:\dev\MySln.sln : warning MSB3425: Could not resolve VC project ...

Language (C# or VB.Net project) Impact on .Net Build Script

I am very new to writing Build Script. I am trying to understand the impact of the using Different languages (c#, vb.net c++) while creating a build script. Build script can written using either Nant or MSBuild. Is the only change in the build script is with regards to compiler switch or even the deployment structure also changes with...

How do I compile an ASP.Net MVC project using MSBuild

How do I compile an ASP.Net MVC project using MSBuild? We use a Continuous Integration server to compile and deploy our applications. To keep things simple I created an MVC 1.0 project in VS2008. I immediately created an MSBuild script file to compile it. I did not change any code in the project. The MSBuild script contained th...

Infragistics license exceptions when MSBuild-ing

When running the MSBuild scripts for a project, I'm getting the following errors: Properties\licenses.licx(1): error LC0004: Exception occurred creating type 'Infragistics.Win.UltraWinEditors.UltraNumericEditor, Infragistics.Win.UltraWinEditors.v5.2, Version=5.2.20052.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.Compon...

nant vs. msbuild: stopping a service

I'm trying to decide which side I'm on in the MsBuild vs. Nant war. I'm starting with: stop a service, deploy some files, restart the service. Just from looking at these two links, that is much easier to do in Nant. MSBuild: http://stackoverflow.com/questions/173393/example-of-using-service-exists-msbuild-task-in-microsoft-sdc-tasks/17...

Solution rebuild fails using MSBuild in command line but Visual Studio rebuild works fine

I'd like to rebuild my solution using MSBuild in command line. So far I'm using this command C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe d:\WorkCopy\AppServer.sln /t:Rebuild But when I've changed or deleted a file the rebuild fails. I'm getting the following error code Ulohy\GetUlohy.cs(27,33): error CS0246: The type or namesp...

Silverlight, MSBuild, VS and some shared files. How?

I have a VS project used for my .NET WCF host with some simple DTOs in it. I then have another project targeted for Silverlight with links to the files from the .NET-project. What's the best way automate the build, so that all files from the .NET project are automatically built to a Silverlight assembly too? I have tried the following ...

I want to create a tool that manipulates C# project files

(Basically we want to import targets files at some places in the *.csproj file and otherwise check that the file follows our standards) What is the best way of doing this? I am planning to use C# and XDocument (LINQ to XML) and manipulated the nodes. But is that the best way? Other alternates may be: Find the XSD for csproj/msbuild an...

MSBUILD Executing only Changed SQL Scripts

I need to construct an MSBUILD script executes .SQL Scripts which have changed since last build. I initially thought that I could copy all scripts from one folder to another using the <Copy> task and using the CopiedFiles <Output> for the copy task. However the copy task returns All files that it Attempted to copy, not actual copied fil...

Uploading only changed files to web host

Hi, Using msbuild, how can I upload only changed files to my web host (from an asp.net web application)? Thanks ...

Team Build - Replace Project References with dll's

Hi, Following Situation: 2 Team Projects Dvelop of Team Project A added Project References of Team Project B to their projects. For speeding up the Build I want to replace the project references with referencing the dll's directly. My Idea: in the csproj of Team Project A: <ProjectReference Condition="'$(IsDesktopBuild)' == 'true...

Reporting failed task in CruiseControl.NET

I am setting up a build system and would like to display which task failed the build in the "Project Report" section in the dashboard and in the build failure email. At the moment I have three tasks: SourceControl Msbuild Unit tests (using gallio.echo from CC.Net exec task) If either of the latter two fail it's not obvious from the ...

MSBuild and Web Deployment Project external dependencies

First time MSBuild/CI setup. I've got all my class libraries building, but am getting hung up on a web deployment project. This requires several binaries that are to be copied from a sibling folder. The folder contains other binaries that I do not want copied; I just want what it needs and nothing more. The csproj files specify the b...

What are the advantage of using MSBuild

HI All My Manager forcing me to use MS Build in my application.I developed my application in asp.net MVC. Please help me to remove some bad question in my mind what are the advantage of MS Build? Is there any other Build which is batter then MS Build? What are the drawbacks on simple build of project? Thanks in Advance ...