In my TFSBuild.proj I have the following Exec commands:
<Target Name="AfterCompile">
<Exec Command="@echo Program.cs(12,20): warning CS1002: ; missing"/>
<Exec Command="@echo Program.cs(13,20): Warning CS1003: ;; missing"/>
<Exec Command="@echo Program.cs(14,20): error CS1004: ;;; missing"/>
</Target>
The TFS build fails, ...
We would like to use msbuild to clear the connectionStrings section from a web.config file.
What is the easiest way to do that?
We have previously used XmlMassUpdate to replace values (see also this question: http://stackoverflow.com/questions/1294438/xmlmassupdate-replace-value-node), but have not found a way to remove it entirely.
M...
I have a rules file for workflow within my solution and its properties are
Build Action = Embedded Resource,
Copy to Output Directory = Copy always
I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. I...
I use VS 2008 to develop and I use CCNet to build, test and deploy our applications to a staging server. I would like to be able to remove the debug="true" setting from web.config as part of the deployment process.
I know I could just set <deployment retail="true"/> in machine.config, but I don't always have that much access the servers...
I have a 100+ source file C++ project in visual studio 2005. A lot of those files have custom build steps. There is something that is not updated when I build. Every time I hit the start debug button it prompts me with a "This project is out of date:" dialog and asks if I want to build it. I choose yes, but nothing compiles. I suppo...
I have been tasked with automating our build process with msbuild. We have about twenty Visual C++ projects and twenty C# projects making it a pain to hand edit all the version strings. Our version numbers are meat-generated at build time, so we need to pass the full version string as a property on the command line. My initial impleme...
I can't seem to compile the silverlight 3 project from the command line. It comes back with
MSBUILD : error : Test page creation failed. Unknown error "-1".
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3329,9): error
MSB3491: Could not write lines to file "obj\Debug\HeadsetClient.csproj.FileLis
tAbsolute.t...
Hi all,
I would like to add content to my web application depending on the configuration. I have declared the target in the initials target and the target looks like this :
<Target Name="ApplicationNameDefinition" Outputs="$(MashupName)">
<MSBuild.ExtensionPack.Framework.TextString TaskAction="StartsWith" String1="$(ConfigurationName...
I'm using MSBuild to build Delphi 2010 projects. It works fine. The only problem I have is that it creates 2 empty directories (Bpl and Dcp) in drive's root directory.
Is there any way to prevent MSBuild from creating these directories?
...
My buildbot has been running for 3 years using devenv.com to compile the projects on Windows.
Now devenv.com has troubles to build for 64 bits versions: passing the configuration as "Debug|x64" generates command line errors because of the pipe character. Escaping and enclosing between quotes result into other errors, some because of the...
I have an odd situation. I have a suite of unit tests that pass on my dev machine. They pass on the build machine if run from visual studio. But 5 of them reliably fail during the automated build. There is nothing noteworthy about the ones that fail that I can see (and I've stared at them a long time). Anyone seen anything like this? ...
We're in the process of evaluating MSBuild and Nant for deploys. We may roll our own tool. One thing that a different business unit -- let's call it DeptA -- would really like to have (as in it better have it) is the ability for someone in DeptA to read the script and see what it will do. Currently we do this with .bat files. We hates t...
How can I stop or continue a build, based on user input, using MSBuild?
I currently have this in my project file:
<Target Name="Afterbuild">
<MSBuild.ExtensionPack.UI.Dialog TaskAction="Confirm" Title="Production Deployment" Button1Text="Continue" Button2Text="Cancel" Text="WARNING !!! You are about to overwrite code on the produti...
I need help with a very frustrating problem with Visual Studio 2008.
I have a project in C# which calls, during the pre-compilation phase, a batch file which copies some dlls into a sub-directory of the project itself. It often happens that Visual Studio reports an error caused by the execution of the batch file: it says that the executi...
My project's manager assigned me to maintain the builds, but it's my first contact with MSBuild, so things are being somewhat hard, as most first contacts. :)
I've been struggling to get MSBuild/Team Build to copy some files to my project's "bin" folder, but had no sucess until now.
The files are kept on a folder that we use as a reposit...
Question
What's the right way to build a complex fips link into the Visual Studio vcproj projects while continuing to allow developers to arrange libraries via the properties GUI?
Situation
I'm using VS 2008 and have a bunch of projects that use openssl statically linked. Thus far the link has been simple, but now I'm switching to a ...
I have set up a build with Teamcity. See my build file below.
When the build is succesful and the tests pass, the build process just runs again and again indefinitely in a loop.
When the build fails, this does not happen.
I have tried to first set 60 second pause on buildtriggering, and finally disabled build triggering altogether. N...
I am upgrading lots of C# projects from vs.net 2008 to vs.net 2010 rc. I notice that the upgrade creates a BootstrapperPackage section inside the *.csproj file (include Microsoft.NET.Framework.3.5 and 3.5sp1). I wonder what the BootstrapperPackage does and do I need them?
...
Hello,
Recently I needed to do some more advanced tweaking in our MSBuild/VS2008-based build system. My background is mostly UNIX systems, so I lacked knowledge on Windows-specific things; f.e. one of the surprises for me were that there are several different runtimes, which seem to be incompatible when linking two native projects compi...
Our Continuous Integration process appears to be executing programs that are in contention for for files. During the build, certain pdb's aren't able to be copied because they are in use by another process.
Question: Ideally it would be faster to have the concurrent building of each project executing however I was wondering if this w...