You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspect the .\obj\Release\net7.0\win-x64\native\HelloWorld.mstat using ildasm and open the Methods() method, which lists all the methods left in the app.
Expected results
The System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) and System.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8) methods should be trimmed from the app, so they should not be in the mstat file.
Actual results
These attributes are left in the app.
The text was updated successfully, but these errors were encountered:
We need to add support for assembly fullname="*". Can be done, just wasn't completely straightforward and I don't expect this to have meaningful savings. Custom attributes are a lot less costly in NativeAOT metadata format than in IL.
dotnet publish -c Release -r win-x64 -p:PublishAot=true -p:NullabilityInfoContextSupport=false -p:IlcGenerateMstatFile=true
the following app:Inspect the
.\obj\Release\net7.0\win-x64\native\HelloWorld.mstat
usingildasm
and open theMethods()
method, which lists all the methods left in the app.Expected results
The
System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8)
andSystem.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8)
methods should be trimmed from the app, so they should not be in the mstat file.Actual results
These attributes are left in the app.
The text was updated successfully, but these errors were encountered: