question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support using 64-bit MSBuild

See original GitHub issue

MSBuild in Visual Studio ships with two MSBuild.exe entry points: the MSBuild\Current\bin folder has an x86 (32-bit) executable, and MSBuild\Current\bin\amd64 has a 64-bit (x64/amd64) executable.

In general, both can build any type of project, but some codebases benefit from the increased memory capacity of the 64-bit version.

The 32-bit MSBuild has been on PATH in the Developer Command Prompt in Visual Studio 2019 and prior, but Visual Studio 2022 puts 64-bit MSBuild on PATH to match Visual Studio which is now 64-bit.

This Action should expose an option to put 64-bit MSBuild on PATH instead of 32-bit. Azure DevOps has an option to do so in its MSBuild task:

msbuildArchitecture
MSBuild Architecture
(Optional) Optionally supply the architecture (x86, x64) of MSBuild to run
Default value: x86

For compatibility I would recommend keeping x86 the default; ideally that might change at some point in the future.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rainersigwaldcommented, Oct 18, 2021

I see no value in using x86 if x64 is available.

There can be some–if tasks are x86 but don’t tell MSBuild about it in the <UsingTask>, they can Just Work in x86-driven builds and fail in amd64-driven ones. And generally you don’t know that’s the case until you try a 64-bit build so it could be a surprising change here.

0reactions
timheuercommented, Nov 2, 2021

Fixed with #65 merge and released in v1.1 tag – marketplace updated

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSBuild and 64-bit Visual Studio 2022 - .NET Blog
MSBuild has both 32- and 64-bit executables. Both are installed in every copy of Visual Studio and Visual Studio Build Tools, and scripts...
Read more >
64 bits MSBuild uses x86 native tools instead of cross ...
I'm building my 32 bits VC++ project (cmake generated) using MSBuild with the following command line: "C:\Program Files (x86)\Microsoft Visual ...
Read more >
How do I specify the platform for MSBuild? - Stack Overflow
I am trying to use MSBuild to build a solution with a specified target platform (I need both binaries, x86 and x64). This...
Read more >
Use 64-bit MSBuild.exe on 64-bit hosts - CMake - GitLab
I have several builds failing as MSBuild.exe runs out of virtual address space (the actual machine still has around 16 GiB of free...
Read more >
64-bit node processes load MSBuild binaries from 32 ... - GitHub
Have a 64-bit process that uses MSBuild locator to load 64-bit MSBuild and do a multiproc build. It will create MSBuild.exe processes from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found