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
2 answers

Is it possible to provide UI selectable options to custom msbuild tasks?

I have built a custom msbuild task that I use to convert 3D models in the format I use in my engine. However there are some optional behaviours that I would like to provide. For example allowing the user to choose whether to compute the tangent…
TheWanderer
  • 244
  • 2
  • 9
0
votes
2 answers

Terminate MSBuild from within a project without error

Is it possible to terminate an MSBuild process for a project (*.csproj) as a normal execution flow? Something like This should not raise an error. It is supposed to be a valid flow for skipping building a project under…
0
votes
1 answer

How to bind a target within MSBuild to a general error

We are using TFS build and we have a couple of custom steps within the configuration (e.g. running NUnit tests in AfterCompile target, deployment steps in AfterDropBuild target etc.). Now I wanted to add the functionality of sending emails on broken…
0
votes
1 answer

How to copy specific files from same location to destination?

I have a MSBuild script to copy specific files from source to destination like given below. I dont want to give *.txt but give file names because I want only these files. Here the directory "E:\Test100\" is repeated for multiple times (I can put it…
Sanketh P B
  • 394
  • 2
  • 16
0
votes
0 answers

Run task in Before Build target

How cat i run my custom task in Before build target without pre-build events in Visual Studio? for example //pass parameters //run Task
Imorian
  • 157
  • 1
  • 11
0
votes
1 answer

Precompile an ASP.NET application - i am getting Errors

When i build my project targeting .NET 4.0 in visual Studio 2010, i get the following Warning but with no any other error or warning, so the projects runs. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning…
StackTrace
  • 9,190
  • 36
  • 114
  • 202
0
votes
0 answers

MSBuild import projects over http

I'm trying to import a common msbuild file to my current msbuild project. The reason I'm doing this is because all the things in the common msbuild file are used in several projects so I don't want to write them over and over again. What I want to…
0
votes
1 answer

Build is picking wrong file name

I am trying to do continuous integration with Team city and trying to update my build. What should do? In this order build is suppose to create 4 folders and msi builds with in the…
62071072SP
  • 1,963
  • 2
  • 19
  • 38
0
votes
1 answer

How can I copy additional files to drop location with MsBuild 2013

I'm part of a large developmentteam with a big project that is built with TFS 2013. We have gotten the build to work with automatic tests and web transformations as well as deployment to correct folders. The last part we need is a way to copy…
Jimmy.Bystrom
  • 297
  • 2
  • 4
  • 15
0
votes
0 answers

How to Exec Command in MSBuild with conditions

How to Exec Command in MSBuild only if This is my project ... ... What I want to do is execute echo depending on what my.exe "finds"/"say", like a if. What is the proper way to do…
Gerald Hughes
  • 5,771
  • 20
  • 73
  • 131
0
votes
2 answers

Cruise Control.net Ms Build Task setting XML output Name

We are running version 1.5.6755.1 of CruiseControl.net. Here is our block that executes a build
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
0
votes
1 answer

Running Grunt Typescript from MSBuild

I have a typescript project set up that is being built with GruntJS using the typescript plugin. I also have a Visual Studio project that I'd like to be able to invoke the build process from. My first attempt at doing this was adding an task…
phosphoer
  • 433
  • 6
  • 16
0
votes
1 answer

How to order folders by name or creation date in MSBuild?

I have ArtifactsDirectory folder, that contains subfolders called 5.1.0.1, 5.1.0.2, ... , 5.1.0.N. Each 5.1.0.X folder contains outputs(dlls, exe files) of another build. Now I want to create a build definition for Installer that will grab the…
AndreyS
  • 365
  • 7
  • 18
0
votes
2 answers

Transforming all configs in folder

The situation is this: I have multiple config files in one folder I have transformation files with the same name in a different folder I want to output the transformed files with the same name to a third folder after the build I can easily solve…
atoth
  • 838
  • 1
  • 9
  • 23
0
votes
1 answer

Set an incoming value to a new value

How do I set an incoming value to a new value in msbuild? Lets say I have this msbuild /t:package /p:revision=2.2 in my msbuild file I want to change the revision to another value in another variable. Let say I have: $(Version) I know want my…
user1540911
  • 355
  • 1
  • 2
  • 12