See https://github.com/dotnet/msbuild/issues/9512 The officially supported way of achieving what would be needed for VS+CLI builds is: - [ ] Change emitted targets output path to $(MSBuildProjectExtensionsPath)$(MSBuildProjectFile).smallsharp.targets - [ ] Document that users will need to set ImportProjectExtensionProps/ImportProjectExtensionTargets to `true` - [ ] Warn (error?) if the above properties aren't set. <!-- sl --> [](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) [](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) <!-- sl -->