mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
Merge pull request #2657 from villagra/master
Add netstandard2.0 as TargetFramework
This commit is contained in:
commit
306bc4008d
@ -22,6 +22,11 @@ namespace MediaBrowser.Model.Extensions
|
||||
return str;
|
||||
}
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
char[] a = str.ToCharArray();
|
||||
a[0] = char.ToUpperInvariant(a[0]);
|
||||
return new string(a);
|
||||
#else
|
||||
return string.Create(
|
||||
str.Length,
|
||||
str,
|
||||
@ -33,6 +38,7 @@ namespace MediaBrowser.Model.Extensions
|
||||
chars[i] = buf[i];
|
||||
}
|
||||
});
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Authors>Jellyfin Contributors</Authors>
|
||||
@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</TreatWarningsAsErrors>
|
||||
|
Loading…
Reference in New Issue
Block a user