I want to use MSBuild to grab and create the relevent elements for 2 files. If it was just a single file extension, I would use:
<ItemGroup>
<Compile Include="\Pages\*.cs" />
</ItemGroup>
In a .csproj file for a Silverlight build, each UserControl is set like with it's own <Compile> element and a child <DependentUpon> element:
<...
I have a build.proj, that is a MSBuild file and can be run locally.
All I need from TFS is
Get the sources from TFS Source Control.
Call "MSBuild.exe /t:Deploy".
Update the build status based on the result of MSBuild.
I have tried to make a template combining the DefaultTemplate.xaml and UpgradeTemplate.xaml.
But so far, no luck :...
Is it possible to install both WiX 3.0 and 3.5? If I install 3.5 after installing 3.0, it removes the 3.0 files - and if I attempt to install 3.0 after 3.5, it tells me there is a newer version already installed.
I'm in the process of migrating from VS 2008 to VS 2010, so one version (branch) of my application is is using VS 2008 (exist...
I've built an installer with WIX and have packaged it with the .NET 4.0 framework using the GenerateBootstrapper task. Now .NET 4.0 cannot be installed on XP SP2, but it appears to have no precondition check for this so its installer fails halfway through.
I'd like to add my own check to make sure the OS that the entire package is being...
I have an ItemGroup, and I use its metadata as identifiers in my MSBuild project for batch processing. For example:
<BuildStep
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Name="RunUnitTestsStep-%(TestSuite.Filename)-%(TestSuite.Extension)"
Message=" - Unit T...
My VS.NET 2008 solution is taking longer and longer to compile (ASP.NET 3.5 + ASP.NET MVC 2 + C#) and I am wondering if there is a way to know what project takes the longer to compile and why? I disabled the compilation of a few projects and it helped reduce the build time but I want it faster.
...
Is there a user config file for msbuild, like a ~/.msbuildrc?
(Some of the options, like CPU count and verbosity, it seems silly to set per-project -- they're things that vary by user or computer, not by project.)
...
I am trying to configure CruiseControl .net to build our repository code periodically and run the tests included in the solution. I have configured the retrieving code from the svn server and building part. But I am unable to run tests on it. MSBuild keeps on complaining that.
error MSB4057: The target "Test" does
not exist in the ...
With TFS 2010 build controllers/agents there is the option to set a version control path to custom assemblies that will be available on all build agents. The documentation states that this works for custom workflow activities as well as custom MSBuild tasks (about in the middle of the page):
http://msdn.microsoft.com/en-us/library/ee330...
I have a number of custom Item and Project Templates for Visual Studio 2010.
I have build a VSIX Package that can be used to deploy these extensions to multiple developer's machines.
I am now creating a custom MSBuild Task that will be required for a new Item Template.
In my local project, I can get this to work by putting in a hard-co...
I'm using VS2010 with the Web Deployment Projects to create a release package for my web application. In WDP I have created some build tasks to for example transform the web.config, create some directories and remove some files.
Now I've migrated the web application to ASP.NET 4 and I've been looking at this feature in VS2010 called Pac...
I want to delete some image resources depending on what build I'm releasing using MsDeploy.
I have three builds for different clients which are basicly another theme and a lot of configuration transforms to setup their environments correctly.
I don´t want to include the image resources for client1 when deploying to client2.
Been using ...
I have created a msbuild task that minifies and combines javascript and css files that is triggered when my visual studio project is built.
This task adds the minified and combined files to the file system.
However I would like that they automatically be added into the visual studio project. Is this possible and if so, how can I achiev...
Need some assistance with my Visual Studio projects and in particular with release process. To release my web application, I use a web deployment project to deploy my web application.
I have split my connection strings and app settings into a seperate config files, with a config file for each environment I might be creating the msi for ...
As part of my build process in MSBuild 4.0, I end up with the following directory structure:
\OutDir
\ProjectA
\File1.dll
\File2.dll
\File3.exe
\ProjectB
\Subfolder1
File4.html
\File5.dll
\File6.dll
\File7.exe
\ProjectC
\File8.dll
\File9.exe
I want to ...
This question is more of theoretical nature than of practical use.
I know that there are several programs to find unused code, but this question is a little bit different then that.
Would it be possible to find unused code and resources during or after the build and remove it? I've several 'generic' libraries which are shared acros...
I'm using MSBuild with the community tasks under TeamCity.
Just like Garrett in this thread, I update my AssemblyInfo.cs files, and then commit them.
In the solution at hand, I've got five AssemblyInfo.cs files, but only four get committed using this MSBuild code:
<Target Name="VersionCommit" DependsOnTargets="Version">
<ItemGroup...
As part of one of my projects, there are "BeforeBuild" tasks that ultimately generate some files. In particular, it compiles a small static class (included as "do not compile" in the project) into it's own executable and then executes it, passing in an external input file outputting a new generated class to be included in the project.
...
Are there good patterns for mapping solution configurations to environments and using MsDeploy for packaging per environment?
Shortest version: Grab this file, and try to change the .msbuild file so that a package is created.
Details
I have a solution with a large number of libraries and an ASP.NET MVC application. I drive the build...
How do I force my TFS 2010 Build to build all projects in the solution to be built with Debug or Release Mode. I'm looking to pass in an Argument into the workflow. Do I need to use an MSBuild argument?
Seems like a very common thing to do, but I'm not able to find a straight-forward way of getting it done.
...