Skip to content
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

[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
Assignees
Labels
area-Single-File untriaged Request triage from a team member

Comments

@v-ainigao
Copy link

v-ainigao commented Mar 20, 2025

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.
Image

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

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Mar 20, 2025
@v-ainigao
Copy link
Author

The same operation does not repro on a MAC machine.

@v-ainigao
Copy link
Author

v-ainigao commented Mar 20, 2025

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

@marcpopMSFT
Copy link
Member

@agocke looks like a preview2 and preview3 issue with single file on mac arm64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Single-File untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants