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
.
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.