* [release/5.0] Expose all references when not restoring
- backport of 0b0bed3eb89a (#32718)
* Expose all references when not restoring
- use empty `$(MSBuildRestoreSessionId)` to determine when contributing to dependency graph
* Remove extra direct references
- should now be part of the dependency graph automatically
* Avoid errors about non-shared Fx references
- not a problem unless executing `restore` target
* Special case source builds