bytecodealliance / bytecodealliance/componentize-dotnet
Error when running in Visual Studio
- Ngôn ngữ chính
- C#
- Star
- 147
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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:
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với các tham chiếu gói .csproj được hiển thị và so sánh restore bằng dòng lệnh với restore bằng Visual Studio, sau đó kiểm tra Microsoft.NET.RuntimeIdentifierInference.targets tại dòng được báo cáo và phần tích hợp restore/build của gói SDK. Hoàn tất khi Visual Studio restore và build với các tham chiếu ban đầu mà không có bản cập nhật Microsoft.DotNet.ILCompiler.LLVM bổ sung.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, wasm
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100