bytecodealliance / bytecodealliance/componentize-dotnet
Build warning - CSC : warning CS8784
- Dominant language
- C#
- Stars
- 147
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
On biulding a project created following the instaructions in the README, I recevie the following warning. The build does succeed, and produces a runable Wasm.
```
CSC : warning CS8784: Generator 'VtableIndexStubGenerator' failed to initialize. It will not contribute to the output and compilation e
rrors may occur as a result. Exception was of type 'TypeLoadException' with message 'Could not load type 'Microsoft.Interop.Marshalling
GeneratorFactoryKey`1' from assembly 'Microsoft.Interop.SourceGeneration, Version=9.0.10.30401, Culture=neutral, PublicKeyToken=b03f5f7
f11d50a3a'.'. [C:\Users\mikkelhegn\test\MyApp\MyApp.csproj]
CSC : warning CS8784: Generator 'LibraryImportGenerator' failed to initialize. It will not contribute to the output and compilation err
ors may occur as a result. Exception was of type 'TypeLoadException' with message 'Could not load type 'Microsoft.Interop.MarshallingGe
neratorFactoryKey`1' from assembly 'Microsoft.Interop.SourceGeneration, Version=9.0.10.30401, Culture=neutral, PublicKeyToken=b03f5f7f1
1d50a3a'.'. [C:\Users\mikkelhegn\test\MyApp\MyApp.csproj]
```
Contributor guide
Research direction
Follow the README instructions to create the sample project, then build it and capture the CS8784 warnings for VtableIndexStubGenerator and LibraryImportGenerator. Compare the generated build output with the reported TypeLoadException; done means the project still produces a runnable Wasm without these warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, wasm
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100