Uh oh!
There was an error while loading. Please reload this page.
Simplify target to enable config binding src generator from NuGet package, ensure it runs for all TFMs, and rename enabling property - #84379
Conversation
ghost
commented
Apr 5, 2023
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue Details
|
Uh oh!
There was an error while loading. Please reload this page.
923793c to
98917deCompare98917de to
1994914CompareUh oh!
There was an error while loading. Please reload this page.
ericstj
left a comment
There was a problem hiding this comment.
LGTM - just a non-blocking nit.
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <Content Include="buildTransitive\$(MSBuildProjectName).*" |
There was a problem hiding this comment.
| <ContentInclude="buildTransitive\$(MSBuildProjectName).*" | |
| <ContentInclude="buildTransitive\$(PackageId).targets" |
nit: I tend to avoid a wildcard unless it's needed since it hurts evaluation perf. nit: $(PackageId) should be used rather than $(MSBuildProjectName) since they can differ, but the PackageID is the one that needs to match.
There was a problem hiding this comment.
Maybe we could update the docs (and the other places that do this as well) to be consistent across the repo?
runtime/docs/coding-guidelines/libraries-packaging.md
Lines 130 to 137 in 4f4dd93
I believe the * is there to support both .props and .targets. But @ViktorHofer would know for sure.
Uh oh!
There was an error while loading. Please reload this page.
The Line 232 in 15c7022 This is undesirable and can lead to undefined behavior. The latest commit 9eab1ce fixes this issue, enforcing that the removal target runs for all TFMs & also emitting the compat warning for unsupported TFMs. This fix is hardcoded for now. We need to also fix it for the other source-generator targets for multi-targeting and disabling, and come up with the right templating across all the targets & packages. cc @ViktorHofer |
Uh oh!
There was an error while loading. Please reload this page.
| </Target> | ||
| <Target Name="NETStandardCompatError_Microsoft_Extensions_Configuration_Binder" | ||
| Condition="'$(SuppressTfmSupportBuildWarnings)' == ''"> |
There was a problem hiding this comment.
Please change this to '$(SuppressTfmSupportBuildWarnings)' != 'true'. While at it, can you please also change that here:
Line 207 in c8ec3fd
| </ItemGroup> | ||
| </Target> | ||
| <Target Name="NETStandardCompatError_Microsoft_Extensions_Configuration_Binder" |
There was a problem hiding this comment.
Please file a tracking issue to discuss how to support both the NETStandardCompatError infrastructure and target framework agnostic msbuild infrastructure.
ViktorHofer
left a comment
There was a problem hiding this comment.
LGTM aside from two comments.
EnableMicrosoftExtensionsConfigurationBinderGeneratortoEnableConfigurationBindingGenerator(fyi @eerhardt).