This commit is contained in:
Alexandre Zollinger Chohfi 2019-02-07 14:32:56 -08:00
Родитель 96e01660dd
Коммит 4afd5c8e9e
3 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<Project>
<Choose>
<When Condition="'$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.16299' or '$(TargetFramework)' == 'native'">
<When Condition="'$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.16299' or '$(TargetFramework)' == 'native' or '$(TargetFramework)' == 'net461'">
<!-- UAP versions for uap10.0 where TPMV isn't implied -->
<PropertyGroup>
<TargetPlatformVersion>10.0.$(DefaultTargetPlatformVersion).0</TargetPlatformVersion>

Просмотреть файл

@ -18,7 +18,8 @@ namespace Microsoft.Toolkit.Uwp.Notifications
/// </summary>
public class DesktopNotificationManagerCompat
{
private const string TOAST_ACTIVATED_LAUNCH_ARG = "-ToastActivated";
// Todo: Improve name to for .net
public const string TOAST_ACTIVATED_LAUNCH_ARG = "-ToastActivated";
private static bool _registeredAumidAndComServer;
private static string _aumid;

Просмотреть файл

@ -10,10 +10,6 @@ Supports adaptive tiles and adaptive/interactive toasts for Windows 10. It is pa
<ExtrasImplicitPlatformPackageIsPrivate Condition=" '$(TargetFramework)' == 'native' ">true</ExtrasImplicitPlatformPackageIsPrivate>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net461'">
<TargetPlatformVersion>10.0.$(DefaultTargetPlatformVersion).0</TargetPlatformVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'native' ">
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.1.5" />
</ItemGroup>
@ -33,7 +29,12 @@ Supports adaptive tiles and adaptive/interactive toasts for Windows 10. It is pa
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
<Reference Include="System" />
<Reference Include="System.Runtime" />
<Reference Include="Windows.UI" />
<Reference Include="Windows">
<HintPath Condition="Exists('$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd')">$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd</HintPath>
<HintPath Condition="Exists('$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd')">$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd</HintPath>
<IsWinMDFile>true</IsWinMDFile>
<Private>False</Private>
</Reference>
</ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'native'">