-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
…pServices.NFloat. (#14197) * Remove ObjCRuntime.nfloat (in favor of System.Runtime.InteropServices.NFloat). * Automatically add a reference to the System.Runtime.InteropServices.Internal package, so that developers get the new NFloat API (with operators) we've added post .NET 6 (but don't do this for .NET 7). * Automatically add a global using alias for System.Runtime.InteropServices.NFloat -> nfloat. This is not behind the usual `ImplicitUsings` condition our other implicit usings are, because they're off by default for existing projects, and the main target for the global using alias for nfloat is upgraded projects. * Automatically generate a global using alias (like above) in the generator for all code the generator compiles. * Update xtro entries to reference System.Runtime.InteropServices.NFloat instead of ObjCRuntime.nfloat. * Add a workaround for a hopefully temporary issue with .NET/CoreCLR where the wrong runtime pack is selected otherwise (without the new NFloat API, so nothing works at runtime). Ref: #13087
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,9 @@ | |
<!-- download the reference assemblies --> | ||
<PackageDownload Include="microsoft.netcore.app.ref" Version="[$(ActualPackageVersion)]" /> | ||
|
||
<!-- download the nfloat reference assembly for .NET 6 (but only for .NET 6, once we switch to .NET 7 this can be removed) --> | ||
<PackageDownload Include="System.Runtime.InteropServices.NFloat.Internal" Version="[6.0.1]" Condition="'$(ActualPackageVersion.Substring(0,1))' == '6'" /> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rolfbjarne
Author
Member
|
||
|
||
<!-- and get the mono workload as well --> | ||
<PackageDownload Include="Microsoft.NET.Workload.Mono.ToolChain.Manifest-$(ToolChainManifestVersionBand)" Version="[$(ActualPackageVersion)]" /> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#if NET | ||
|
||
#if !(MTOUCH || MMP || BUNDLER) | ||
global using nfloat = System.Runtime.InteropServices.NFloat; | ||
#endif | ||
|
||
#endif // NET |
1 comment
on commit bd97933
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests didn't execute on Build. ❌
Tests didn't execute on Build.
API diff
✅ API Diff from stable
View dotnet API diff
View dotnet legacy API diff
API Current PR diff
ℹ️ API Diff (from PR only) (please review changes)
View dotnet API diff
View dotnet legacy API diff
Generator diff
ℹ️ Generator Diff (please review changes)
Path D:\a\1\s\artifacts\pkg-info\artifacts.json was not found!
❌ Notarization (ESRP) failed ❌
Signature check of /Users/builder/azdo/_work/1/s/package/notarized/xamarin.ios-15.7.0.484.pkg failed (exit code: 1).
Pipeline on Agent
[runtime] Remove ObjCRuntime.nfloat in favor of System.Runtime.InteropServices.NFloat. (#14197)
the package System.Runtime.InteropServices.NFloat.Internal is not exist in NuGet?