mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
215 stars 26 forks source link

whitespace around `IncludeAssets` values results in false unknown value error #109

Closed mrlacey closed 12 months ago

mrlacey commented 1 year ago

As per the below screenshot

image

Simplified repro

<PackageReference Include="coverlet.collector" Version="3.2.0">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build</IncludeAssets>
</PackageReference>

This complains that " build" (including the space characters before the 'b') is an unknown value. Having the space is acceptable and doesn't actually cause any issue though.