[Feature Request]: Warns a user if they use Restore as an explicit target (/t:Restore;Build) instead of the /restore flag #9690
Labels
backlog
Feature Request
Feature: Warning Waves
Warnings to enable in opt-in waves. Formerly "strict mode".
Priority:2
Work that is important, but not critical for the release
triaged
Summary
We should warn users when they use the Restore target specifically (
-t:Restore
) instead of/restore
during a build - this is very often a mistake and we should point users to the correct version.Background and Motivation
Users of the new CLI-based MSBuild property/item syntax often run into issues with uninitialized repositories, so they add
-t:Restore
and then wonder why their tooling only works after the first run. This is the core reason, and we should guide them to using the switch.Proposed Feature
When
Alternative Designs
No response
The text was updated successfully, but these errors were encountered: