diff --git a/src/Microsoft.DotNet.ProjectJsonMigration/Rules/MigrateTFMRule.cs b/src/Microsoft.DotNet.ProjectJsonMigration/Rules/MigrateTFMRule.cs index 59db57adf..4a94c222a 100644 --- a/src/Microsoft.DotNet.ProjectJsonMigration/Rules/MigrateTFMRule.cs +++ b/src/Microsoft.DotNet.ProjectJsonMigration/Rules/MigrateTFMRule.cs @@ -28,6 +28,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Rules var propertyGroup = migrationRuleInputs.CommonPropertyGroup; CleanExistingProperties(csproj); + CleanExistingPackageReferences(csproj); _transformApplicator.Execute( FrameworksTransform.Transform(migrationRuleInputs.ProjectContexts.Select(p => p.TargetFramework)),