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
6
votes
3 answers

MSbuild, How to access project property value in Inline Task code?

I have inline Task code written in csharp I wonder if there is anyway to access propect property in inline Task code For ex. I am trying to replace string match with project property value. is it possible?
in His Steps
  • 3,075
  • 6
  • 30
  • 38
6
votes
3 answers

"File has a different computed hash than specified in manifest" error when signing the EXE

My ClickOnce installation fails with an error: File, WindowsFormsProject.exe, has a different computed hash than specified in manifest. I use MSBuild to generate ClickOnce deployment package. The relevant line from the build script:
Alex
  • 636
  • 2
  • 9
  • 19
5
votes
1 answer

Cruise Control .Net exception writing msbuild-results.xml

I have a cruise control server running a build on a VM. All I did was change the source control from Perforce to Git, and the build is now failing. CCNet Config
5
votes
1 answer

The target "_WPPCopyWebApplication" does not exist in the project

I am creating a build script to automate the publishing of our web projects to a testing machine. I have a msbuild script which successfully does this, however when it is running it generates an error for each project in the solution stating that…
Aesir
  • 2,033
  • 1
  • 28
  • 39
5
votes
1 answer

error MSB4018: The "" task failed unexpectedly

i am getting this error with visual studio 2010 and .net framework 4.0. Not able to see any relevant solution for this especially with VS2010. any comments/suggestions pls. error MSB4018: The "" task failed unexpectedly error MSB4018:…
mohit
  • 105
  • 1
  • 8
5
votes
2 answers

Can an MSBuild Item use a Property set by a Target?

I'm trying to achieve the following with MSBuild: my main project (MyProject.csproj) should include a couple Reference items, but the path to one of those References is the value of the SomeProperty property, which is set by a Target. Specifically,…
Rabadash8820
  • 2,328
  • 3
  • 27
  • 49
5
votes
2 answers

DllExportAppDomainIsolatedTask failed unexpectedly on building a DLL

I am trying to build the Dll in C# in Visual Studio. Used the NuGet RGiesecke.DllExport. However for some reason it returns some error when building the Dll. Bellow is the description. Error The "DllExportAppDomainIsolatedTask" task failed…
5
votes
5 answers

Error MSB4061: The "XamlCTask" task could not be instantiated

While trying to compile a Xamarin Forms (2.3.4.247) project on Visual Studio for Mac Community (7.0.1 [build 24]) I keep getting the two following errors after coding some time, any clue on what caused it and how to fix…
Faegy
  • 942
  • 1
  • 12
  • 29
5
votes
1 answer

Using WriteCodeFragment MSBuild Task

I am trying to use the WriteCodeFragment MSBuild task to create an AssemblyVersion attribute. I'm having a problem creating a property group to correctly pass the ITaskItem array required for processing. Can someone help with an example?
5
votes
1 answer

ILMerge.Task Unresolved assembly reference not allowed

I have installed MSBuild.ILMerge.Task into my project using Nuget. When i try to build my project , An error comes up : Error : Unresolved assembly reference not allowed: ICSharpCode.SharpZipLib. I searched everywhere but couldn't found anything…
alix54
  • 444
  • 1
  • 5
  • 13
5
votes
1 answer

Determine if program.exe is available before using it in an Exec Task?

According to Microsoft's Exec Task, it runs the specified program or command by using the specified arguments: Command - Required String parameter. The command(s) to run. These can be system commands, such as attrib, or an executable, such as…
jww
  • 97,681
  • 90
  • 411
  • 885
5
votes
1 answer

How can I temporarily inactivate MSBuild.ILMerge.Task?

I am using the NuGet package MSBuild.ILMerge.Taskin order to combine .NET external dlls to a single executable file. It works like a charm. Now, when I try to edit while Debugging, Visual Studio says: Changes are not allowed if the assembly has not…
Xavier Peña
  • 7,399
  • 9
  • 57
  • 99
5
votes
1 answer

Is there an MSBuild task that will write lines to the *start* of a file?

I'm using a WriteLinesToFile to update a change log file (txt). It appends the text to the end of the file. Ideally, I'd like to be able to write the changes to the start of this file. Is there a simple task (e.g. in the Community or Extension…
dommer
  • 19,610
  • 14
  • 75
  • 137
5
votes
2 answers

MSBuild target, BeforeCompile, triggering whenever project file is loaded

This is a smaller question related to my overall problem. This is what I am trying to accomplish. Ive created a task that modifies my source files. Whenever I compile and build, I want to compile with the modified cs files. Ive attempted to make a…
xadeka
  • 149
  • 1
  • 7
5
votes
2 answers

MSBuild Build Sequence

Looking at this article from MS, I have a question about the SolutionToBuild section.
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269