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

Invoking build script written in Msbuild using Perl

Is it possible to execute Msbuild commands from perl? In powershell i use to retrieve all the Visual studio 2010 environment variables then call Msbuild commands directly. function SetVS2010() { $vs100comntools = (Get-ChildItem…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

How to create cab file from mshc?

I am using following task to create cab file. Is there any other alternative way is there to…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

Buildoutputs attribute does not have assembly names

I am using Msbuild to build my solution [We will pass the solution names instead of csproj names]. In the above picture solution folder [Configuration,Source, Tests] has few projects and 3 projects having no solution folder. We used to obtain…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

MSbuild 4.0 fail to compile .Net 3.5 project

I am using Msbuild 4.0. In our project few solution are having .net 3.5 projects. When i compile it through Visual studio it works. If i build the same using Msbuild it fails. Following is the compilation issue: error : Compilation failed. Unable…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

Msbuild packaging Issue

Currently I am working on a mvc3 project and I use msbuild command line tool to do the packaging. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>msbuild MVC-Client.csproj /t:package /P:Configuration=staging In my machine this command…
Eshan Sudharaka
  • 607
  • 2
  • 9
  • 16
0
votes
1 answer

How to get LDAP displayname and email id using Msbuild?

I got communitytasks to send mail. But in subject itself if i add display name of LDAP user, I would know who is taking build. Following Code in Powershell would give me mail id and displayname $searcher =…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
2 answers

How to combine into single attribute if metadata is same?

I am having Msbuild XML file like this.
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
2 answers

MSBuild 2010 failing to find installed VS2008 when trying to build with .Net Framework 3.5 / v90 toolset

I am having trouble building C++ projects targeting the .Net Framework v3.5 in VS2010 via automated builds (see my other question here) While I'm pretty sure that the answer provided to the question is correct, I have hit another problem which is…
Vermin
  • 917
  • 2
  • 11
  • 23
0
votes
2 answers

How to convert a batch file to XML file

I am having a file where Xcopy commands were written. Now i need to move them to xml file format so that i can execute with them in Msbuild. Following are my file contents xcopy File1 Destinationfolder1 Xcopy File2 DestinationFolder2 Xcopy File3…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

Custom Task getting called more than once

I am learning how to use MSBuild recently so I decided to tackle writing my own custom MSBuild task. What I found is that MSBuild is calling my task just fine... but it calls it over and over and over again. It repeats the call to it many times,…
C.J.
  • 15,637
  • 9
  • 61
  • 77
0
votes
1 answer

How to build solutions list in multiple properties file using msbuild?

I am having following list of Msbuild properties file. C:\Build\Mainscript\Master.targets C:\Build\Mainscript\Master.properties C:\Build\Component1\build.comp1.properties C:\Build\Component2\build.comp2.properties . …
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

Deployment failed with error : login failed for user 'xx'

The deployment of the build in TFS failed within 10 seconds with the following error. Deployment fail with error: Login failed for user 'XX' Any help Thanks, suren
0
votes
1 answer

Msbuild command line: MSB3021 error in CopyWebApplicationLegacy task

I've seen several questions on here about this error, but all of them seem to be related to the "Access is Denied" flavor of this error, can't find any that deal with the message I'm getting: C:\Program…
jcollum
  • 43,623
  • 55
  • 191
  • 321
0
votes
1 answer

NAnt using MSBuild

I am using NAnt to build an asp.net mvc 3 project that contains EXT JS. After the code successfully compiles, msbuild attempts to copy the files into the following sub folder "_PublishedWebsites". Unfortunately the build fails and I get the…
0
votes
0 answers

Output: Skipping target because all output files are up-to-date with respect to the input files while running msbuild from console app

While running my msbuild instead of building the project , it skips the file and gives an out put as : Output: Skipping target because all output files are up-to-date with respect to the input files while running msbuild from console app Output: …
madhurima
  • 13
  • 3