I'm trying to use MAT with a package I'm building (in C#). I can enable MAT when my package targets only one framework (for exemple .NET core 3.1)
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<NeutralLanguage>fr</NeutralLanguage>
</PropertyGroup>
but if I choose to target multi framework, the option is disabled
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<NeutralLanguage>fr</NeutralLanguage>
</PropertyGroup>
(note the 's' at the end of framework)
Did I miss something?
I did an experiment and I found that you have to have a single
<TargetFramework>setting only:As soon as you have the language-specific
.resxand.xlffiles you can restore the multi-targeting by setting<TargetFrameworks>node.I successfully
when multi-targeting was on.