简体   繁体   English

CsvHelper package:.netcoreapp3.0 不支持?

[英]CsvHelper package: .netcoreapp3.0 not supported?

I am using CsvHelper in a.Net Core console application, and getting this error when trying to build in TeamCity (it seems to build and run fine locally... is that a clue?)我在 a.Net Core 控制台应用程序中使用 CsvHelper,并在尝试在 TeamCity 中构建时出现此错误(它似乎在本地构建和运行良好......这是一个线索吗?)

Package CsvHelper 15.0.5 is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0).
 Package CsvHelper 15.0.5 supports:
    NuGet Config files used:
          - net45 (.NETFramework,Version=v4.5)
        C:\Users\Administrator\AppData\Roaming\NuGet\NuGet.Config
          - net47 (.NETFramework,Version=v4.7)
        C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
          - netstandard2.0 (.NETStandard,Version=v2.0)

Does anyone know if I just have to find another package or can I make this work somehow?有谁知道我是否只需要找到另一个 package 或者我可以以某种方式完成这项工作吗?

You can try reinstalling the package it self.您可以尝试自行重新安装 package。 I just tried CsvHelper under .NET Core 3.0 and it is totally working fine.我刚刚在 .NET Core 3.0 下尝试了 CsvHelper,它完全可以正常工作。 My CsvHelper version is also 15.0.5.我的 CsvHelper 版本也是 15.0.5。

Please also verify the project version is set for .NET Core 3.0:还请验证项目版本是否设置为 .NET Core 3.0:
https://i.ibb.co/dB1nfs8/Project-Version.png https://i.ibb.co/dB1nfs8/Project-Version.png

I have a public demo project on github and uploaded a working version, see line 28. https://github.com/bricsi22/TODOApplication/blob/master/TODOApp/Controllers/UserController.cs我在 github 上有一个公共演示项目并上传了一个工作版本,见第 28 行。https://github.com/bricsi22/TODOApplication/blob/master/TODOApp/Controllers/UserController.cs
The example is working, but don't implement a code like this in production.该示例正在运行,但不要在生产中实现这样的代码。

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

相关问题 约束引用“字符串”无法解析为类型。 (netcoreapp3.0) - The constraint reference 'string' could not be resolved to a type. (netcoreapp3.0) Nuget 包未安装 .NETCoreApp 的依赖项 - Nuget package not installing dependencies for .NETCoreApp Package X 与 netcoreapp3.1 不兼容 - Package X is not compatible with netcoreapp3.1 如何指定netcoreapp1.0对本地nuget包的依赖关系? - How to specify dependency of netcoreapp1.0 on local nuget package? 软件包Remotion.Linq 2.0.2与netcoreapp1.0不兼容 - Package Remotion.Linq 2.0.2 is not compatible with netcoreapp1.0 如何使用 CsvHelper package 将 C# 列表写入 CSV - How to write a C# List to CSV with CsvHelper package 错误 NU1202: Package Microsoft.AspNetCore.Blazor.Cli 0.7.0 与 netcoreapp2.0 (.NETCoreApp,Version=v2.0) 不兼容 - error NU1202: Package Microsoft.AspNetCore.Blazor.Cli 0.7.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0) 在Visual Studio 2012中使用CSVHelper程序包需要帮助 - need help using CSVHelper package in Visual Studio 2012 软件包Microsoft.AspNet.WebApi.Owin 5.2.3与netcoreapp1.1不兼容 - Package Microsoft.AspNet.WebApi.Owin 5.2.3 is not compatible with netcoreapp1.1 软件包Microsoft.CSharp 4.5.0与netcoreapp2.1不兼容错误消息 - Package Microsoft.CSharp 4.5.0 not compatible with netcoreapp2.1 Error Message
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM