Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
realigned method name
Browse files Browse the repository at this point in the history
  • Loading branch information
KSchlobohm committed Mar 26, 2021
1 parent 4e57218 commit 153e609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MSBuild.Abstractions/MSBuildConversionWorkspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ private bool IsSupportedProjectType(IProjectRootElement root, bool forceWeb, boo

if (!keepCurrentTFMs
&& root.PropertyGroups.Any(pg => pg.Properties.Any(ProjectPropertyHelpers.IsVisualBasicProject))
&& root.ItemGroups.Any(ig => ig.Items.Any(ProjectItemHelpers.IsUsingMyCustomToolNamespace)))
&& root.ItemGroups.Any(ig => ig.Items.Any(ProjectItemHelpers.IsReferencingSettingsSingleFileGenerator)))
{
Console.WriteLine($"{root.FullPath} uses code generators which will not be handled by try-convert. You can edit your vbproj to add support or remove these dependencies.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/MSBuild.Abstractions/ProjectItemHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static bool IsReferencingSystemWeb(ProjectItemElement item) =>
item.ElementName.Equals(MSBuildFacts.MSBuildReferenceName, StringComparison.OrdinalIgnoreCase)
&& item.Include.Equals(MSBuildFacts.SystemWebReferenceName, StringComparison.OrdinalIgnoreCase);

public static bool IsUsingMyCustomToolNamespace(ProjectItemElement item)
public static bool IsReferencingSettingsSingleFileGenerator(ProjectItemElement item)
{
var metadata = item.Children.FirstOrDefault(child => "Generator".Equals(child.ElementName, StringComparison.Ordinal) ) as ProjectMetadataElement;
return metadata is null ? false : metadata.Value.Equals("SettingsSingleFileGenerator", StringComparison.Ordinal);
Expand Down

0 comments on commit 153e609

Please sign in to comment.