Skip to content

Tests run in 32-bit process #6684

Open
Open
@rainersigwald

Description

@rainersigwald

MSBuild tests run in a 32-bit process for the .NET Framework MSBuild used in Visual Studio. That made sense when VS was 32-bit but we should consider changing it now.

This happens because of this

<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<!-- When targeting .NET Framework, Exe and unit test projects build with x86 architecture if Platform is AnyCPU,
and build for x64 architecture when Platform is x64 -->
<RuntimeOutputPlatformTarget>x86</RuntimeOutputPlatformTarget>
<RuntimeOutputPlatformTarget Condition="'$(Platform)' == 'x64'">x64</RuntimeOutputPlatformTarget>
</PropertyGroup>

and

https://github.com/dotnet/arcade/blob/main/Documentation/ArcadeSdk.md#testarchitectures-list-of-strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Our Own BuildProblems affecting the build or build infrastructure of the MSBuild repo itself.triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions