bytecodealliance / bytecodealliance/componentize-dotnet

Error when running in Visual Studio

オープン
#76 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
147
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

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:







コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

示されている .csproj のパッケージ参照から始め、コマンド ラインでの restore と Visual Studio での restore を比較します。次に、報告された行にある Microsoft.NET.RuntimeIdentifierInference.targets と、SDK パッケージの restore/build 統合を調査します。Visual Studio が追加の Microsoft.DotNet.ILCompiler.LLVM 更新なしで、元の参照を使用して restore と build を完了できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, wasm
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。