NETSDK1147: Missing workload for specified target framework
This error is caused by trying to compile a project that requires an optional workload, but you don't have the workload installed. The full error message is similar to the following example:
NETSDK1147: To build this project, the following workloads must be installed: <workload ID>
To install these workloads, run the following command: dotnet workload install <workload ID>
For example, if your project targets net6.0-android
, you might have to run the dotnet workload install
command and specify workload ID android
:
dotnet workload install android
For more information, see dotnet workload install
.
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา