Skip to content

RuntimeIdentifiers doesn't set PlatformTarget #1804

@davidmatson

Description

@davidmatson
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net452</TargetFramework>
    <RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
    <AssemblyName>Testx64</AssemblyName>
  </PropertyGroup>
</Project>

Expected:
64-bit assembly

Actual:
AnyCPU assembly

Current workaround is to add:

<PlatformTarget>x64</PlatformTarget>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions