Skip to content

Commit

Permalink
Solution Viewer: ASP.NET Detection; Implemented search by project name.
Browse files Browse the repository at this point in the history
Closes #16. Closes #13.
  • Loading branch information
DmitryGolubenkov committed Jun 10, 2023
1 parent 7a412f7 commit d739bf6
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task<ProjectData> GetProjectData(string path)

var projectName = Path.GetFileNameWithoutExtension(path);


var isAspNetProject = xml.Root.Attribute("Sdk")?.Value == "Microsoft.NET.Sdk.Web";
var targetFramework = xml.Root.Descendants().Where(element => element.Name == "TargetFramework" || element.Name == "TargetFrameworks").FirstOrDefault();
var version = targetFramework is not null ? ParseDotNetVersion(targetFramework.Value) : null;

Expand All @@ -33,7 +33,8 @@ public async Task<ProjectData> GetProjectData(string path)
ProjectName = projectName,
DotNetVersion = version,
AbsolutePathToProjFile = path,
RelativePath = relativePath
RelativePath = relativePath,
IsAspNetProject = isAspNetProject
};

Log.Information($"Project data: {projectData}");
Expand Down
105 changes: 62 additions & 43 deletions src/SharpDockerizer.AvaloniaUI/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/SharpDockerizer.AvaloniaUI/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,10 @@
<data name="RestartRequiredWarningText" xml:space="preserve">
<value>Requires app restart to fully take effect.</value>
</data>
<data name="SearchSolutionText" xml:space="preserve">
<value>Search</value>
</data>
<data name="ShowAllProjectsLabel" xml:space="preserve">
<value>Show all projects</value>
</data>
</root>
Loading

0 comments on commit d739bf6

Please sign in to comment.