Skip to content

RuntimeIdentifiers doesn't set PlatformTarget #1017

@davkean

Description

@davkean

From @davidmatson on March 21, 2017 2:47

<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>

Copied from original issue: dotnet/project-system#1804

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions