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

Custom task MSBuild

I created a .dll file that parses WSDL me file and saves it to other files. File is called WsdlParser.dll. Input parameters are: the input file , output file ,the element and parent element. I need to build at another program to call this my dll…
Robo M.
  • 23
  • 3
0
votes
1 answer

MSBuild: Build Custom Project Target When Solution Specified

I need to build at the solution level using MSBuild since I have multiple configurations. I have a custom target in my web project that publishes the output. I can specify the web project as the target and it builds fine. But I need to publish the…
Travis Parks
  • 8,435
  • 12
  • 52
  • 85
0
votes
2 answers

MSBuild target with MSBuild task pass in properties from command line

I have a targets file which uses the MSBuild task to compile bunch of .csproj files. This works as expected. Is it possible to take the properties from the commandline?
paulio
  • 393
  • 7
  • 18
0
votes
2 answers

When creating a custom Task how to get access to the MSBuild verbosity?

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: Link
Simon
  • 33,714
  • 21
  • 133
  • 202
0
votes
2 answers

msbuild task error while loading Microsoft.VisualStudio.Coverage.Analysis

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…
Sidd
  • 83
  • 1
  • 9
0
votes
3 answers

MSBuild How to pass same task to multiple projects

I am wanting to run the same task on multiple projects from one build file without having to copy the task to each project file. I am getting all project files in my solution and:
garethb
  • 3,951
  • 6
  • 32
  • 52
0
votes
2 answers

NUnit Extension Pack task stop after failed tests

I am running msbuild nunit task from extension pack that has 1 test which fails:
nerlijma
  • 935
  • 1
  • 9
  • 24
0
votes
1 answer

How to create an sql script file in TFS 2008 at designated directory automatically for developers to add sql script?

I have just revised my question. Actually i wan to create an empty txt/.sql file in TFS 2008 Source Control server at designated directory/folder where developers can add sql script for their part of development. I need this file to be created…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
0
votes
1 answer

Roslyn, MSBuildWorkspace.Create not working with msbuild 14 or 12

I've this strange problem trying to write a piece of code analysis and then running it through an MSBuild Task. When I'm running using MSBuild I'm using a MSBuildWorkspace.Create in order to create a workspace. However, this method only works when…
thekip
  • 3,660
  • 2
  • 21
  • 41
0
votes
0 answers

Getting Publish Details within MVC Razor View

I'm working on an MVC site with a team and I'd like to display the last publish timestamp and the name of the user that last publsihed within a comment inside of the _Layout.cshtml page while we're in development. I'm open to packages or msbuild…
mckennawebdev
  • 547
  • 1
  • 5
  • 17
0
votes
0 answers

MSBUILD injecting a property, resolving source root folder

I'm working with a large number of *.csproj that have had the compile\clean targets replaced with a psake targets. Up until now it's been working by resolving to script(s) in a c:\fixedlocation\scripts folder. I'm moving towards to having all…
jeff
  • 3,269
  • 3
  • 28
  • 45
0
votes
1 answer

MSBuild get %(RecursiveDir) directive from custom task parameter

I'm developing a custom MSBuild task by inheriting from the base Task class. My task calls the Copy task declared in Microsoft.Build.Tasks.dll setting the DestinationFolder property in the process. My custom task has a property called…
Matthew Dresser
  • 11,273
  • 11
  • 76
  • 120
0
votes
1 answer

Transform a delimited string to array or ItemGroup

I'm trying to create a MSBuild target to post-process assemblies through a custom executable (e.g. convert.exe). The target receives a semi-colon ; separated list of assemblies as Input and I would like to batch Exec.
Dennis
  • 20,275
  • 4
  • 64
  • 80
0
votes
1 answer

Copy directory structure from list of files using MSBuild

This is slightly complicated than structure copy, hence a separate question. We have this item group which is a collection of files to be copied.
dushyantp
  • 4,398
  • 7
  • 37
  • 59
0
votes
1 answer

Make publish script runnable only on correct server

I have added a tsql-test to my deployment scripts that make them run only on the server that they are supposed to run on. Now, I would like to make sure that they won't run if the server is not running the same version as it was when the script was…
SAS
  • 3,943
  • 2
  • 27
  • 48