only emit TargetFrameworks for multitfm
This commit is contained in:
parent
9d46a19c59
commit
e8df0e712e
1 changed files with 6 additions and 3 deletions
|
@ -37,9 +37,12 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Rules
|
||||||
|
|
||||||
CleanExistingProperties(csproj);
|
CleanExistingProperties(csproj);
|
||||||
|
|
||||||
_transformApplicator.Execute(
|
if (migrationRuleInputs.ProjectContexts.Count() > 1)
|
||||||
FrameworksTransform.Transform(migrationRuleInputs.ProjectContexts.Select(p => p.TargetFramework)),
|
{
|
||||||
propertyGroup);
|
_transformApplicator.Execute(
|
||||||
|
FrameworksTransform.Transform(migrationRuleInputs.ProjectContexts.Select(p => p.TargetFramework)),
|
||||||
|
propertyGroup);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var transform in _transforms)
|
foreach (var transform in _transforms)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue