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
3
votes
1 answer

Asp.Net aspparse circular reference error only on command line build

I have an Asp.Net website project that builds fine locally with VS2010 and from the command line with msbuild. The problem is its failing on our build server (CruiseControl.net) with this circular file reference issue /tms/_master/help.master(1):…
craigb
  • 16,827
  • 7
  • 51
  • 62
3
votes
1 answer

MSBuild using %(RecursiveDir) as part of file name

As part of our build script we copy user messages files from a subdirectory and want to append the name of the subdirectory to the message files. i.e. msg\0\message.std > msg\message0.std I have tried using
krisn
  • 33
  • 1
  • 1
  • 4
2
votes
1 answer

Build logs of two projects in a common file

I have 2 projects in my solution i want the build log of both of them to be common file. But on specifying it as a common file the build log of the first project doesn't get appended by the build log of the second file instead it only contains build…
manu_dilip_shah
  • 880
  • 14
  • 32
2
votes
2 answers

How to give a different OutputPath per project per build configuration with MSBuild?

Multiple projects have to be build with one ore more configurations (debug/release/...). The output of the build needs to be copied to a folder (BuildOutputPath). There is a default BuildOutputFolder, but for some project you can indicate that the…
Linefeed
  • 989
  • 2
  • 12
  • 18
2
votes
1 answer

Need To Configure TFS Build With Custom Build Script

I use the below script to queue build in TFS 2010 build server. This TFSBuil.proj runs successfully if I use locally with command: MSBUILD.exe TFSBuild.proj and get my staging folder. I am trying hard to get this to build in build server. Lastly …
Everything Matters
  • 2,672
  • 4
  • 25
  • 42
2
votes
1 answer

Using MSBuild 4.0, is it possible to "simplify" a property containing a path?

Suppose that I have a property containing c:\workdir\project\wonder\subproj\..\..\common and I want to reduce/simplify it to c:\workdir\project\common Furthermore, I would also like to be able to get a relative path from the current directory or…
Stécy
  • 11,951
  • 16
  • 64
  • 89
2
votes
0 answers

how to fix could not load file or assembly Azure.Core'

I get a runtime error : could not load file or assembly Azure.Core' Azure.Core is not directly added nuget package, but Azure.Identity was added. I have two warnings : : There was a conflict between "Azure.Identity, Version=1.1.0.0,…
petercli
  • 185
  • 2
  • 12
2
votes
1 answer

msbuild String to Array

I am building a string with the PowershellTaskFactory that returns a list of files separated with a semicolon. When I try to pass this to my in Wix it is interpreted as a string. I've been fighting it for quite a while now and decided to reach…
Bill
  • 1,563
  • 1
  • 15
  • 28
2
votes
2 answers

How can msbuild.exe be set up to embed the proper value for SSE2 into _M_IX86_FP?

I have built a solution with VS2010 Express Edition with SSE2 set in the properties C++ code generation enhanced instruction set. Then in the program test against predefined MARCO _M_IX86_FP yields as expected the value of 2. The same project built…
NickyP
  • 91
  • 1
  • 7
2
votes
1 answer

MSBuild 4.0 introduces dependency on 4.0 framework

We've recently upgraded all our .NET projects from VS2005 to VS2010. As a part of this move, we've upgraded from compiling with MSBuild 3.5 to MSBuild 4.0. All our compiles are from the command-line, with the following command (or…
Daniel Becroft
  • 716
  • 3
  • 19
2
votes
0 answers

Msbuild Exec Command should execute based on ASP .Net Core's appsettings.json or launchSetting.json file

We have a project in the ASP .Net Core in that we have implemented the GULP task in the .csproj file with below command it is executed very well. on every build Command
Shah NIral
  • 420
  • 5
  • 15
2
votes
2 answers

Help Updating XML file using MSBuild Extensions 4 with namespaces

I'm having some trouble getting MSBuild extensions 4.0 to update an XML file once a namespace is involved. When I have a simple XML file with no namespace then fine, but once i attempt to update an xml file that has a namespace set, then nothing…
2
votes
0 answers

Azure DevOps Build publish does not include extra files

We have requirement to include extra files which are not included in the project because they are generated by webpack by different frontend project. I have followed this article…
user1754675
  • 887
  • 13
  • 32
2
votes
1 answer

Receiving CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' using MSBuild.exe

I am trying to build a dotnet solution using the below command but getting error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' using MSBuild.exe Command: bat "\"${tool 'MSBuild'}\"…
user176961
  • 21
  • 3
2
votes
0 answers

How to build sonarscanner ,getting "MSbuild.exe is not recognize as internal and external command"?

I have installed Msbuild along with studio2017 but while building sonarscanner the msbuild.exe not found error thrown.