35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<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 net9.0-windows TFM, one for MacOS with net9.0-macos and one with net9.0 TFM for Linux.-->
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia.Desktop" Version="11.2.0" />
|
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\PSCHelpdesk\PSCHelpdesk.csproj"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="Avalonia.Controls">
|
|
<HintPath>..\..\..\..\.nuget\packages\avalonia\11.2.0\ref\net8.0\Avalonia.Controls.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
|
<Exec Command="call postbuild.bat $(SolutionDir) $(SolutionDir)\PSCHelpdesk\PSCHelpdesk.Desktop\bin\Debug\net9.0\plugins" />
|
|
</Target>
|
|
</Project>
|