Closed Noemata closed 3 years ago
Look for NU1702 below ...
In NotificationFlyout.Wpf.UI.Controls.csproj:
<Project Sdk="MSBuild.Sdk.Extras"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <UseWPF>true</UseWPF> <AssetTargetFallback>uap10.0.19041</AssetTargetFallback> <Platforms>AnyCPU;x64</Platforms> <MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj" /> <ProjectReference Include="..\NotificationFlyout.Wpf.UI\NotificationFlyout.Wpf.UI.csproj" /> </ItemGroup> <ItemGroup> <PackageReference Update="Microsoft.VCRTForwarders.140" Version="1.0.7" /> </ItemGroup> </Project>
And in NotificationFlyoutSample.Host.csproj:
<Project Sdk="MSBuild.Sdk.Extras"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <UseWPF>true</UseWPF> <Platforms>x64</Platforms> <AssetTargetFallback>uap10.0.19041</AssetTargetFallback> <StartupObject>NotificationFlyoutSample.Host.Program</StartupObject> <EnableTypeInfoReflection>false</EnableTypeInfoReflection> <EnableXBindDiagnostics>false</EnableXBindDiagnostics> <MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages> </PropertyGroup> <ItemGroup> <None Remove="Assets\Icon-Light.ico" /> <None Remove="Assets\Icon.ico" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\src\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj" /> <ProjectReference Include="..\..\src\NotificationFlyout.Wpf.UI.Controls\NotificationFlyout.Wpf.UI.Controls.csproj" /> <ProjectReference Include="..\..\src\NotificationFlyout.Wpf.UI\NotificationFlyout.Wpf.UI.csproj" /> <ProjectReference Include="..\NotificationFlyoutSample\NotificationFlyoutSample.csproj" /> </ItemGroup> <ItemGroup> <Resource Include="Assets\Icon-Light.ico" /> <Resource Include="Assets\Icon.ico" /> </ItemGroup> </Project>
Also, you should probably use MSBuild.Sdk.Extras throughout.
Thanks. Fixed in https://github.com/TheXamlGuy/NotificationFlyout/commit/72983bef6ad22f2be5719d46fe703ee1a0a9bb43.
Look for NU1702 below ...
In NotificationFlyout.Wpf.UI.Controls.csproj:
And in NotificationFlyoutSample.Host.csproj:
Also, you should probably use MSBuild.Sdk.Extras throughout.