Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Where is System.UInt128? #75924

Closed
HSchwichtenberg opened this issue Sep 20, 2022 · 5 comments
Closed

Where is System.UInt128? #75924

HSchwichtenberg opened this issue Sep 20, 2022 · 5 comments

Comments

@HSchwichtenberg
Copy link

HSchwichtenberg commented Sep 20, 2022

Description

According to https://learn.microsoft.com/en-us/dotnet/api/system.uint128?view=net-7.0 and dotnet/core#7454 there is a new type public readonly struct UInt128 in the System namespace

However, with
System.UInt128 x;
I get the error
The type or namespace name 'UInt128' does not exist in the namespace 'System'
when running dotnet build

Configuration

.NET 7.0.100-rc.1.22431.12

@mairaw mairaw transferred this issue from dotnet/core Sep 20, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

According to https://learn.microsoft.com/en-us/dotnet/api/system.uint128?view=net-7.0 and dotnet/core#7454 there is a new type public readonly struct UInt128 in the System namespace

However, with
System.UInt128 x;
I get the error
The type or namespace name 'UInt128' does not exist in the namespace 'System'
when running dotnet build

Configuration

.NET 7.0.100-rc.1.22431.12

Author: HSchwichtenberg
Assignees: -
Labels:

area-System.Numerics, untriaged

Milestone: -

@stephentoub
Copy link
Member

Configuration
.NET 7.0.100-rc.1.22431.12

What does your csproj look like?

@HSchwichtenberg
Copy link
Author

I found the problem: I still had a PackageReference to System.Runtime.Experimental.
After removing that, System.Int128 is available!

Sorry for disturbing you with the question I could have answered myself 🤯

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 20, 2022
@stephentoub
Copy link
Member

Glad you got it sorted out.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 21, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants