Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantage of 64-bit MSBuild?

Other than not being able to build Silverlight, can anyone tell me what the differences are between 32 and 64 bit MSBuild? All I can find on Google are articles about 64-bit builds, but 32-bit MSBuild seems to be able to build x64 assemblies just fine.

like image 607
Kir Avatar asked Dec 23 '11 14:12

Kir


People also ask

How is 64bit version better than 32-bit MSBuild version?

Here's why it matters. Simply put, a 64-bit processor is more capable than a 32-bit processor because it can handle more data at once. A 64-bit processor can store more computational values, including memory addresses, which means it can access over 4 billion times the physical memory of a 32-bit processor.

What version of MSBuild does vs2022 use?

Visual Studio 2022 uses the 64-bit version of MSBuild for all builds. The 32-bit version is still available but we recommend switching all builds to the 64-bit version.

Is MSBuild backwards compatible?

You can configure the task to indicate that it requires a specific runtime environment by specifying the Architecture attribute in the UsingTask element. This change is backward compatible since MSBuild has supported running tasks in a different architecture since .


2 Answers

The 64 bit version will have access to more address space. There is a writeup of it here that also covers some disadvantages: Is there any advantage to building my .NET application with the 64 bit framework?

like image 66
Max Avatar answered Sep 28 '22 06:09

Max


32-bit MSBuild seems to be able to build x64 assemblies just fine - this is correct.

++ more address space - needed for a huge builds
-- issues with using assemblies forced to 32/64bit - 64bit aspnet_compiler is called from 64bit MSBuild and I faced with forced 32bit reference issues.

like image 28
Ludwo Avatar answered Sep 28 '22 06:09

Ludwo