Skip to content

Using PackAsToolShimRuntimeIdentifiers and netcoreapp3.0 fails with error NETSDK1065 #2867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
natemcmaster opened this issue Jan 25, 2019 · 28 comments
Assignees
Milestone

Comments

@natemcmaster
Copy link
Contributor

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

@natemcmaster
Copy link
Contributor Author

Marking as blocking-partner because we cannot update aspnet to build with a new SDK until this is resolved.

@livarcocc
Copy link
Contributor

@wli3

@livarcocc livarcocc added this to the 3.0.1xx milestone Jan 25, 2019
@wli3
Copy link

wli3 commented Jan 25, 2019

ack

@wli3
Copy link

wli3 commented Jan 25, 2019

@peterhuene I think something like https://github.com/dotnet/cli/issues/10566 need to happen, since PackAsTool still resolves apphost from runtime package. Could you give me a pointer to what is 3.0 way to resolve apphost?

@wli3
Copy link

wli3 commented Jan 25, 2019

still works for netcoreapp2.0 but not netcoreapp3.0 that's why no tests caught it

@peterhuene
Copy link
Contributor

In SDK master, the apphost gets resolved via the ResolveFrameworkReferences task. This outputs an AppHostPack item that we set the AppHostSourcePath property that triggers the apphost generation logic when building and publishing.

It looks like this change broke this for tool shims, so we'll need to figure out the proper way to fix this. I can sync up with you tomorrow about it.

@wli3
Copy link

wli3 commented Jan 25, 2019

@natemcmaster is this blocking aspnet preview 2? @livarcocc @KathleenDollard for awareness. This won't be a straight forward bug to fix.

@natemcmaster
Copy link
Contributor Author

Not for preview 2, but it will be for preview 3

@wli3
Copy link

wli3 commented Jan 25, 2019

Proposed fix #2870

@wli3 wli3 self-assigned this Jan 28, 2019
@wli3 wli3 mentioned this issue Jan 28, 2019
@bricelam
Copy link
Contributor

bricelam commented Jan 31, 2019

Any update on this? We're trying to work on our C# 8 related features and could really use the latest version of the SDK...

@bricelam
Copy link
Contributor

cc @ajcvickers

@peterhuene
Copy link
Contributor

The fix has been merged into dotnet/sdk, so now the change just needs to make its way to dotnet/core-sdk for a SDK build to contain the fix.

@livarcocc
Copy link
Contributor

This should have flowed into core-sdk naturally by tomorrow. Otherwise, we can manually expedite it.

@peterhuene
Copy link
Contributor

There was a conflict in the toolset maestro PR which I've now resolved to help it along its way.

@wli3 wli3 closed this as completed Feb 6, 2019
@bricelam
Copy link
Contributor

bricelam commented Feb 6, 2019

Still seeing this in 3.0.100-preview-010234. Is it expected to be fixed in there?

@peterhuene
Copy link
Contributor

peterhuene commented Feb 6, 2019

Unfortunately it looks like dotnet/core-sdk never took a newer toolset (6 days old still) and as a result the SDK does not yet contain the fix.

We're noticing build failures in multiple repos which I assume is arcade-related; perhaps it is preventing Maestro from updating the toolset dependency in dotnet/core-sdk?

@livarcocc should we manually update the toolset to one that contains @wli3's fix to unblock repos with tool shims that would like to move to a newer 3.0 build?

@wli3 wli3 reopened this Feb 6, 2019
@wli3
Copy link

wli3 commented Feb 6, 2019

let me babysit a build for now

@wli3
Copy link

wli3 commented Feb 11, 2019

dotnet/installer#451 manual update here

@wli3
Copy link

wli3 commented Feb 12, 2019

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

@wli3 wli3 closed this as completed Feb 12, 2019
@natemcmaster
Copy link
Contributor Author

Thanks for confirming the fix @wli3

@bricelam
Copy link
Contributor

Still seeing this on 3.0.100-preview3-010281

@wli3
Copy link

wli3 commented Feb 15, 2019

@bricelam The one I verified is 3.0.100-preview4-010309. Are you downloading from https://github.com/dotnet/core-sdk ?

@bricelam
Copy link
Contributor

So it won’t be fixed for preview 3? Ok, we should be able to ship preview 3 using our current version of the SDK

@nguerrera
Copy link
Contributor

It might be codeflow backed up in preview 3. Toolset hasn't gone in for a while. dotnet/installer#506

@vijayrkn
Copy link
Contributor

@wli3 - Does the current preview3 version have this fix?
https://github.com/dotnet/core-sdk/blob/master/eng/Versions.props#L15
3.0.100-preview3.19123.1

@vijayrkn
Copy link
Contributor

Scaffolding build is blocked because of this. If you can confirm the version, I will send a PR to update the KoreBuild to this version.

@wli3
Copy link

wli3 commented Feb 27, 2019

I just checked 3.0.100-preview3-010373 is a good

@vijayrkn
Copy link
Contributor

Thanks! I have updated the KoreBuild to use 3.0.100-preview4-010309. If we run into any other issues. I will lower it to the above preview3 version.

dsplaisted pushed a commit to dsplaisted/sdk that referenced this issue Feb 19, 2020
….4 (dotnet#2867)

- Microsoft.DotNet.Cli.Runtime - 3.1.100-preview1.19463.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants