-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet test --arch X64
doesn't fail on Mac arm64
#21980
Comments
dotnet test --arch X64
doesn't fail on Mac arm64
Hi @sfoslund I see that this PR added We're aligning sdk/src/Cli/dotnet/CommonOptions.cs Line 191 in 22c4860
In sample above if we try with The consequence is that platform doesn't flow to our task because it's not recognized and looks like it fallback to AnyCPU, I found this message for
cc: @vitek-karas |
We depend on msbuild to determine if the RID is valid and error if not, since we don't want to duplicate that logic. We get the following error for invalid RIDs right now:
This error comes from the ResolveAppHost task. |
@rainersigwald can you help or explain if it's expected? |
Sorry, I don't think I understand what you're asking about. It looks like the SDK doesn't validate RID unless it's using an apphost or a couple of other conditions, from the snippet sfoslund linked: Lines 123 to 127 in 877d0e6
Are you asking the SDK to do more validation? |
Yep I was wondering if it's possible extend validation in case of "non hosts" for the test sdk. |
Describe the bug
When I run
dotnet test --arch X64
on Mac M1 it should fail like for other verbs withNETSDK1083: The specified RuntimeIdentifier 'osx-X64' is not recognized.
On my test it compiles to a valid RID and create a folder like
osx-X64
To Reproduce
TestProjectNetcore.zip
Download above project and run
Further technical details
.NET SDK (reflecting any global.json):
Version: 6.0.100-rc.2.21505.57
Commit: ab39070116
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.4
OS Platform: Darwin
RID: osx.11.0-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21505.57/
Host (useful for support):
Version: 6.0.0-rc.2.21480.5
Commit: 6b11d64e7e
.NET SDKs installed:
6.0.100-rc.2.21505.57 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-rc.2.21480.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-rc.2.21480.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: