Questions tagged [msbuild-task]

MSBuild tasks give the MSBuild platform the ability to execute any number of actions during the build process. A task is a unit of executable code used by MSBuild to perform atomic build operations.

MSBuild tasks give the MSBuild platform the ability to execute any number of actions during the build process. A task is a unit of executable code used by MSBuild to perform atomic build operations.

741 questions
0
votes
1 answer

MSBuild errorMSB4126

I'm working on building scripts for Cruise control and within my ccnet.config file I have the following msbuild task defined: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
mW00t
  • 199
  • 2
  • 9
0
votes
2 answers

Sequencing project/solution build and cmd file executing in custom MSBuild file

I need to tie together a bunch of steps which include building solutions, projects and running .cmd files using a custom MSBuild file. My first pass at this is below:
0
votes
1 answer

How do I get $(OutDir) programmatically?

I'm writing a custom build task and and would like to access the value of this property programmatically. It is possible? I've looked at all of the members of the Task class and didn't see anything that looked like it would allow me to get the…
digita1-anal0g
  • 501
  • 7
  • 19
0
votes
1 answer

RegEX - Replace first occurrence of text only

I'm trying to replace only the FIRST occurrence of some text, firstly from within an online tool such as http://regexpal.com/ and then see if this works in an MSBUILD task. I can do what I want in .net like so: StringBuilder sb = new…
Fetchez la vache
  • 4,940
  • 4
  • 36
  • 55
0
votes
1 answer

How to copy files with MSBuild to the same folder but with different extensions?

Let's say I have an ItemGroup defined as follows: Defined a…
lixonn
  • 1,033
  • 1
  • 12
  • 28
0
votes
0 answers

TFS mapping root path

I'm having the next problem: I am trying to invoke a custom msbuild task from a .csproj file and I need to set a parameter (something like $(ProjectDir) ) indicating the TFS path that the project has mapped. I don't know if it's possible or not; I…
Silvestre
  • 804
  • 11
  • 25
0
votes
1 answer

Dynamics CRM - Stamp out new Org, Build / Deploy Plugins all from MSBUILD - Issues

I'm getting a run time exception in my deployed, exported, and then imported to another box... CRM Solution. The Exception is: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly…
Howard Hoffman
  • 897
  • 1
  • 9
  • 22
0
votes
2 answers

Why SVNVersion.exe is returning Unversioned Directory

I am trying to mark my make project build with SVN revision number. I am using MsBuildTask for updating the AssemblyVersionFile details. I am using the following BuildScript to get the info , but this is returning -1 as SVNVersion.exe is returning…
Simsons
  • 12,295
  • 42
  • 153
  • 269
0
votes
1 answer

Separate projects for Microsoft.Build.Utilities, Microsoft.Build.Utilities.v3.5, Microsoft.Build.Utilities.v4.0

I created a custom build task DLL that References Microsoft.Build.Utilities.dll Since the file name is different in each version, do I need to create separate project files to target different MSBuild versions? 2.0, 3.5, 4.0 / 4.5
linquize
  • 19,828
  • 10
  • 59
  • 83
0
votes
1 answer

Attach VS2010 Debugger to GTest running from MSBuild

I Compile my GTests using my own configuration: Debug Win32 I Run my GTests using a custom made Target
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
1 answer

Custom MSBuild task in DBProj

I've created a custom MSBuild task for our database project. This tasks uses XLSX file to generate reference data insert scripts that get merged into the post deployment script. I tested this with a test MSBuild proj and it works well. Now when I…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
0
votes
0 answers

Msbuild task with variables

I want the $(fooAssemblyInfo.Version) to work in my BuildRepositoryZip task but it aint. Why? Do I have to move out the ItemName or something out of Target assemblyversion and in that case how is that done?
user1423277
  • 109
  • 2
  • 13
0
votes
2 answers

Msbuild - build with output in diffrent folders

I have right now this in a script and want to have it in a msbuild instead. msbuild /t:Build;PipelinePreDeployCopyAllFilesToOneFolder XXXXX\XXXX.XXX.xxx\XXXXX.XXXX.XXXXX1.csproj /p:Configuration="Release";_PackageTempDir=....\Deploy\XXXX1 msbuild…
user1540911
  • 355
  • 1
  • 2
  • 12
0
votes
1 answer

Using msbuild to publish my sln file

My requirement is as below Execute MSBuild on a sln file configured to publish as a website, and then copy the precompiled website files to a webserver ( am using cc.net ) When I try the following cmd on msbuild, msbuild abc.sln /t:publish…
daw
0
votes
1 answer

Custom action after ClickOnce deployment / publishing

How can I run custom script which will upload ClickOnce deployment files to a web-server (in my case Windows Azure Blog Storage) right after publishing? Is it possible to modify MSBuild file in some way so it would run custom script right after…
Grief Coder
  • 6,508
  • 9
  • 38
  • 51