bytecodealliance / bytecodealliance/componentize-dotnet

Error when running in Visual Studio

Aperta
#76 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
147
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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:







Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the shown .csproj package references and compare command-line versus Visual Studio restore, then inspect Microsoft.NET.RuntimeIdentifierInference.targets at the reported line and the SDK package's restore/build integration. Done means Visual Studio restores and builds with the original references, without the additional Microsoft.DotNet.ILCompiler.LLVM update.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, wasm
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.