Skip to content

Commit

Permalink
Ensure WPF Dependency is 6.0.0+ instead of 6.0.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten authored Feb 17, 2022
1 parent 76dff4e commit a359960
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@
</None>
</ItemGroup>


<ItemGroup Condition="'$(TargetFramework.StartsWith(&quot;net6.0-windows&quot;))'=='true' AND '$(UseWPF)'=='true'">
<!-- Workaround for https://github.com/dotnet/core/issues/7176 - only applies to .NET 6 (not NET7+) -->
<FrameworkReference
Update="Microsoft.WindowsDesktop.App;Microsoft.WindowsDesktop.App.WPF;Microsoft.WindowsDesktop.App.WindowsForms"
TargetingPackVersion="6.0.0" />
</ItemGroup>

<!--
// This task disable doc warnings in the auto-generated XamlTypeInfo.g.cs file,
// and also hides the public class from intellisense.
Expand Down

0 comments on commit a359960

Please sign in to comment.