简体   繁体   English

.Net Core 3.1 WPF 使用 System.Windows.Controls.DataVisualization.Toolkit

[英].Net Core 3.1 WPF using System.Windows.Controls.DataVisualization.Toolkit

I am have a .Net Core 3.1 WPF application and trying to incorporate charts.我有一个 .Net Core 3.1 WPF 应用程序并尝试合并图表。 I have added the NuGet package System.Windows.Controls.DataVisualization.Toolkit我添加了 NuGet 包 System.Windows.Controls.DataVisualization.Toolkit

<ItemGroup>
  <PackageReference Include="System.Windows.Controls.DataVisualization.Toolkit" Version="4.0.0" />
</ItemGroup>

While I find that works and I am able to create charts, I get an warning in the dependencies/Packages: Package 'System.Windows.Controls.DataVisualization.Toolkit 4.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.虽然我发现这可行并且我能够创建图表,但我在依赖项/包中收到警告: Package 'System.Windows.Controls.DataVisualization.Toolkit 4.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project. Package 'System.Windows.Controls.DataVisualization.Toolkit 4.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.

Any suggestions on how to get rid of the warning?关于如何摆脱警告的任何建议?

The package System.Windows.Controls.DataVisualization.Toolkit only contains assemblies for the .NET Framework 4.0 Client Profile. System.Windows.Controls.DataVisualization.Toolkit包仅包含 .NET Framework 4.0 客户端配置文件的程序集。 Consequently it is not compatible with .NET Core in any version.因此,它与任何版本的 .NET Core都不兼容

Since this package is not an official package by Microsoft and there are no updates for .NET Core, I guess there is nothing you can do about it, except for searching an alternative or going back to .NET Framework.由于此包不是 Microsoft 的官方包,并且没有针对 .NET Core 的更新,我想您对此无能为力,除了搜索替代方案或返回 .NET Framework。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 缺少 System.Windows.Controls.DataVisualization.Charting 程序集参考 - Missing System.Windows.Controls.DataVisualization.Charting assembly reference 无法获取标签和标题以显示在保存的图表中(C#.NET,System.Windows.Controls.DataVisualization.Charting) - Can't get labels and title to show up in saved chart (C#.NET, System.Windows.Controls.DataVisualization.Charting) .Net Core 3.1 无法解析System.Windows.Forms.dll - Unable to resolve System.Windows.Forms.dll in .Net Core 3.1 无法在VS 2012/2013的C#WPF应用程序中添加名称空间System.Windows.Controls.Input.Toolkit - Could not add namespace System.Windows.Controls.Input.Toolkit in c# wpf application in VS 2012/2013 MVC .net core 3.1 中的音频控件 - audio controls in MVC .net core 3.1 获取图表上 LinearAxis 的自动间隔值 (System.Windows.Controls.DataVisualization.Charting) - Get the value of automatic interval for LinearAxis on Chart (System.Windows.Controls.DataVisualization.Charting) Xaml,System.Windows.Controls.DataVisualization.Charting-将X轴标签显示为秒而不是时间? - Xaml, System.Windows.Controls.DataVisualization.Charting - Display X-Axis label as seconds instead of Time? 1053 Windows 服务错误使用 .NET Core 3.1 Worker 服务 - 1053 Windows Service Error using .NET Core 3.1 Worker Service .NET Core 3.1 登录 WPF 应用程序 - .NET Core 3.1 Logging in a WPF application 在 .NET 内核中使用 System.Windows - Using System.Windows in .NET Core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM