bytecodealliance / bytecodealliance/componentize-dotnet
Error when running in Visual Studio
- Langage dominant
- C#
- Étoiles
- 147
- Forks
- 18
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
With the following csproj file:
```
```
I can build using dotnet build at the command line (or terminal in VS Code), but in Visual Studio, I get the following error:
```
Failed to restore C:\repo\componentize-dotnet-demo\componentize-dotnet-demo\Ais.Net.Receiver.Host.Wasi\Ais.Net.Receiver.Host.Wasi.csproj (in 781 ms).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
1>C:\Program Files\dotnet\sdk\9.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(237,5): error NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.
1>Done building project "Ais.Net.Receiver.Host.Wasi.csproj" -- FAILED.
```
But if I add the following package in, it builds fine in Visual Studio:
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par les références de packages .csproj affichées et comparez la restauration en ligne de commande à celle de Visual Studio, puis examinez Microsoft.NET.RuntimeIdentifierInference.targets à la ligne signalée ainsi que l’intégration restore/build du package SDK. C’est terminé lorsque Visual Studio restaure et génère avec les références d’origine, sans la mise à jour supplémentaire de Microsoft.DotNet.ILCompiler.LLVM.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, wasm
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100