Skip to content

Commit 4a983e4

Browse files
Merge pull request #17 from akriger/bug/git-issue-16
Github #16: Fix CsvWriter Initialization
2 parents 00f9c3b + f760cc7 commit 4a983e4

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [4.0.1]
6+
* Fixed issue with CsvWriter initialization
7+
58
## [4.0.0]
69

710
* Target .NET8

src/Geta.Optimizely.ProductFeed.Csv/CsvFeedExporter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// Copyright (c) Geta Digital. All rights reserved.
22
// Licensed under Apache-2.0. See the LICENSE file in the project root for more information
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Globalization;
76
using System.IO;
87
using System.Threading;
98
using CsvHelper;
10-
using CsvHelper.Configuration;
119
using EPiServer.Web;
1210
using Geta.Optimizely.ProductFeed.Models;
1311

@@ -20,7 +18,7 @@ public class CsvFeedExporter<TEntity>(CsvFeedDescriptor<TEntity> descriptor) : A
2018
public override void BeginExport(HostDefinition host, CancellationToken cancellationToken)
2119
{
2220
base.BeginExport(host, cancellationToken);
23-
_writer = new CsvWriter(new StreamWriter(_buffer), new CsvConfiguration(CultureInfo.InvariantCulture));
21+
_writer = new CsvWriter(new StreamWriter(_buffer), CultureInfo.InvariantCulture);
2422
_writer.WriteHeader(descriptor.CsvEntityType);
2523
_writer.NextRecord();
2624
}

src/Geta.Optimizely.ProductFeed.Csv/Geta.Optimizely.ProductFeed.Csv.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5-
<Version>4.0.0</Version>
6-
<PackageVersion>4.0.0</PackageVersion>
5+
<Version>4.0.1</Version>
6+
<PackageVersion>4.0.1</PackageVersion>
77
<PackageId>Geta.Optimizely.ProductFeed.Csv</PackageId>
88
<Title>Geta Optimizely Csv Product Feed ProductFeed</Title>
99
<IsPackable>true</IsPackable>

src/Geta.Optimizely.ProductFeed.Google/Geta.Optimizely.ProductFeed.Google.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5-
<Version>4.0.0</Version>
6-
<PackageVersion>4.0.0</PackageVersion>
5+
<Version>4.0.1</Version>
6+
<PackageVersion>4.0.1</PackageVersion>
77
<PackageId>Geta.Optimizely.ProductFeed.Google</PackageId>
88
<Title>Geta Optimizely Google Product Feed ProductFeed</Title>
99
<IsPackable>true</IsPackable>

src/Geta.Optimizely.ProductFeed/Geta.Optimizely.ProductFeed.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5-
<Version>4.0.0</Version>
6-
<PackageVersion>4.0.0</PackageVersion>
5+
<Version>4.0.1</Version>
6+
<PackageVersion>4.0.1</PackageVersion>
77
<PackageId>Geta.Optimizely.ProductFeed</PackageId>
88
<Title>Geta Optimizely Product Feed ProductFeed</Title>
99
<IsPackable>true</IsPackable>

0 commit comments

Comments
 (0)