We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<!-- Inline task to generate combinations -->
(); foreach (var rid in RuntimeIdentifiers) { foreach (var tf in TargetFrameworks) { string combination = $"RuntimeIdentifier={rid.ItemSpec};TargetFramework={tf.ItemSpec}"; combinations.Add(new Microsoft.Build.Utilities.TaskItem(combination)); } } Combinations = combinations.ToArray(); ]]>
<PropertyGroup> <RuntimeIdentifiersProperty Condition="'$(RuntimeIdentifier)' != ''">$(RuntimeIdentifier)</RuntimeIdentifiersProperty> <RuntimeIdentifiersProperty Condition="'$(RuntimeIdentifiers)' != ''">$(RuntimeIdentifiers)</RuntimeIdentifiersProperty> <TargetFrameworksProperty Condition="'$(TargetFramework)' != ''">$(TargetFramework)</TargetFrameworksProperty> <TargetFrameworksProperty Condition="'$(TargetFrameworks)' != ''">$(TargetFrameworks)</TargetFrameworksProperty> </PropertyGroup> <ItemGroup> <DefinedRuntimeIdentifier Include="$(RuntimeIdentifiersProperty.Split(';'))"/> <DefinedTargetFramework Include="$(TargetFrameworksProperty.Split(';'))"/> </ItemGroup> <GenerateCombinations RuntimeIdentifiers="@(DefinedRuntimeIdentifier)" TargetFrameworks="@(DefinedTargetFramework)"> <Output TaskParameter="Combinations" ItemName="AllCombinations"/> </GenerateCombinations> <MSBuild Projects="$(MSBuildProjectFile)" Targets="Restore" Properties="DefaultTarget=true;RuntimeIdentifiers=$(RuntimeIdentifiersProperty);TargetFrameworks=$(TargetFrameworksProperty)" /> <MSBuild Projects="$(MSBuildProjectFile)" Targets="Clean;Build;Publish" Properties="DefaultTarget=true;%(AllCombinations.Identity)" />
The text was updated successfully, but these errors were encountered:
carsten-riedel
No branches or pull requests
(); foreach (var rid in RuntimeIdentifiers) { foreach (var tf in TargetFrameworks) { string combination = $"RuntimeIdentifier={rid.ItemSpec};TargetFramework={tf.ItemSpec}"; combinations.Add(new Microsoft.Build.Utilities.TaskItem(combination)); } } Combinations = combinations.ToArray(); ]]>
The text was updated successfully, but these errors were encountered: