When MSBuild evaluates the Substring call on this line:
|
<Compile Update="@(Compile->WithMetadataValue('DefiningProjectName', '$(MSBuildProjectName)'))" Link="external/roslyn/$([System.String]::new('%(Identity)').Substring(23))" /> |
There's a first-chance exception because the literal string is %(Identity) (not expanded), so calling Substring(23) on it throws