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.

311 questions
5
votes
2 answers

MsBuild: Changing References from ProjectReference to Reference

In our environment, we have two in-house frameworks and a separate website. During development, the references to the in-house frameworks tend to be set tp project references. However, once we move to release, the in-house frameworks are installed…
David Williams
  • 783
  • 4
  • 15
5
votes
2 answers

MS Build Extension Pack with nuget fails to get MSBuild.ExtensionPack.tasks

I'm trying to install MS Build Extension Pack in order to use the compression task. I followed the instruction in the nuget web site -- i.e. I executed Install-Package MSBuild.Extension.Pack in the Package Manager Console. It created the…
Barak BN
  • 342
  • 2
  • 13
5
votes
3 answers

how to publish my WCF Service Library using MSBuild Command Line in VS 2012?

I want to Publish my WCF Service Library using MSBuild Command Line with VS2012, i don't want to do right click->Publish Website , instead i want to publish it using Command Prompt(MSBuild). What are the Pre-requisites required for MSBuild? I don't…
Lokesh
  • 359
  • 1
  • 7
  • 17
5
votes
3 answers

How can I expose MSBuild 'Conditions' in VS2010 (for vc++)

I've got a custom build rule in VS2010 for my VC++ project. In this rule, I'd like to allow the users to add complex conditions on whether the file is processed. This also needs to be evaluated at the time of the target execution rather than in the…
Grant Peters
  • 7,193
  • 3
  • 41
  • 56
5
votes
4 answers

How to specify MSBuild version in nant script?

I have a nant script that in one of its targets uses the msbuild tags to build a Visual Studio 2010 solution. The problem is it fails when it hits this point, the error is: Solution file error MSB5014: File format version is not recognized. MSBuild…
Mike
  • 1,166
  • 3
  • 18
  • 32
5
votes
1 answer

How do I make MvcBuildViews continue to other views on error?

I've got a handy visual studio external tool shortcut to build the current project with MvcBuildViews enabled. Arguments: /m:2 $(ProjectFileName) /p:MvcBuildViews=true Command Line: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /m:2…
Maslow
  • 17,665
  • 17
  • 96
  • 181
4
votes
2 answers

error MSB4064: The "OverwriteReadOnlyFiles" parameter is not supported by the "Copy" task

I am using Msbuild 4.0. When i was using Msbuild 3.5 OverwriteReadonlyfiles worked without any issue. But today when i was trying to use the copy task i am getting this issue. error MSB4064: The "OverwriteReadOnlyFiles" parameter is not supported …
Samselvaprabu
  • 13,922
  • 28
  • 113
  • 200
4
votes
2 answers

How to measure the build execution time?

I am having build script in msbuild which will be invoked by powershell. Build log file would look like this. Build started 12/19/2011 2:01:54 PM. Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:00.28 At starting point it will…
Samselvaprabu
  • 13,922
  • 28
  • 113
  • 200
4
votes
0 answers

Invalid static method invocation syntax exception while loading MsBuild project file

I created MergeSolution task for MsBuild. It is for merging multiple solutions into one solution file. I'm using PLINQ to to parse and process all solutions in parallel. I'm using my DisposableProject class to access project files inside every…
Ludwo
  • 5,783
  • 4
  • 29
  • 48
4
votes
2 answers

Output tag - TaskParameter and PropertyName, ItemName - what do this two include?

The msbuild contains output tag. It has avialable attributes: TaskParameter and PropertyName, ItemName. How they can be used? What are they containing? Please, can you help me to understand and give an example? For example you can use xmlpeek task…
truthseeker
  • 2,074
  • 6
  • 28
  • 53
4
votes
1 answer

'dotnet build' error after migrating dotnetcore project to 1.0.4

I've been trying to run the dotnet build command on a migrated .net core project (from 1.0.0-preview2-003131 to 1.0.4). I followed the steps for migrating the project mentioned here, and the solution builds using Visual Studio 2017. However, using…
Shubhang
  • 257
  • 5
  • 12
4
votes
1 answer

cl.exe hangs indefinitely while being invoked via MSBuild

I am trying to run MSBuild on my (mostly C++) projects (imagine a really humongous code base). Visual Studio 2015 is the toolset in question (Windows 7 SP1 and VS 2015 Update 2). Even with /m:1 (and thereby forcing it to use only one processor) I am…
ForeverLearning
  • 5,306
  • 3
  • 23
  • 33
4
votes
0 answers

How do I define a PropertyGroup with condition on whether an ItemGroup contains a particular item

I'm trying to get Resharper for c++ to work with our internal build system. Resharper needs to have all include folders defined statically (not part of any target), but we set up the include paths in a target which runs before the build. We have a…
Yngve Hammersland
  • 1,624
  • 1
  • 14
  • 28
4
votes
1 answer

How to manage npm install in a system without internet connection

I am facing challenges while creating package for all the clientside components of my project in a system which does not have internet connection (for windows). I have installed NPM for windows in the system. I need to manage the node_modules and…
santosh kumar patro
  • 5,491
  • 12
  • 48
  • 105
4
votes
2 answers

v12.0 folder not found in MSBuild

I am setting up Jenkins with MSBuild. I was getting the below error while building through jenkins MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" …
Midhun Murali
  • 1,841
  • 5
  • 25
  • 47