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
{{ message }}
Repository navigation
Interop source generators failing build in dotnet/runtime when latest SDK is installed #92655
When building for older frameworks the latest interop source generator is used, which ends up forcing the latest shared library Microsoft.Interop.SourceGeneration.dll while still using older source generators. This makes the older source generators break if there are breaking changes to the internal Microsoft.Interop.SourceGeneration.dll.
CSC : error CS8784: Generator 'VtableIndexStubGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'TypeLoadException' with message 'Could not load type 'Microsoft.Interop.TargetFramework' from assembly 'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'
Regression?
Yes,
Known Workarounds
No response
Configuration
No response
Other information
I attempted to fix this in #92648 before fully understanding the problem.
Activity
ghost added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
Activity
ericstj commentedon Sep 26, 2023
#92660 has a good workaround for folks blocked on this. Thank you @jtschuster!