Description
Repro Steps:
1.Install net 8 SDK: 8.0.100-alpha.1.23056.11 on windows
2.Run “dotnet new console” in CLI to create the project.
3.Run “dotnet publish -c Release -r osx-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true"to publish the project via CLI.
4.will only generate the single-file app and *.pdb file.
5.Run the output on a Mac machine. (Mac machine doesn't need the SDK installed).
Expected Result:
app should run successfully
Actual Result:
App run failed with below error
dotnet --info
C:\Users\v-weiwzhang>dotnet --info
.NET SDK:
Version: 8.0.100-alpha.1.23056.11
Commit: 7bea0af Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100-alpha.1.23056.11\ Host:
Version: 8.0.0-alpha.1.23055.3
Architecture: x64
Commit: 9197fd5551 .NET SDKs installed:
8.0.100-alpha.1.23056.11 [C:\Program Files\dotnet\sdk] .NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-alpha.1.23055.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-alpha.1.23055.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.0-alpha.1.23055.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found:
None Environment variables:
Not set global.json file:
Not found Learn more:https://aka.ms/dotnet/info Download .NET:https://aka.ms/dotnet/download