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

Accessing values from Publish profile

Is there a way to access the vaules in the Publish Profile in the proj-file, when publishing from VS? I get no value when using "$(SqlCmdVar__3)". < Message Text="$(SqlCmdVar__3)" Importance="high"/ > I just get the default values when using…
SAS
  • 3,943
  • 2
  • 27
  • 48
0
votes
1 answer

MSBuild Batch File - Custom Task Parameter

How can I access custom parameter in my MSBuild? For example, this is a call: msbuild.exe /t:CustomTask /p:CustomParameterName="Some Value Here" And I want to access in task like this:
ShP
  • 1,143
  • 1
  • 12
  • 41
0
votes
2 answers

How can I create a cycle of compiling my project with incrementing of some option?

I wrote a C# template for creating of the .Net extensions for AutoCAD. Before, for each AutoCAD version it is was necessary to point the individual referenses set, the output directory, the target .Net Framework Platform, etc. Exist many versions of…
0
votes
1 answer

MSBuild afterbuild step to copy code into a temp folder

I'm trying to place my compiled web application into a temporary directory after it has been built. I have the following but it doesn't seem to work. It drops and create directors but the msbuild task doesn't seem to copy the compile output into the…
Mantisimo
  • 4,203
  • 5
  • 37
  • 55
0
votes
1 answer

NullReferenceException at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies)

I updated my Visual Studio 2010 to the version 10.0.30319.1 RTM Rel and start getting the following exception during the build: System.NullReferenceException: Object reference not set to an instance of an object. at…
0
votes
2 answers

MSBUILD script should zip all assemblies in solution after build, but only gets some DLLs (under local and TFS build)

I want to set up my VS solution so at the end of the build, the installable files are zipped up for easy distribution. This should work under either a local build, or a TFS build. This is set up as follows: There is one project (called…
Laurence
  • 980
  • 12
  • 31
0
votes
1 answer

Get an error when trying to set the build version with the AssemblyInfo Task

I've added the AssemblyInfo Task reference to my C# project file (VS2008 .NET 3.5), but when I build I get the following error The "AssemblyInfo" task failed unexpectedly. System.ArgumentException: version Parameter name: The specified…
Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165
0
votes
1 answer

Automate Build script from Batch to MSBUILD/NANT

I am trying to automate a build process for a C# (vs2008) solution. The build script is written in a Batch script which I want to change. We use Clearcase as the CM system. I have searched some tools such as MSBUILD, NANT. Any suggestions which…
SteveScm
  • 545
  • 1
  • 7
  • 15
0
votes
1 answer

MSBuild AfterBuild Step

I have added the following code to a VisualC++ 2010 .vcxproj file just inside the first tag:
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
0
votes
1 answer

Get custom MSBuild task's output parameter from TFS build workflow

I have a custom MSBuild task that implements an output property. How can I retrieve the value of that property on the build server in build workflow activities that occur after the MSBuild activity has completed? Thanks, James
James
  • 389
  • 2
  • 17
0
votes
0 answers

Build project in MS Build Custom task fails

I have MS Build script for building my project. Building logic is not trivial, so I implement custom MS Build task, which runed by build script. In task i use such code project.Build(); but, when this code called, I saw exception, with…
IComparable
  • 71
  • 1
  • 1
  • 10
0
votes
1 answer

How to pass a property value from one proj to another proj file that follows

I have a MSBuild proj file like below: In PreBuild.proj, I create a dynamic property with UsingTask:
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

How to specify the solution file location for versioning assembly info files in MSBUILD

I have been fiddling with this for a day but no luck. The assembly versioning with MSBUILD used to work before, but recently we have moved the solution files to a separate folder within the Root of the project, and since then the versioning has not…
Spock
  • 7,009
  • 1
  • 41
  • 60
0
votes
1 answer

MSBuild taskkill error

I'm using MSBuild Visual Studio 2013 Express, and try to kill the vstest.console.exe process, if it is not initialized is giving error. How do I stop the command and not have an error when the process is not initialized. Code:
mtsys
  • 249
  • 1
  • 4
  • 15
0
votes
1 answer

How to reference an Azure SDK tool in the build file?

I need to execute the following Windows Azure SDK tool using the Exec task: C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.3\bin\cspack.exe What is the best way to reference this path in my .build file? A direct reference, like below, it…
Dave New
  • 38,496
  • 59
  • 215
  • 394