This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments