File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,6 +261,12 @@ public override void OnFrameworkInitializationCompleted()
261261 e . Cancel = true ;
262262 } ) ;
263263
264+ #if DEV_BUILD
265+ var devIcon = new WindowIcon (
266+ Avalonia . Platform . AssetLoader . Open ( new Uri ( "avares://SourceGit/AppDev.ico" ) ) ) ;
267+ Window . WindowOpenedEvent . AddClassHandler < Window > ( ( w , _ ) => w . Icon = devIcon ) ;
268+ #endif
269+
264270 if ( TryLaunchAsFileHistoryViewer ( desktop ) )
265271 return ;
266272
Original file line number Diff line number Diff line change 33 <OutputType >WinExe</OutputType >
44 <TargetFramework >net10.0</TargetFramework >
55 <ApplicationManifest >App.manifest</ApplicationManifest >
6- <ApplicationIcon >App.ico</ApplicationIcon >
76 <Version >$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)\\..\\VERSION"))</Version >
87 <AvaloniaUseCompiledBindingsByDefault >true</AvaloniaUseCompiledBindingsByDefault >
98 <SuppressTrimAnalysisWarnings >true</SuppressTrimAnalysisWarnings >
1918 <RepositoryType >Public</RepositoryType >
2019 </PropertyGroup >
2120
21+ <PropertyGroup Condition =" '$(Configuration)' == 'Release'" >
22+ <ApplicationIcon >App.ico</ApplicationIcon >
23+ </PropertyGroup >
24+ <PropertyGroup Condition =" '$(Configuration)' != 'Release'" >
25+ <ApplicationIcon >AppDev.ico</ApplicationIcon >
26+ <DefineConstants >$(DefineConstants);DEV_BUILD</DefineConstants >
27+ </PropertyGroup >
28+
2229 <PropertyGroup Condition =" '$(Configuration)' == 'Release' and '$(DisableAOT)' != 'true'" >
2330 <PublishAot >true</PublishAot >
2431 <PublishTrimmed >true</PublishTrimmed >
3946
4047 <ItemGroup >
4148 <AvaloniaResource Include =" App.ico" />
49+ <AvaloniaResource Include =" AppDev.ico" />
4250 <AvaloniaResource Include =" Resources/Fonts/*" />
4351 <AvaloniaResource Include =" Resources/Grammars/*" />
4452 <AvaloniaResource Include =" Resources/Images/*" />
You can’t perform that action at this time.
0 commit comments