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

MSBuild Copy task ignores (%RecursiveDir)

I have subdirectories in build output but files are copied to the root destination directory without applying %RecursiveDir. . .\ProjName\
Vlad
  • 3,001
  • 1
  • 22
  • 52
0
votes
1 answer

How can I filter which files are included in a workspace using MSBuild?

It seems that MsBuild creates a folder called, "BuildType" on the build server and this folder is where the .proj file is copied. In source control I have several files that are in the same folder as the build project file. I have a workspace mapped…
Nick
  • 19,198
  • 51
  • 185
  • 312
0
votes
1 answer

Using Microsoft.Build.Tasks in msbuild + xbuild

I have the following custom inline task that works in a windows build environment:
mrahhal
  • 3,322
  • 1
  • 22
  • 41
0
votes
2 answers

MSBuild - Run an alternative task if a task fails

I have an AfterBuild task which signs the dll using signtool.exe via the NuGet package MSBuild.ExtensionPack
Shevek
  • 3,869
  • 5
  • 43
  • 63
0
votes
1 answer

MSBuild: ProjectReference Output Path in Wix Projects

I'm trying to get the Output folder of referenced project in my Wix Visual Studio project, using MsBuild task. But it is failing with following error: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(724,5): …
Farrukh Waheed
  • 2,163
  • 2
  • 29
  • 59
0
votes
0 answers

MSBuild task to clone Git repository

I have recently moved my SVN repositories to Git. One of the project using MSBuild to checkout SVN repository during the build process. Now I need to clone Git repository instead of SVN during the build process. I came cross the library…
Chinthaka
  • 966
  • 1
  • 13
  • 42
0
votes
2 answers

AngularJS / Web API Javascript files versioning

What is the best practice for versioning javascript files (add version number as query string for each js file in my index.html page) Please note I am using ASP.NET Web APIs and angularjs. Is it possible to do that through msbuild as am using it?…
Dev
  • 1,861
  • 2
  • 14
  • 20
0
votes
2 answers

.NET Core: Is there an equivalent of MSBuild tasks in the new project.json format?

I'm a big fan of MSBuild tasks like GitVersionTask, xUnit.MSBuild or OctoPack and use them to version, test and package my assemblies during build time. Here's my question: Is there an alternative or equivalent to MSBuild tasks in the new .NET Core…
0
votes
0 answers

MSBuild (Cruise Control) => run PowerShell script with administrator privileges

I am using Cruise Control to deploy some apps to a server. After each deploy I want to run a PowerShell that performs some actions that needs admin privileges. I don´t manage to get that working. I am using the following code:
X.Otano
  • 2,079
  • 1
  • 22
  • 40
0
votes
1 answer

Accessing project properties from an external msbuild targets file

I have a common compile.targets file that is used to build many different solutions. In that file I would like to check if any of the contained projects are using TypeScript, and if they are, verify that certain properties are set in those projects…
Sally Richter
  • 271
  • 2
  • 9
0
votes
1 answer

How to use MSBuild proj files for packaging the bits in Visual Studio Team Foundation Server 2015 using Visual studio Build definition

I am trying to build the project using Visual studio build, the build is happening fine, but now I want to package the bits i.e (package and configuration files) for that I am using a MSBuild proj files but how to give it as input to VS build in…
0
votes
2 answers

Using MSBuild task for ftp a directory in TFS 2010

Is there any tutorial to show how can I use MSBuild tasks like FtpUploadDirectoryContent to copy file/directory to a remote host using FTP in Team Build 2010? I never used a MSBuild task in TFS 2010.
Afshar Mohebi
  • 10,479
  • 17
  • 82
  • 126
0
votes
1 answer

need msbuild task to combine app.config files

Does anyone know how to combine app.config files into one app.exe.config file?
Jacko
  • 12,665
  • 18
  • 75
  • 126
0
votes
1 answer

MSBuild, add more than one property in a build.msbuild file

Please see the configuration below:
0
votes
1 answer

MSBuild: How to not delete EXE files post-clean?

I'm working on a Visual C++ project where I want to distribute the binaries for the app as a tarball/zip. Unfortunately, when I build my app and go to the output directory, I see all this crud next to the executable- an IOBJ file, an IPDB file, and…
James Ko
  • 32,215
  • 30
  • 128
  • 239