Skip to content

Remove VSTHRD003 warnings for readonly tasks defined in another assembly - #574

Merged
Andrew Arnott (AArnott) merged 2 commits into
microsoft:v16.4from
AArnott:fixVSTHRD003
Dec 18, 2019
Merged

Remove VSTHRD003 warnings for readonly tasks defined in another assembly#574
Andrew Arnott (AArnott) merged 2 commits into
microsoft:v16.4from
AArnott:fixVSTHRD003

Conversation

@AArnott

Copy link
Copy Markdown
Member

We tried to avoid reporting VSTHRD003 diagnostics for readonly Task fields defined in other projects/assemblies, but failed to do so properly. This fixes that to dramatically reduce false warnings typically associated with precompleted tasks such as SpecialTasks.TrueTask.

It also refines the wording in the diagnostic to reduce confusion.

There were some cases where the syntax reference isn't available in source at all, and we were mistakenly reporting the warning in that case.
@AArnott
Andrew Arnott (AArnott) merged commit c442248 into microsoft:v16.4 Dec 18, 2019
@AArnott
Andrew Arnott (AArnott) deleted the fixVSTHRD003 branch December 18, 2019 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants