msbuild

MSBuild imported script directory

In Visual Studio 2010 we have MSBuild for C++ project. Also we can add additional custom properties files "*.props" to projects, which are just MSBuild scripts. Is it possible in imported "some.props" file know its directory? for example there is "project.vcxproj" file and "common.props" file. I would like to write something: <Includ...

What are the MSBuild project level properties for Delphi?

The Delphi documentation for MSBuild says /property:name=value sets or overrides project-level properties, where name is the property name and value is the property value. Use a semicolon or a comma to separate multiple properties, or specify each property separately. /p is also acceptable. For example: /property:Wa...

Why doesn't Content Remove work for MSBuild ItemGroup?

I have an AfterCompile target defined in my csproj which involves minifying and combining JS and CSS. I then add them to ItemGroup Content and remove the unnecessary files, however the Remove paramter does not seem to work. <Target Name="AfterCompile"> <ItemGroup> <JS_Combine Include="js\c??.*.min.js" /> <CSS_Combine Include...

What exactly does System.Diagnostic.Process UseShellExecute do?

I have an MSBuild task that executes (among other things) a call to xcopy. What I have found is that this call to xcopy executes correctly when I run my MSBuild task from a batch file, and fails to execute or produce any output that would allow me any idea what is going on when that same batch file is called from another C# application w...

VS 2008 C++ build output?

Why when I watch the build output from a VC++ project in VS do I see: 1>Compiling... 1>a.cpp 1>b.cpp 1>c.cpp 1>d.cpp 1>e.cpp [etc...] 1>Generating code... 1>x.cpp 1>y.cpp [etc...] The output looks as though several compilation units are being handled before any code is generated. Is this really going on? I'm t...

Dynamically setting the IISUrl of a Web Application Project

I have a web application project that I'd like to be able to branch and develop on a totally separate IIS site and not have to keep editing the vbproj IISUrl setting each time I do it. I have tried adding an import of some standard properties so I can maintain them outside of the WAP file but when I reference them in the element it does...

MSBuild find all directories that contains a file named xxxx

Given a folder structure: parentFolder - ChildFolder1 - somefiletolookfor.txt - (other files and folder) - ChildFolder2 - (other files and folder) - ChildFolder3 - (other files and folder) - ChildFolder4 - somefiletolookfor.txt - (other files and folder) - ChildFolder5 - (other files and folder) I...

DTE.Debugger.Go(False) fails after building externally in a Visual Studio 2008 macro

I am writing a macro to save all open documents, launch MSBuild to build C# projects in parallel, and then run the solution using the debugger. Automating these steps in a reliable way will save my team a lot of time. My problem is I can't get DTE.Debugger.Go(False) to work when the external build changes the output files. Error ...

Project references each refer to different assembly versions

I have a class library project that references the version 4.1 Microsoft.Practices.Common dll. I also reference a 3rd party DLL that utilizes a different version of the Microsoft.Practices.Common DLL. I create a windows app that references both of these DLL's. I receive an error when running MSBUILD: "No way to resolve conflict betwe...

MSBUILD publish does not publish a xsd schema file

I am using MSbuild to publish my webservices projects on the command line using the following command: msbuild.exe MyWebservicesProjectPath\Services.csproj /t:ResolveReferences;_CopyWebApplication /p:Configuration=Release;BuildingProject=true;WebProjectOutputDir=c:\inetpub\wwwroot\webserviceDest;OutDir=c:\inetpub\wwwroot\webserviceDe...

Putting solution build output in a different directory !!

Hi all, I have an issue in building my solution (Hardcopy.sln) .This solution consists of many other modules & each module is directing their output to the bin/debug/ folder. during the whole solution build . i want to redirect the output of each module to a different location .how to do the same. i am using the MSbuild utility to build...

TFSBuild/MSBuild and Project Reference vs File Reference

We Have a large VS solution using project references which is build by TFS Build like so: Solution - Project 1 - Project 2 - Project ... - Project N Because the solution is too large we have several smaller solutions which we use day to day: SubSolution - Project 1 - Project 19 The problem is that developers working on SubSolution ...

Use XSD Build task in c# project

How can I use the c++ XSD Task in a c# project? I have already created the task in the csproj file like this: <Target Name="BeforeBuild"> <XSD Namespace="$(RootNamespace).Xml" Language="CS" GenerateFromSchema="classes" Sources="Xml/schema.xsd" /> </Target> but the build output says, although intellisense offers me the XSD task...

MSBuild 4.0 Regex parsing

I have heard that MSBuild 4.0 has increased Regex parsing support. However, I am unable to find any detailed documentation/links/material on this. Can anyone give a brief description of the new features and/or possibly give pointers to more material? Thanks in advance. ...

MSBuild exec task without blocking

Would anyone happen to know a trick that will keep this MSBuild task from blocking? I really just want the explorer to open and the build script to keep on going. Currently it blocks at the Exec task until the explorer window is closed. <Target Name="OpenExplorer"> <Exec Command='explorer.exe "$(DestinationDir)"' IgnoreExitCode="tru...

Custom msbuild task output not being published

I have a web site I'm trying to publish with Visual Studio's publish option. In that project I also have a custom msbuild task that takes in my javascript files and compresses them and saves them to end with .min.js. These files never make it to the publish directory but when I just do a build (without publishing) they are there. Here i...

Has anyone gotten Xalan to build (against Xerces) with VisualStudio .NET?

I have spent hours trying to get the subversion trunk or 1.10 building with both VS.NET 2008 and 2010, to no avail. I'm currently stuck with many link errors. I've read dozens of threads on this and am quite surprised that two major libraries from Apache would essentially be so fraught with problems when it comes to building. I am using ...

Msbuild application deployment on vmware

Hello, Does any one ever try to do it? Maybe you have some best practicies to share here, I'm completly noob in this matter:| ...

MsBuild run Exec for every item in a list

I'm trying to load a list of filenames from a text file and then run an Exec task for each entry retrieved from the text file. So I have a file, let's call it SomeFile.txt containing the following: FileA.file FileB.file FileC.file The MsBuild code I have for this looks like this (which doesn't work:) <Target Name="runScripts"> ...

Problem with installing windows service using CC.NET and MSBUILD

Hi guys, I am trying to install a windows service using MSBuild and CCNET. I am using MSBuild Extension pack WindowsService task to install and start the windows service as part of automated build. The script section look like this <!--install service--> <MSBuild.ExtensionPack.Computer.WindowsService TaskAction="Install" ServiceName="$...