Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 4df4569

Browse files
committed
clean up proj refs
1 parent 1c68028 commit 4df4569

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

src/ServiceStack.Text/ServiceStack.Text.Core.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717
</PropertyGroup>
1818
<ItemGroup>
1919
<PackageReference Include="System.Memory" Version="4.5.3" />
20+
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2021
</ItemGroup>
2122
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
2223
<PackageReference Include="System.Runtime" Version="4.3.1" />
23-
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2424
</ItemGroup>
2525
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
2626
<PackageReference Include="System.Runtime" Version="4.3.1" />
2727
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
2828
<PackageReference Include="System.Reflection.Emit.LightWeight" Version="4.3.0" />
29-
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
3029
</ItemGroup>
3130
</Project>

src/ServiceStack.Text/ServiceStack.Text.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
</PropertyGroup>
1717
<ItemGroup>
1818
<PackageReference Include="System.Memory" Version="4.5.3" />
19+
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
1920
</ItemGroup>
2021
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
2122
<Reference Include="System.Configuration" />
22-
<Reference Include="Microsoft.CSharp" />
2323
</ItemGroup>
2424
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
2525
<PackageReference Include="System.Runtime" Version="4.3.1" />
26-
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2726
</ItemGroup>
2827
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
2928
<PackageReference Include="System.Runtime" Version="4.3.1" />
3029
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
3130
<PackageReference Include="System.Reflection.Emit.LightWeight" Version="4.3.0" />
32-
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
3331
</ItemGroup>
3432
</Project>

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,12 @@ public static string ToRot13(this string value)
226226

227227
public static string WithTrailingSlash(this string path)
228228
{
229-
if (String.IsNullOrEmpty(path))
229+
if (path == null)
230230
throw new ArgumentNullException(nameof(path));
231+
if (path == "")
232+
return "/";
231233

232-
if (path[path.Length - 1] != '/')
233-
{
234-
return path + "/";
235-
}
236-
return path;
234+
return path[path.Length - 1] != '/' ? path + "/" : path;
237235
}
238236

239237
public static string AppendPath(this string uri, params string[] uriComponents)

0 commit comments

Comments
 (0)