Using PackAsToolShimRuntimeIdentifiers and netcoreapp3.0 fails with error NETSDK1065
See original GitHub issueRepro
<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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:28 (18 by maintainers)
Top Results From Across the Web
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Error publishing an ASP.NET Core 3.1 site to Azure from ...
The immediate issue—as identified in the original question—has to do with there being two places where <TargetFramework> is set:.
Read more >NETSDK1005 and NETSDK1047: Asset file is missing target
When the .NET SDK issues error NETSDK1005 or NETSDK1047, the project's assets file is missing information on one of your target frameworks.
Read more >Resolving warning NETSDK1138: The target framework ' ...
I am trying to build this project in Visual Studio for Mac: ... I decided to try and change the target framework in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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