Questions tagged [msbuild-4.0]

Third version of the MSBuild build tool (after 2.0 and 3.5), released as part of the .Net Framework 4.0. It is used by default by Microsoft Visual Studio 2010.

Third version of the MSBuild build tool adds support for property functions, new build extension mechanism, inline tasks, project multitargetting and a new API model.

315 questions
0
votes
1 answer

TFS build definition variable access for powershell script

I checked around, but nothing is what I need. I am trying to convert my TFS 2013 build definitions from using custom actions to using powershell. So far, I have successful, but not I am trying to run an installshield build passing the iscmd build…
Devin
  • 11
  • 4
0
votes
1 answer

Building a VS2010 solution from TFS2008

I have a TFS 2008 Build Agent that has been used to build .Net 3.5 applications. I now have a .Net 4.0 app which i want to compile on the same build agent. I have ensured that MSBuild 4.0 is installed on there and all the required componentry is…
slugster
  • 49,403
  • 14
  • 95
  • 145
0
votes
1 answer

How can I transform MsBuild ItemGroup into a PropertyGroup?

I have an ItemGroup as: I want to be able to have a property group which has the concatenated result of the above dlls producing (excluding the double quotes): "-x!One.dll…
MaYaN
  • 6,683
  • 12
  • 57
  • 109
0
votes
1 answer

MSBuild RecursiveDir is empty

I'm trying to make a custom MSBuild script to build all solutions in our repository: ..\
moggizx
  • 476
  • 1
  • 5
  • 19
0
votes
1 answer

2 tasks inside a msbuild loop

I'm trying to achieve something like this: ... // foreach project {
Alphapage
  • 901
  • 1
  • 6
  • 29
0
votes
1 answer

Check if Targets exists with MSBuild task

Here is my code: I need to check if MyCustomTarget exists in outs.proj before executing. It throws an error when MyCustomTarget is not imported, so depending on the result…
Alphapage
  • 901
  • 1
  • 6
  • 29
0
votes
1 answer

Add output or transfer data from child to parent project

I use msbuild in main.proj to build a project like this: Inside outs.proj I have a custom Target, I need to add an…
Alphapage
  • 901
  • 1
  • 6
  • 29
0
votes
1 answer

MSBuild to update html tag

Here is my html file: I want to replace empty src by script.js. I tried with XmlPoke, but my XPath query doesn't work I think or maybe I can't…
Alphapage
  • 901
  • 1
  • 6
  • 29
0
votes
1 answer

Visual Studio Exclude Project on Build Configuration // Where are these "unchecks" persisted to file?

This URL talks about how to exclude a project from a solution build, using checkboxes. http://msdn.microsoft.com/en-us/library/jj676765.aspx Which I've done a thousand times. Now our Build Server is building solutions that I have "unchecked". Now…
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
1 answer

The "Copy" task could not be initialized with its input parameters

Team, I am trying to migrate a .NET framework 2.0 targetting solution to .NET 4.0 . I am facing a problem while i am doing a build. The error is as such C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2869,13): error…
0
votes
0 answers

Running X86 version of MSBuild programmatically

I am currently running MSBuild programmatically using the following: var pc = new ProjectCollection(); var buildProperties = new Dictionary { {"Configuration", "Release"}, {"Platform", "Any CPU"}, …
Doug
  • 6,460
  • 5
  • 59
  • 83
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
1 answer

MSBuild Pivoting ItemGroup on Delimited String

I have an ItemGroup of installers and each one contains a Property which is the name of out output folder (delimited) like this: Folder1,Folder4
Corith Malin
  • 1,505
  • 10
  • 18
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