We have a large codebase in VS 2008. We have developers that need to rely on the VS IDE for day-to-day development. But we also have complicated dependencies and deployment steps and require an automated nightly build.
I am familiar with NAnt. It is perfect for our out-of-IDE build and deployment steps. Unfortunately, I haven't seen a n...
This one will need a bit of explanation...
I want to set up IIS automagically so our Integration tests (using Watin) can run on any environment. To that end I want to create a Setup and Teardown that will create and destroy a virtual directory respectively.
The solution I thought of was to use the MSBuild Community Tasks to automate II...
I would like explorer opened up on a certain folder, after the deployment has happened, and I'm using the following to attemp it:
<Target Name="AfterBuild">
<Exec Command="..."></Exec>
</Target>
However, a simple "explorer \somewhere" causes the build process to block on explorer, and it wont finish until you close explorer. Prefixi...
Since I started using MSBuild for our projects, I've created several .proj scripts that are shared by several projects in our repository. All these shared scripts reside in a single directory.
So far I've been referring to the shared scripts by using a relative path, something like this:
<MSBuild Projects="..\..\common\build\MyScriptA....
Is there a way to get the Name of the currently running Target in MSBuild?
...
How can one read the AssemblyFileVersion, or its components AssemblyFileMajorVersion, AssemblyFileMinorVersion, AssemblyFileBuildNumber, AssemblyFileRevision, within the .csproj, following compilation?
I have tried the following which pulls the information from the built assembly:
<Target Name="AfterCompile">
<GetAssemblyIdentity A...
Sometimes after some refactoring occurs, and we produce a successful build, some legacy code using scriptlets fails to compile on runtime. I would like it if there was a way that I can verify that scriptlets will compile using msbuild.
Is that what aspnet_compiler is for?
Thanks
...
How would you got about setting up a project that doesn't really build, but just runs some commands on the files you are working with.
For example, lets say I wanted to setup a project for creating Windows Vista and Windows 7 gadgets. A gadget is nothing more than some html, images, javascript, xml, css, put into a .zip file and then r...
I work on a large ASP.NET application. Occasionally, I'll make some changes to a DLL in the bin/ directory, or to some codebehind file, etc. These will cause ASP.NET to recompile some of the files, copy to shadow directories, etc. All in, you can sometimes see this process take minutes or longer. I usually just watch task manager and...
I am currently using Msbuild and Msbuild.community.tasks using XMLUpdate and XMLMassUpdate to update various sections of my Web.Config one thing has me stumped though.
If I have:
<configuration>
<nlog throwExceptions="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
I am writing a MSBuild task that adds some code generation to a standard C# project (.csproj). The task needs to access types in assemblies referenced by that project.
This is simple for assembly references (get all items in <Reference>), but it gets harder for references to other projects (<ProjectReference>)
Does MSBuild provide a wa...
I'm trying to use VS08SP1's default project system to invoke a C# compile in explicit x64 mode (as distinct from Any Cpu). When I explicitly mark a module as x64, I get a:
warning CS1607: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor
One way of removing that is with a /nowarn:1607. Based on my...
I'm new to CruiseControl.net and am attempting to setup it up for a project I'm working on. The project is kept under subversion, but the whole project is made up of the core project, and several components, each one a separate subversion project, each with a trunk, possible branches and tags. I need to setup cruisecontrol.net so that a ...
Using Team Foundation Build, I'm invoking the xunit.net xunit task, which is /platform:AnyCpu, but my TeamBuild invocation of the TFSBuild.proj is vanilla.
I have a number of tests that are x64 specific (`/platform:x64'), which choke with an ImageFormatException. I have also a test asembly that's marked x86 so it can't be all or nothing...
I am trying to set the compiler options attribute from a value to blank using the msbuild task of xmlmassupdate. Unfortunately it is only changing the c# (the first one) and not the second one. Does anyone know the syntax for xmlmassupdate to do this?
...
Hi!
I'm currently building my first msbuild release task. What are the essential tasks that "should" be performed on every build?
Thinking of settings like optimize code, define several constants etc.
What do you do in every release build?
Thanks
...
I've converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt's tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly.
Here is what I have for .NET 1.1:
<solution solutionfile="MyApp.sln"
configuration="ServerDebug" outputdir="MyApp\bin\ServerDebug">
<assemblyfold...
I have a C# project say MyProject.csproj located at "C:\Projects\MyProject\". I also have files that I want copied into the output directory of this project. But, the files are at the location "C:\MyContentFiles\", i.e. they are NOT within the project cone. This directory has sub-directories as well. The contents of the directory is not ...
To increase the automated part of our build/release process, I would like to integrate some custom tasks in our visual studio projects. What's the best way to organize such solutions? The main problem is: If I add the project implementing the tasks to the solution, the tasks are cached by the visual studio instance. So a rebuild does not...
Hi all
I have a Silverlight 3 project which compiles and runs fine when compiled on a development machine. On our TFS environment with Silverlight 3 and the Silverlight 3 SDK installed, I get the following error:
C:\Users\tfsservice\AppData\Local\Temp\\Release\Sources\Source\Trunk\Themes\
UserDatesStyles.xaml(63,47,63,47):
erro...