You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NETSDKE2E][ARM64]The Published Single File generated by "dotnet publish -c Release -r osx-arm64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained" run failed on Mac OS
#47760
Open
v-ainigao opened this issue
Mar 20, 2025
· 3 comments
Repro steps:
1.Install .NET10.0.100-preview.3.25169.4(runtime-10.0.0-preview.3.25167.9)SDK
2.create a new console and publish dotnet new console dotnet publish -c Release -r osx-arm64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained
Will only generate the single-file app and *.pdb file.
4.Run the output on a Mac machine
Expected:
The file ran successfully
Actual result:
Running the file shows it has been killed.
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26304
OS Platform: Windows
RID: win-arm64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.3.25169.4\
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.
This issue also repro's on official website net10preview2SDK.
But the specified parameter is changed to dotnet publish -c Release -r osx-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained and it does not reproduce
Build:
.NET10.0.100-preview.3.25169.4(runtime-10.0.0-preview.3.25167.9)SDK
OS:
WIN-ARM64OS
Repro steps:
1.Install .NET10.0.100-preview.3.25169.4(runtime-10.0.0-preview.3.25167.9)SDK
2.create a new console and publish
dotnet new console
dotnet publish -c Release -r osx-arm64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained
Will only generate the single-file app and *.pdb file.
4.Run the output on a Mac machine
Expected:
The file ran successfully
Actual result:

Running the file shows it has been killed.
dotnet --info:
C:\Users\v-ainigao>dotnet --info
.NET SDK:
Version: 10.0.100-preview.3.25169.4
Commit: c8de39c
Workload version: 10.0.100-manifests.93f92b2e
MSBuild version: 17.15.0-preview-25167-10+bcc2dc6a6
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26304
OS Platform: Windows
RID: win-arm64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.3.25169.4\
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.
Host:
Version: 10.0.0-preview.3.25167.9
Architecture: arm64
Commit: 4ff64a03e5
.NET SDKs installed:
10.0.100-preview.3.25169.4 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.3.25167.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.3.25167.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.4.25168.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
The text was updated successfully, but these errors were encountered: