Files
AvaloniaDesktopNotifications/DesktopNotifications.Windows/DesktopNotifications.Windows.csproj
T
Matteo Cominetti 9c6607f1c5 nuget fix
2023-05-29 17:25:48 +01:00

36 lines
1.5 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<!--Note: Dotnet currently does not allow to build on non-windows platforms when a windows TFM is specified-->
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0-windows10.0.17763.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>A cross-platform C# library for native desktop "toast" notifications.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/pr8x/DesktopNotifications</PackageProjectUrl>
</PropertyGroup>
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Compile Remove="NullImpl_WindowsNotificationManager.cs" />
</ItemGroup>
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<Compile Remove="ShellLink.cs" />
<Compile Remove="WindowsNotificationManager.cs" />
<Compile Remove="WindowsApplicationContext.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DesktopNotifications\DesktopNotifications.csproj" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Condition="'$(TargetFramework)' == 'netstandard2.0'" Version="10.0.22621.755" />
</ItemGroup>
</Project>