diff --git a/src/Microsoft.DotNet.ProjectJsonMigration/DefaultMigrationRuleSet.cs b/src/Microsoft.DotNet.ProjectJsonMigration/DefaultMigrationRuleSet.cs index 537bb68a0..6b93926f8 100644 --- a/src/Microsoft.DotNet.ProjectJsonMigration/DefaultMigrationRuleSet.cs +++ b/src/Microsoft.DotNet.ProjectJsonMigration/DefaultMigrationRuleSet.cs @@ -20,7 +20,6 @@ namespace Microsoft.DotNet.ProjectJsonMigration new MigratePackageDependenciesAndToolsRule(), new MigrateConfigurationsRule(), new MigrateScriptsRule(), - new WorkaroundOptionsRule(), new SaveOutputProjectRule() }; diff --git a/src/Microsoft.DotNet.ProjectJsonMigration/Rules/WorkaroundOptionsRule.cs b/src/Microsoft.DotNet.ProjectJsonMigration/Rules/WorkaroundOptionsRule.cs deleted file mode 100644 index 8690dc3aa..000000000 --- a/src/Microsoft.DotNet.ProjectJsonMigration/Rules/WorkaroundOptionsRule.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using Microsoft.DotNet.ProjectJsonMigration.Transforms; - -namespace Microsoft.DotNet.ProjectJsonMigration.Rules -{ - public class WorkaroundOptionsRule : IMigrationRule - { - private readonly ITransformApplicator _transformApplicator; - - private AddPropertyTransform ProjectLockFileTransform => - new AddPropertyTransform("ProjectLockFile", - frameworks => "$(MSBuildProjectDirectory)/project.lock.json", - frameworks => true); - - public WorkaroundOptionsRule(ITransformApplicator transformApplicator = null) - { - _transformApplicator = transformApplicator ?? new TransformApplicator(); - } - - public void Apply(MigrationSettings migrationSettings, MigrationRuleInputs migrationRuleInputs) - { - var propertyGroup = migrationRuleInputs.CommonPropertyGroup; - - _transformApplicator.Execute(ProjectLockFileTransform.Transform(string.Empty), propertyGroup); - } - } -} \ No newline at end of file