ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
204 stars 61 forks source link

Nuget includes unwanted WinUI components when targeting specific TargetFramework #122

Closed OWiger closed 1 month ago

OWiger commented 1 month ago

I need to have a specific TargetFramework set because of other nuget reference issues.

But then XAML.MapControl.MapProjections drags MapControl.WinUI .dll into my WPF project when I need MapControl.WPF to be loaded instead.

<PropertyGroup>
  <TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
  <RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
  <ImplicitUsings>enable</ImplicitUsings>
  <Nullable>enable</Nullable>
  <Platforms>x64</Platforms>
  <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  <UseWindowsForms>true</UseWindowsForms>
  <UseWPF>true</UseWPF>
  <UseWinUI>false</UseWinUI>
  <ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>   
</PropertyGroup>
ClemensFischer commented 1 month ago

Maybe it would be a good idea to drop multi-platform packages altogether and provide only platform-specific packages. I'll see if I can do that with the next release.

OWiger commented 1 month ago

Maybe it would be a good idea to drop multi-platform packages altogether and provide only platform-specific packages. I'll see if I can do that with the next release.

Thanks! Amy idea of how I can resolve the issue now?

ClemensFischer commented 1 month ago

No

ClemensFischer commented 1 month ago

But I can make the release today...

OWiger commented 1 month ago

But I can make the release today...

Wow! Thanks!