Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
.