Skip to content

ildasm produces different comments in the output on Windows vs Linux #122976

Open

Description

@MichaelSimons

Run ildasm on the System.Runtime assembly from the Microsoft.NetCore.App.Ref 10.0.0 package on both Windows and Linux and compare the output.

diff --git a/D:/a/_work/1/s/artifacts/bin/Sbrp.Tests/Release/net10.0/GenerateTests-1767801555/normalized-src/targetPacks/ILsrc/microsoft.netcore.app.ref/10.0.0/ref/net10.0/
System.Runtime.il 
b/D:/a/_work/1/s/artifacts/bin/Sbrp.Tests/Release/net10.0/GenerateTests-1767801555/targetPacks/ILsrc/microsoft.netcore.app.ref/10.0.0/ref/net10.0/System.Runtime.il
index e719fceb..afac84a5 100644
--- a/D:/a/_work/1/s/artifacts/bin/Sbrp.Tests/Release/net10.0/GenerateTests-1767801555/normalized-src/targetPacks/ILsrc/microsoft.netcore.app.ref/10.0.0/ref/net10.0/System.
Runtime.il
+++ b/D:/a/_work/1/s/artifacts/bin/Sbrp.Tests/Release/net10.0/GenerateTests-1767801555/targetPacks/ILsrc/microsoft.netcore.app.ref/10.0.0/ref/net10.0/System.Runtime.il
@@ -26609,7 +26609,7 @@
   .field /*04000042*/ public static literal float64 Epsilon = float64(4.9406564584124654e-324)
   .field /*04000043*/ public static literal float64 MaxValue = float64(1.7976931348623157e+308)
   .field /*04000044*/ public static literal float64 MinValue = float64(-1.7976931348623157e+308)
-  .field /*04000045*/ public static literal float64 NaN = float64(0xFFF8000000000000) // -nan
+  .field /*04000045*/ public static literal float64 NaN = float64(0xFFF8000000000000) // -nan(ind)
   .field /*04000046*/ public static literal float64 NegativeInfinity = float64(0xFFF0000000000000) // -inf
   .field /*04000047*/ public static literal float64 NegativeZero = float64(-0.0000000000000000)
   .field /*04000048*/ public static literal float64 Pi = float64(3.1415926535897931) 

Windows produces // -nan(ind) where Linux produces // -nan

While this is non-functional from an il perspective but it causes headaches in my test scenario that is run on multiple platforms.

I am using version 11.0.0-alpha.1.26055.102

Activity

  1. added
    untriaged
    on Jan 7, 2026
  2. added
    needs-area-label
    on Jan 7, 2026
  3. added and removed
    needs-area-label
    on Jan 7, 2026
  4. dotnet-policy-service commented on Jan 7, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT
    See info in area-owners.md if you want to be subscribed.

  5. added this to the 11.0.0 milestone on Feb 27, 2026
  6. removed
    untriaged
    on Feb 27, 2026
  7. modified the milestones: 11.0.0, 12.0.0 on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions