Skip to content

Commit

Permalink
feat: get name
Browse files Browse the repository at this point in the history
  • Loading branch information
minkostaev committed May 25, 2024
1 parent fcfe8ef commit f5b0994
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
#dotnet publish ShortcutsGrid.csproj /p:PublishProfile="Win System"
#copy "bin\Win System\net8.0-windows\publish\win-x64\Win System.exe" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Win Admin.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Win System.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Virtual Machines.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
$exes = "Win System","Win Admin","Office","Utils","Browsers","Connections","Disk Tools","Audio","Image","Video","Hardware","Virtual Machines","Programming","Games"
foreach ($name in $exes)
{ dotnet publish ShortcutsGrid.csproj /p:PublishProfile="$name"
Expand Down
2 changes: 1 addition & 1 deletion ShortcutsGrid/Models/AppValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static class AppValues
public static string? ExeDir => Environment.CurrentDirectory;
public static string? ExeName => Path.GetFileNameWithoutExtension(ExePath);

public static string? ProjectName => Assembly.GetEntryAssembly()?.GetName().Name;
public static string? ProjectName => AppDomain.CurrentDomain.FriendlyName;//"ShortcutsGrid";

public static string? AppVersion
{
Expand Down
4 changes: 2 additions & 2 deletions ShortcutsGrid/Resources/ListCsv/Utils.csv

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ShortcutsGrid/ShortcutsGrid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<UseWPF>true</UseWPF>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<ApplicationIcon>Resources\web-browser-128.ico</ApplicationIcon>
<AssemblyVersion>1.3.5.0</AssemblyVersion>
<FileVersion>1.3.5.0</FileVersion>
<VersionPrefix>1.3.5</VersionPrefix>
<AssemblyVersion>1.3.6.0</AssemblyVersion>
<FileVersion>1.3.6.0</FileVersion>
<VersionPrefix>1.3.6</VersionPrefix>
<VersionSuffix>$([System.DateTime]::UtcNow.ToString(yyyy-MM-dd))</VersionSuffix>
</PropertyGroup>

Expand Down

0 comments on commit f5b0994

Please sign in to comment.