bytecodealliance / bytecodealliance/componentize-dotnet

Build warning - CSC : warning CS8784

Ouverte
#23 1 commentaire 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
147
Forks
18
Métriques de merge des PR
Aucune PR mergée en 30 j

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]
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Suivez les instructions du README pour créer le projet d’exemple, puis compilez-le et capturez les avertissements CS8784 pour VtableIndexStubGenerator et LibraryImportGenerator. Comparez la sortie de build générée avec la TypeLoadException signalée ; la tâche est terminée si le projet produit toujours un Wasm exécutable sans ces avertissements.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp, wasm
Domaine
build-system, tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.