You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set EnableDefaultCompileItems to true via a directive in a file-based app, in order to re-enable the default compilation items (like a regular project), you end up with a CS2002 warning being raised because the main file-based app .cs file is still explicitly included in the virtual project.
Add #:property EnableDefaultCompileItems=True to a file-based app
Build or run the file-based app
See CS2002 emitted for the app
We should consider conditioning the explicitly added compile item so that it's not added if EnableDefaultCompileItems is already true.