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

Deploy build via ftp MsBuild task

I am trying to automate the ftp upload of a build after local publihsing and file transformation. I've had a look at the http://www.msbuildextensionpack.com/help/4.0.7.0/Index.html ftp msbuild task but it only appears to upload files if they are 1…
johnstaveley
  • 1,400
  • 1
  • 22
  • 46
0
votes
1 answer

Encoding of copied file in MsBuild

I currently have a set of files which will get copied during build using MsBuild's copy task. The files were initially set to ANSI format. However the copied files turned into UTF-8 format. This caused some major problems with my build process,…
BeraCim
  • 2,317
  • 8
  • 49
  • 78
0
votes
1 answer

MSBuild with target. How can I make this work?

I have the following code in a msbuild file.
user1540911
  • 355
  • 1
  • 2
  • 12
0
votes
1 answer

MSBuid Error MSB4095: The item metadata %(RootDir) is being referenced without an item name

I migrated my C++ code from VC 6 to VS 2010. I setup the build parameters on each project but when I try to build them it gives me error: Error 101 error MSB4095: The item metadata %(RootDir) is being referenced without an item name. Specify the…
sk2013
  • 23
  • 1
  • 3
  • 9
0
votes
1 answer

Build Vs2012 Sln through MSBuild comment prompt . with nuget reference

We are planning to build the solution through cmd using msbuild. The project solution (.sln) have the nuget reference. We are getting the error while building the project sln. like nuget error. Restoring NuGet packages... To prevent NuGet from…
0
votes
1 answer

MSBuild - MsBuildExtensionPack starting windows service with delay

I am using MSBuild task to start a windows service. I am using following code: MSBuild.ExtensionPack.Computer.WindowsService TaskAction="Start" ServiceName="AppServices" ContinueOnError='false'/> If I start the service I am getting following…
0
votes
1 answer

Different msbuild behavior?

While creating deployment project for my solution strange behavior have been noticed. I'm using webdeploy for deployment of my web apps. And when putting this
Andrej
  • 41
  • 3
0
votes
1 answer

Trouble with MSBuild Copy

Hi I have the following target.
mike james
  • 8,840
  • 3
  • 18
  • 21
0
votes
2 answers

How can I access app.config on the BeforeBuild event from a custom MSBuild task?

I've written a custom MSBuild task to generate model code from MSSQL stored procedures. I want to use the same configuration for my task to connect to the database as the application does. I've created a config section that looks like this
Chris McCall
  • 10,317
  • 8
  • 49
  • 80
0
votes
2 answers

Msbuild task to find specific filetype

How can we find a specific file type under a path? I have checked MSBuild Task Reference but couldn't figure out. Looking for something as:
dushyantp
  • 4,398
  • 7
  • 37
  • 59
0
votes
1 answer

unable to set configuration and platform using msbuild webconfig transformation

I am working on msuild and trying to implement web.config transformation via msbuild scripts.i have added extra web.staging.config and web.production.config.when i am trying to run target using command line like msbuild tweb.xml /t:tw…
user2459106
  • 61
  • 1
  • 1
  • 8
0
votes
1 answer

MSBuild: How to disable / turn off batching?

I have an item group an MSBuild project that represents files to be copied. The Copy Task, and another custom task I wrote seems to want to batch on the Destination item meta data. I can't help but wonder that this would be slow, and I'm trying to…
C.J.
  • 15,637
  • 9
  • 61
  • 77
0
votes
2 answers

Custom MSBuild Task not reading from App.config [C#]

I wrote a custom build task that reads values form the appsettings in it's App.config file. When I compile my task as an executable and run it, the task works perfectly. The correct values are read from the config file. However when I compile it as…
Dan
  • 280
  • 3
  • 9
0
votes
1 answer

MSBuild task to make use of Teamcity credentails

I am using MSBuild task to install a windows service. Everything works fine but the newly installed service runs under local system account. Is there anyway to tell MSBuild to install the service under the same account as TeamCity (TeamCity is…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
1 answer

It is possible to do this kind of conversion with msbuild

It is possible to do this kind of conversion with msbuild? Transforming metadata into items? This: 1 1 2 2