[SDK 6.0.100-preview.2.21155.3] the single exe of 'dotnet publish' cause error 'api-ms-win-core-winrt-l1-1-0.dll is missing'
See original GitHub issue[SDK 6.0.100-preview.2.21155.3] the single exe of ‘dotnet publish’ cause error ‘api-ms-win-core-winrt-l1-1-0.dll is missing’
os:windows 7 dotnet sdk: SDK 6.0.100-preview.2.21155.3 download as Binaries, not as Installers
set DOTNET_ROOT=D:\hpc-bio\dotnet\dotnet-sdk-6.0
%DOTNET_ROOT%\dotnet build -c Release AppNet60.csproj
%DOTNET_ROOT%\dotnet publish -c Release /p:PublishSingleFile=true /p:SelfContained=true /p:PublishTrimmed=true /p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishReadyToRunShowWarnings=true --framework net6.0-windows -r win7-x64 AppNet60.csproj
the api-ms-win-core-winrt-l1-1-0.dll is not found in D:\hpc-bio\dotnet\dotnet-sdk-6.0 too.
as a compare, .net sdk v5.0.4 works well.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:17 (6 by maintainers)
Top Results From Across the Web
No results found
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
Is it possible to use the “old publish” with NET6? I really need self-contained single-file executables on Win7 and I also need the most recent C# version. So this is a huge problem. I don’t care if the files are extracted or not but I need to be able to create such file with NET6/C#10 support.
current:
Could we remove this limitation added in .net 6.0?