I'm trying to add an Import task to a .csproj file programmatically, but I don't want to use the Microsoft.Build.BuildEngine objects to do this because VS will then pop up warnings about the project file being modified from outside of Visual Studio.
I've seen a few pages [1] [2] suggesting that the IVsBuildPropertyStorage interface will...
I'm getting the following error:
error CS1704: An assembly with the same simple name 'Interop.xxx.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side.
Everything I've seen says that I am referencing two assemblies with the same nam...
Hey all,
I have a project that has a post-build event that xcopies a dll to a certain directory:
xcopy "$(TargetDir)$(TargetName).dll" "$(SolutionDir)..\UdpLocationService\bin\Plugins\" /d /y
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\UdpLocationService\bin\Plugins\" /d /y
However, I have CruiseControl.NET set up as a bui...
I've written a custom task for analyzing code coverage results. While building the entire solution, I get the following error.
error MSB4018: System.IO.FileNotFoundException: Could not load file or
assembly 'Microsoft.VisualStudio.Coverage.Analysis, Version=9.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its depen...
Hi,
I have a weird issue. My unit test passes in the IDE but fails in the command line (usually I'd expect it the other way around).
I'm using Visual Studio Team System 2008, and .net 3.5.
I have a 'soft' dependency in my project on NHibernate (NHibernate.ByteCode.Castle.dll) and on Castle (Castle.DynamicProxy2.dll).
I've setup the t...
While publishing files from command line msbuild /target:publish I have following issue - the generated manifest file set's for used dll dependencyType='prerequisite'. I would like force msbuild to use dependancyType='install'.
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="mydlln...
Hi all,
I am trying to accomplish nightly builds and in that i need to automatically increment build number. We have a custom xml file which is already being used by installer and update installer to properly update target system. Before this Nightly Builds, we used to update this file manually and versions of the assembly were manually...
After upgrading to VS 2010 MSBUILD /p:RunCodeAnalysis=true does not work as expected
msbuild solution.sln /p:RunCodeAnalysis=true
To get faster builds we removed the CODE_ANALYSIS constant for the DEBUG build. But that means thet when running the above msbuild command, it defauls to all rules, instead of using the ruleset we specified...
I find that I am always tuning and tweaking our CI setup as we add new projects. While there is NO question that the benefits are awesome for existing code that seldom changes, new projects or volitile ones seem to require more work as I have to configure each project to be "intergrated" as well as maintain an ever-growing CCNET.config ...
My project, which used to build fine with WiX 3.0, now fails with
heat.exe : error HEAT5301: Invalid project output group: Binaries3bSources3bSatellites%3bDocuments.
I found this ProjectOutputGroup in the wix.targets file but it looks like this:
<CreateItem
Include="@(_MSBuildProjectReferenceExistent)"
Condition=" '%(_MSBui...
I use some task that works with files (Copy for example), but I want to exclude all files that are empty (0 bytes length). Is there a syntax to do this?
...
Where do I start , I need to set up a developement environment using msbuild and continuious integration, NUnit etc. I am quite new to this kind of thing as it is normally already set up in most environments ive worked in. I am quite short of time as well and dont have have the time to read huge volumes in order to get an understanding (...
I am trying to change the connectionString in my web.config using MSBUILD on a Teamcity server. Previously I have use the attribute in a target that called this:
<PropertyGroup>
<UpdateWebConfigCode>
<![CDATA[
public static void ScriptMain()
{
XmlDocument wcXml = new XmlDocument();
wcXml.Load(@"TCM.MVC.UI\Web.config");
X...
I have a TFSBuild.proj which I want to edit slightly at the end - I want to make a bunch of directories and dump a few things in them. The problem I'm having is that the straightforward method dumps the new folder into the specified drop folder for all builds rather than the folder created for the current build.
For example I had someth...
Hi,
I have the following scenario. We use stored procedures to access the database and we use LiNQ 2 SQL to generate the classes or namely we use Unplugged LINQ to SQL Generator for this. It has been run as a custom tool but diffing the generated classes is a big pain in the neck. We would like to auto generate the classes but exclude i...
I have written a rake task which builds an asp.net application using Albacore:
msbuild :build do |msb|
puts "Running local build"
msb.properties :configuration => :Release, :outdir => File.dirname(__FILE__) + "/output/"
msb.targets :Build
msb.solution = 'App.sln'
msb.verbosity = 'quiet'
end
Running this locally wo...
I'm able to get the data.coverage file when the solution is built through visual studio. But the file is not created while running the same on the build machine.
I've enabled code coverage in the LocalTestRun.testrunconfig file. Do I have to do anything else to enable code coverage on the build machine?
...
I have a nant script calling msbuild on my Team City server. I have Team City check out source from TFS into a directory called C:\Source In my solution I have one website that is dependent on the two class library projects in the same solution.
The idea is that the msbuild will be done in that source directory and then msdeploy will c...
I'm trying to "fix" a build on our TF Server that drops everything into the drop folder in one big flat drop (rather than in seperate project dumps like a local build would do), and I'm getting a little frustrated - I'm going to be honest and say this is the first time I've ever worked with MSBuild and this has kind of been droppped on m...
In the context of creating a custom Microsoft.Build.Utilities.Task how do I get access to the MSBuild verbosity?
Microsoft.Build.Utilities.Task: http://msdn.microsoft.com/en-us/library/microsoft.build.utilities.task.aspx
MSBuild verbosity: http://blogs.msdn.com/b/saraford/archive/2008/10/07/did-you-know-you-can-configure-the-msbuild-ve...