|
3 | 3 | <OutputType>WinExe</OutputType> |
4 | 4 | <TargetFramework>net10.0</TargetFramework> |
5 | 5 | <ApplicationManifest>App.manifest</ApplicationManifest> |
6 | | - <ApplicationIcon>App.ico</ApplicationIcon> |
7 | 6 | <Version>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)\\..\\VERSION"))</Version> |
8 | 7 | <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> |
9 | 8 | <SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings> |
|
19 | 18 | <RepositoryType>Public</RepositoryType> |
20 | 19 | </PropertyGroup> |
21 | 20 |
|
| 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 | + |
22 | 29 | <PropertyGroup Condition="'$(Configuration)' == 'Release' and '$(DisableAOT)' != 'true'"> |
23 | 30 | <PublishAot>true</PublishAot> |
24 | 31 | <PublishTrimmed>true</PublishTrimmed> |
|
39 | 46 |
|
40 | 47 | <ItemGroup> |
41 | 48 | <AvaloniaResource Include="App.ico" /> |
| 49 | + <AvaloniaResource Include="AppDev.ico" /> |
42 | 50 | <AvaloniaResource Include="Resources/Fonts/*" /> |
43 | 51 | <AvaloniaResource Include="Resources/Grammars/*" /> |
44 | 52 | <AvaloniaResource Include="Resources/Images/*" /> |
|
71 | 79 |
|
72 | 80 | <Target BeforeTargets="GetAssemblyAttributes" Name="GenVersionInfo"> |
73 | 81 | <Exec Command="git describe --abbrev=8 --dirty" ConsoleToMsBuild="True" IgnoreExitCode="true"> |
74 | | - <Output PropertyName="FriendlyVersion" TaskParameter="ConsoleOutput"/> |
| 82 | + <Output PropertyName="FriendlyVersion" TaskParameter="ConsoleOutput" /> |
75 | 83 | </Exec> |
76 | 84 |
|
77 | 85 | <ItemGroup> |
78 | | - <AssemblyMetadata Include="FriendlyVersion" Value="$([System.String]::Copy('$(FriendlyVersion)').Replace('g', '').Trim())"/> |
| 86 | + <AssemblyMetadata Include="FriendlyVersion" Value="$([System.String]::Copy('$(FriendlyVersion)').Replace('g', '').Trim())" /> |
79 | 87 | </ItemGroup> |
80 | 88 | </Target> |
81 | 89 | </Project> |
|
0 commit comments