Skip to content

Commit

Permalink
Merge pull request #1066 from jmbeach/dont-parse-asp-websites
Browse files Browse the repository at this point in the history
don't parse ASP.NET websites
  • Loading branch information
david-driscoll authored Jan 11, 2018
2 parents e00f370 + 79e614b commit 2852b9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OmniSharp.MSBuild/ProjectSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private IEnumerable<string> GetProjectPathsFromSolution(string solutionFilePath)

foreach (var project in solutionFile.Projects)
{
if (project.IsSolutionFolder)
if (project.IsSolutionFolder || project.IsAspWebsite())
{
continue;
}
Expand Down
6 changes: 6 additions & 0 deletions src/OmniSharp.MSBuild/SolutionParsing/ProjectBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ private ProjectBlock(string projectTypeGuid, string projectName, string relative
Sections = sections;
}

public bool IsAspWebsite()
{
var match = Regex.Match(RelativePath, "http://", RegexOptions.IgnoreCase);
return match.Success;
}

public static ProjectBlock Parse(string headerLine, Scanner scanner)
{
var match = s_lazyProjectHeader.Value.Match(headerLine);
Expand Down

0 comments on commit 2852b9f

Please sign in to comment.