Provides build symbols definitions so that projects referencing specific Microsoft .NET Framework can use it in code as compile definition.
See the changelog for changes.
- http://stackoverflow.com/questions/3436526/detect-target-framework-version-at-compile-time
- https://msdn.microsoft.com/en-us/library/ms171464.aspx
- .NET Core 1.0-3.1
- .NET Standards 1.0-2.1
- .NET Framework 4.8
- .NET Framework 4.7.1-2
- .NET Framework 4.6.1-2
- .NET Framework 2.0 to 4.5.2
- .NET Portable
- .NET Profiles
- Mono
- Xamarin [iOS / Android]
Add the library to your project
Add the NuGet Package. Right click on your project and click 'Manage NuGet Packages...'. Search for 'Bcl.Build.Symbols' and click on install. Once installed the library will be included in your project references. (Or install it through the package manager console: PM> Install-Package Microsoft.Bcl.Build.Symbols).
Implementing Join(string delimiter, IEnumerable strings) Prior to .NET 4.0
// string Join(this IEnumerable<string> strings, string delimiter)
// was not introduced until 4.0. So provide our own.
#if !NETFX_40 && NETFX_35
public static string Join( string delimiter, IEnumerable<string> strings)
{
return string.Join(delimiter, strings.ToArray());
}
#endif
[Conditional("PORTABLE")]
public static string Join( string delimiter, IEnumerable<string> strings)
{
return string.Join(delimiter, strings.ToArray());
}
Code released under The MIT License