We have a build machine that gets files for MSBuild from source control (SourceGear Vault). Occasionally, developers check in components and later decide to exclude those components from Visual Studio project. When build process gets the latest from source control, these excluded files also get picked up. This causes a problem to the b...
I have a MSBuild script set up to minify and combine my javascript and css files. What I need now is a way to version them. How are you guys currently handling this. What is the best way to incrementally version the file and update the <script/> tag with the new file name?
...
I've got a CCNet build script that runs fine, with the exception of every now and then an MSBuild task times out. I've gone in and increased the timeouts from 600 to 900 to 1200. No dice, so I'm lead to believe it has something to do with what MSBuild is building; a big old web application project. I've looked on the google for any in...
A similar question was asked here without any answers. I have a cs project with a reference to MySql.Data.Dll with CopyLocal=true. When I run the msbuild from command line on one computer (Windows 7 64 bit), it works perfectly.
When I run the same MsBuild on another computer (Windows Server 2008 RC2), the DLL is not copied to the output...
We have a standard MSBuild project file that is used for our different deployment stages (pre-stage, stage, live, etc). Since each deployment stage is performed on a different server we introduced a server parameter called $SourceDatabaseServer and used this extensively in each of the targets inside the project file. Note: This database ...
I am setting up a CI system for VS2008/C# desktop project, nothing fancy, just a build/test cycle. CI will be running under Hudson using MSBuild/MSTest, but I can't seem to decide on a how to do a few things, maybe you can help me out?
My options for running the project in the CI are:
Run the .sln directly from MSBuild
Run the .csproj...
I have a batch script that I want to call from an MSBuild project, and the documentation says I can't use output from the batch (either console / environment variables) in the MSBuild project.
Is there a workaround?
...
I have a C# GUI application that references a Managed C++ project, which requires 7 native C++ DLLs. I'm looking for the cleanest method for copying these 7 DLLs to the final project output.
What works
Add all DLLs to the C# applications, specifying:
Build Action == "Content"
Copy To Output Directory == Copy Always"
This will ...
After days of messing with it, i got my web deployment project to do what i want. It compiles the site, makes a copy, modified the web.config in the copy to point to a different database, zips up the copy and deletes the copy folder leaving only the zip file behind. It then does the same thing for production. But, i feel that my solution...
I get the following error message when trying to run a build file:
error MSB4025: The project file could not be loaded. '?' is an u
nexpected token. The expected token is ''>''.
Here is the build script:
<?xml version="1.0" encoding="utf-8" ?/>
<Project ToolsVersion="3.5" DefaultTarget="Compile"
xmlns="http://schemas.microsoft.com/de...
This is in reference to this question:
http://stackoverflow.com/questions/1522478/unexpected-token-with-msbuild-script
I fixed the errors, but when I run msbuild ScrewTurnWiki.build, it does not compile the solution. The buildartifacts directory is not created either.
Let me rephrase, when I build it, it says Build Succeeded and 0 er...
I have 2 machines that have the Express version of C# on them.
On one, I can build my solution and my build events execute perfectly. On the other, no matter what is put in the event it always fails. The build output has "C:\Documents in not a valid path" or something to that effect, and points to the line in Microsoft.Common.target...
Is there a task in MSBuild to execute svcutil.exe? Or is there a definitive wrapper task somewhere?
...
Hi All,
I'm a complete build system newbie through and through. I've been playing with this for about two weeks on and off now and I just can't crack it, I think I've reached a point where I need a fresh pair of eyes. Ultimately I'm aiming for having a new NCover coverage report (the summary one at least) in my TeamCity build project....
Hi,
I have been using SVN for a little while now. recently on a project I am using TFS. With the builds I like to append/update the build version number on the project output. I do this on the masterpage so that it is clearly visible on the application. Since the application could be running on multiple machines, it is handy informat...
Our build server has been using the following properties for some time
OutputPath=c:\output;
OutputDir=c:\output;
OutDir=c:\output;
ReferencePath=c:\output;
AdditionalLibPaths=c:\output
Which make all output go to a common folder, and also allow resolving references for that same folder. This works great because
it's an optimizati...
I read quit a few Stackoverflow Questions about building mergemodules via commandline but all of them were accepted when either somebody suggested to use devenv for compilation or use Dark to create wix-files from existing msi files.
Considering the following:
VisualStudio isn't installed on the buildserver I have to use.
I am using n...
Suppose you have some source code that comes from the unix world. This source consists of a few files which will create a library and a lot of small .c files (say 20 or so) that are compiled into command-line tools, each with their own main() function, that will use the library.
On unixy systems you can use a makefile to do this easily...
Hello folks.
For instance, I know of Link, DependentUpon and SubType. I am wondering if there are any more nifty metadata children of Compile. I use Link and DependentUpon a lot and really like them.
...
I am using Microsoft.Build.BuildEngine.Engine to build a WPF application. This has been working successfully for class libraries and web applications, but now trying to use it to build a WPF application I am getting the following error:
Target MarkupCompilePass1:
c:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(...