sdk: Using PackAsToolShimRuntimeIdentifiers and netcoreapp3.0 fails with error NETSDK1065

Repro

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <PackAsTool>true</PackAsTool>
    <PackAsToolShimRuntimeIdentifiers>win-x64;win-x86</PackAsToolShimRuntimeIdentifiers>
  </PropertyGroup>

</Project>

dotnet pack

Result

C:\Users\namc\.dotnet\x64\sdk\3.0.100-preview-010166\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(228,5): error NETSDK1065: Cannot find app host for win-x64. win-x64 could be an invalid runtime identifier (RID). For more information about RID, see https://aka.ms/rid-catalog. [C:\src\aspnet\BuildTools\repro\CliTool\CliTool.csproj]

Details

Using 3.0.100-preview-010166

cc @nguerrera @wli3

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 28 (18 by maintainers)

Commits related to this issue

Most upvoted comments

I just checked 3.0.100-preview3-010373 is a good

It might be codeflow backed up in preview 3. Toolset hasn’t gone in for a while. https://github.com/dotnet/core-sdk/pull/506

@bricelam @natemcmaster sorry for the long delay. I verified the latest core sdk build does not repro the bug.