Skip to content

Framework dependent package for 7.0.0-preview1 does not work on Windows ARM and ARM64 #10019

@adityapatwardhan

Description

@adityapatwardhan

See dotnet/dotnet-docker#1147

Steps to reproduce

Start fxdependent powershell on win-arm or win-arm64

We have the following logic for deciding the SDK we want to use.

<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(RuntimeIdentifier)' == 
'win-arm' or '$(RuntimeIdentifier)' == 'win-arm64'" />
  <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(RuntimeIdentifier)' == 'win-arm' or '$(RuntimeIdentifier)' == 'win-arm64'" />

  <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(RuntimeIdentifier)' != 'win-arm' and '$(RuntimeIdentifier)' != 'win-arm64'" />
  <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(RuntimeIdentifier)' != 'win-arm' and '$(RuntimeIdentifier)' != 'win-arm64'" />

When we build a framework dependent package, we have no specified RuntimeIdentifier, hence we select Microsoft.NET.Sdk.WindowsDesktop. We can only fix this in the next release for PowerShell.

Expected behavior

Powershell starts

Actual behavior

Tries to load Microsoft.NET.Sdk.WindowsDesktop which is not supported.

Environment data


Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions