WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bb8d470

Browse files
authored
Merge pull request #21538 from unoplatform/mergify/bp/release/stable/6.3/pr-21537
docs(troubleshooting): Add guidance to use `dotnet workload repair` (backport #21537)
2 parents 1d6c922 + 4df942c commit bb8d470

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/articles/common-issues-all-ides.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,13 @@ For instance:
7171
## Abnormally long build times when using Roslyn analyzers
7272

7373
It is a good practice to use Roslyn analyzers to validate your code during compilation, but some generators may have difficulty handling the source generated by the Uno Platform (one notable example is [GCop](https://github.com/Geeksltd/GCop)). You may need to disable those for Uno projects or get an update from the analyzer's vendor.
74+
75+
## Build errors with .NET workloads
76+
77+
If you encounter errors such as: `error MSB4022: The result "" of evaluating the value "$(MonoTargetsTasksAssemblyPath)" of the "AssemblyFile" attribute in element <UsingTask> is not valid.`, this usually indicates a problem with your .NET workloads installation. If `uno-check` does not report issues but your project still fails to build, try running:
78+
79+
```dotnetcli
80+
dotnet workload repair
81+
```
82+
83+
This command can repair missing or misconfigured workload components.

0 commit comments

Comments
 (0)