Open sammallon opened 5 months ago
Yes, I think this one should work under the current model. I'll take a look at reproducing it.
Hi, I just used dotnet Arcade with the great tool and had similar results.
global.json is also involved.
property MicrosoftBuildUtilitiesCoreVersion resolution:
When a property defined in a csproj is referenced in the Directory.Build.targets file, it still gets marked as unused in the csproj.
As this is the opposite direction of the problem in #169, and it sounds like it should be a simpler fix, creating as a separate item for tracking. Please feel free to close as a duplicate if it fits well enough in another ticket.
csproj defining the property:
Directory.build.targets referencing the property:
In case it matters, the Directory.Build.targets file is up a few folders in the hierarchy, with intermediate Directory.Build.targets that import the Directory.Build.targets files above: