-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create BasicSimplifyTransformationSet * Add more tracing to transformations and topological sort * Fix wizard logic to use correct transformation sets
- Loading branch information
1 parent
20e717a
commit df8d833
Showing
11 changed files
with
167 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
tab_width = 4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Project2015To2017.Core/Transforms/BasicSimplifyTransformationSet.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Project2015To2017.Transforms | ||
{ | ||
public sealed class BasicSimplifyTransformationSet : ITransformationSet | ||
{ | ||
private readonly Version targetVisualStudioVersion; | ||
|
||
public BasicSimplifyTransformationSet(Version targetVisualStudioVersion) | ||
{ | ||
this.targetVisualStudioVersion = targetVisualStudioVersion; | ||
} | ||
|
||
public IReadOnlyCollection<ITransformation> Transformations( | ||
ILogger logger, | ||
ConversionOptions conversionOptions) | ||
{ | ||
return new ITransformation[] | ||
{ | ||
new PropertyDeduplicationTransformation(), | ||
new PropertySimplificationTransformation(targetVisualStudioVersion), | ||
new PrimaryProjectPropertiesUpdateTransformation(), | ||
new EmptyGroupRemoveTransformation(), | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.