-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Labels
Description
Consider this part of WorkAround.targets
<!-- Workaround for https://github.com/Microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>This effectively forces $(GenerateBindingRedirectsOutputType) to true whenever $(AutoGenerateBindingRedirects) is true. MSBuild though made a change that defaults $(AutoGenerateBindingRedirects) to true whenever a project targets net472 or a later .NET Framework TFM. Together this means that when using arcade and targeting modern .NET Framework TFM it is generating app.config files even though that is likely not the intent of the author.
If you want to get a sense of the confusion this can cause consumers as well as MSBuild team members you can look at the following internal conversation
Reactions are currently unavailable