|
@@ -1,30 +1,35 @@
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
- <PropertyGroup>
|
|
|
- <OutputType>WinExe</OutputType>
|
|
|
- <!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
|
|
|
- One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
|
|
|
- <TargetFramework>net8.0</TargetFramework>
|
|
|
- <Nullable>enable</Nullable>
|
|
|
- <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
|
- <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
|
- <RootNamespace>PixiEditor.AvaloniaUI.Desktop</RootNamespace>
|
|
|
- </PropertyGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <OutputType>WinExe</OutputType>
|
|
|
+ <!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
|
|
|
+ One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
|
|
|
+ <TargetFramework>net8.0</TargetFramework>
|
|
|
+ <Nullable>enable</Nullable>
|
|
|
+ <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
|
+ <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
|
+ <RootNamespace>PixiEditor.Desktop</RootNamespace>
|
|
|
+ </PropertyGroup>
|
|
|
|
|
|
- <PropertyGroup>
|
|
|
- <ApplicationManifest>app.manifest</ApplicationManifest>
|
|
|
- </PropertyGroup>
|
|
|
+ <PropertyGroup>
|
|
|
+ <ApplicationManifest>app.manifest</ApplicationManifest>
|
|
|
+ </PropertyGroup>
|
|
|
|
|
|
- <ItemGroup>
|
|
|
- <PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)"/>
|
|
|
- <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
|
|
- <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)"/>
|
|
|
- </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)"/>
|
|
|
+ <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
|
|
+ <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)"/>
|
|
|
+ </ItemGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
|
- <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
|
|
|
+ <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2"/>
|
|
|
</ItemGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
|
- <ProjectReference Include="..\PixiEditor\PixiEditor.csproj" />
|
|
|
+ <ProjectReference Include="..\PixiEditor\PixiEditor.csproj"/>
|
|
|
</ItemGroup>
|
|
|
+
|
|
|
+ <Target Name="Rename" AfterTargets="AfterBuild">
|
|
|
+ <Move SourceFiles="$(OutDir)PixiEditor.Desktop.exe" DestinationFiles="$(OutDir)PixiEditor.exe" />
|
|
|
+ <Message Text="Renamed executable file." Importance="high" />
|
|
|
+ </Target>
|
|
|
</Project>
|