Comments (5)
This combination works:
<ItemGroup>
<PackageReference Include="AspNetCore.Proxy" Version="4.4.0" />
<PackageReference Include="CSVHelper" Version="31.0.0" />
<PackageReference Include="HtmlSanitizer" Version="8.0.843" /> <!-- Ganss.XSS -->
<PackageReference Include="MailKit" Version="4.4.0" />
<PackageReference Include="Markdig.Signed" Version="0.35.0" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
<PackageReference Include="MimeKit" Version="4.4.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" Version="8.0.2" />
<PackageReference Include="Quartz" Version="3.8.1" />
<PackageReference Include="Quartz.AspNetCore" Version="3.8.1" />
<PackageReference Include="Quartz.Extensions.DependencyInjection" Version="3.8.1" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.8.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>
But not when using:
<PackageReference Include="CSVHelper" Version="31.0.2" />
from csvhelper.
I see that System.Linq.Async
was removed with commit 2efe3a4. However, it does not make sense that this breaks my application.
If I add an unit test:
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace CsvHelper.Tests.Issues
{
public class Issue2239
{
[Fact]
public async void Issue2239Test()
{
List<string> values = ["a", "b", "c", "d", "e"];
var updatedValues = await values.ToAsyncEnumerable()
.Where(value => value != "e")
.ToListAsync();
}
}
}
And then remove <PackageReference Include="System.Linq.Async" Version="6.0.1" />
in CsvHelper.Tests.csproj
, I get the same error.
It does not make sense to me. I have Microsoft.EntityFrameworkCore
as a dependency added and also use using Microsoft.EntityFrameworkCore;
.
My application breaks when upgrading from 31.0.0 to 31.0.2 (without any other changes).
from csvhelper.
There apparently is a conflict between System.Linq.Async
and EntityFramework. System.Linq.Async
was used for a single method call, so I removed it and change the code slightly. I'll have to look into why that's not available for you now.
from csvhelper.
I have solved it by adding <PackageReference Include="System.Linq.Async" Version="6.0.1" />
to my project.
Nothing is wrong with the CSVHelper
. I was using ToAsyncEnumerable()
not realizing that it was provided from a third-party library through CSVHelper
. I am very sorry for having added work to your plate.
from csvhelper.
Ha! No worries.
from csvhelper.
Related Issues (20)
- FastDynamicObject broke serialization HOT 7
- Using a ClassMap with custom type converter results in a "newed" object. HOT 1
- Using Custom TypeConverter causes dangerous/spurious CsvWriter behavior
- csv helper is writing 1 to 12 datetime in different format and 13 to 24 in different datetime format using version 4.0.30319 HOT 1
- FastDynamicObject ignores headers while used together with CsvWriter HOT 1
- Whitespace after delimiter can result in read error HOT 4
- Microsoft.Bcl.AsyncInterfaces dependency issue HOT 5
- [Feature request] Anonymous type and dictionary support HOT 1
- CsvWriter.WriteRecordsAsync does not dispose e.g. EF Core AsyncEnumerators
- [Feature Request] Allow No Additional Messages to Be Returned When Manually Throwing CsvHelperException
- MissingFieldFound Should Allow Nulls (?) HOT 2
- FastDynamicObject broke ExpandoObject workflow HOT 14
- [Feature Request] Generalize Factory Class Method Signatures HOT 1
- Request for Support for GB2312 Encoding in Your Library HOT 1
- Rollback part of commit 7dbb3fe710466ec2f573f81e19c7130ec1c7a365 HOT 7
- Cannot use `\n` as delimiter
- Please don't wrap OperationCanceledException in CsvHelper.WriteRecordsAsync
- CSV Helper seems to ignore its Encoding configuration parameter HOT 2
- Sporadic InvalidCastException, possible hash collision in ObjectCreator.cache
- Exception thrown: 'System.MissingMethodException' in CsvHelper.Excel.dll HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csvhelper.