remove lock file workaround
This commit is contained in:
parent
b38f644347
commit
d0b28bc7ad
2 changed files with 0 additions and 30 deletions
|
@ -20,7 +20,6 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
new MigratePackageDependenciesAndToolsRule(),
|
||||
new MigrateConfigurationsRule(),
|
||||
new MigrateScriptsRule(),
|
||||
new WorkaroundOptionsRule(),
|
||||
new SaveOutputProjectRule()
|
||||
};
|
||||
|
||||
|
|
|
@ -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<object> ProjectLockFileTransform =>
|
||||
new AddPropertyTransform<object>("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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue