Skip to content

Recent NativeAOT produce warnings about invalid format of DLL #65613

Closed
@kant2002

Description

@kant2002

Last week I start seeing this warnings during compiling applications.

    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<<WriteSingleChunk>g__WaitAndWriteAsync|173_0>d`1<System.Net.Security.SyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<<WriteSingleChunk>g__WaitAndWriteAsync|173_0>d`1<System.Net.Security.AsyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<EnsureFullTlsFrameAsync>d__177`1<System.Net.Security.AsyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<EnsureFullTlsFrameAsync>d__177`1<System.Net.Security.SyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<ForceAuthenticationAsync>d__166`1<System.Net.Security.SyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<ForceAuthenticationAsync>d__166`1<System.Net.Security.AsyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream.WriteSingleChunk<AsyncReadWriteAdapter>(ReadOnlyMemory`1<uint8>,CancellationToken)' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream.WriteSingleChunk<SyncReadWriteAdapter>(ReadOnlyMemory`1<uint8>,CancellationToken)' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<ReadAsyncInternal>d__179`1<System.Net.Security.AsyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Net.Security]System.Net.Security.SslStream+<ReadAsyncInternal>d__179`1<System.Net.Security.SyncReadWriteAdapter>.MoveNext()' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Text.RegularExpressions]System.Text.RegularExpressions.Symbolic.SymbolicRegexMatcher`1<System.__Canon>.Delta<AntimirovTransition<__Canon>>(ReadOnlySpan`1<char>,int32,DfaMatchingState`1<__Canon>)' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Text.RegularExpressions]System.Text.RegularExpressions.Symbolic.SymbolicRegexMatcher`1<System.__Canon>.Delta<BrzozowskiTransition<__Canon>>(ReadOnlySpan`1<char>,int32,DfaMatchingState`1<__Canon>)' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Text.RegularExpressions]System.Text.RegularExpressions.Symbolic.SymbolicRegexMatcher`1<uint64>.Delta<AntimirovTransition<uint64>>(ReadOnlySpan`1<char>,int32,DfaMatchingState`1<uint64>)' will always throw because: The format of a DLL or executable being loaded is invalid
    ILC: Method '[System.Text.RegularExpressions]System.Text.RegularExpressions.Symbolic.SymbolicRegexMatcher`1<uint64>.Delta<BrzozowskiTransition<uint64>>(ReadOnlySpan`1<char>,int32,DfaMatchingState`1<uint64>)' will always throw because: The format of a DLL or executable being loaded is invalid

I did not look yet, and if this is something relatively easy, I can take this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions