Skip to content

Commit 22f256b

Browse files
committed
tweek .net versions
1 parent 3ab0f65 commit 22f256b

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

src/Tocsoft.DateTimeAbstractions.Analyzer/Tocsoft.DateTimeAbstractions.Analyzer.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<IncludeBuildOutput>false</IncludeBuildOutput>
66
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
7-
<DebugType Condition="$(codecov) != ''">full</DebugType>
8-
<DebugType Condition="$(codecov) == ''">portable</DebugType>
97
<DebugSymbols>True</DebugSymbols>
10-
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
11-
<VersionPrefix Condition="$(packageversion) == ''">0.0.1</VersionPrefix>
128
</PropertyGroup>
139

1410
<PropertyGroup>

src/Tocsoft.DateTimeAbstractions/Tocsoft.DateTimeAbstractions.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7-
<DebugType Condition="$(codecov) != ''">full</DebugType>
8-
<DebugType Condition="$(codecov) == ''">portable</DebugType>
97
<DebugSymbols>True</DebugSymbols>
10-
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
11-
<VersionPrefix Condition="$(packageversion) == ''">0.0.2</VersionPrefix>
128
</PropertyGroup>
139

1410
<ItemGroup>

tests/Tocsoft.DateTimeAbstractions.Tests/Tocsoft.DateTimeAbstractions.Tests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<ApplicationIcon />
66
<OutputType>Exe</OutputType>
77
<StartupObject />
8-
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
9-
<VersionPrefix Condition="$(packageversion) == ''">0.0.1</VersionPrefix>
108
<DebugType Condition="$(codecov) != ''">full</DebugType>
119
<DebugType Condition="$(codecov) == ''">portable</DebugType>
1210
<DebugSymbols>True</DebugSymbols>

tests/Tocsoft.DateTimeAbstractions.Tests/Verifiers/CodeFixVerifier.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ private void VerifyFix(string language, DiagnosticAnalyzer analyzer, CodeFixProv
127127

128128
// after applying all of the code fixes, compare the resulting string to the inputted one
129129
string actual = GetStringFromDocument(document);
130-
Assert.Equal(newSource, actual);
130+
Assert.Equal(this.NormalizeNewLines(newSource), this.NormalizeNewLines(actual));
131131
}
132+
133+
private string NormalizeNewLines(string text)
134+
=> text.Replace("\r\n", "\n");
132135
}
133136
}

0 commit comments

Comments
 (0)