Microsoft.Bcl.Build.Symbols

Provides build symbol definitions so that projects referencing specific .NET Framework can use it in code as compile definition.


Keywords
Microsoft, Bcl, Build, Symbols, Framework, .NET
License
MIT
Install
Install-Package Microsoft.Bcl.Build.Symbols -Version 1.1.29

Documentation

logo

Microsoft.Bcl.Build.Symbols

Provides build symbols definitions so that projects referencing specific Microsoft .NET Framework can use it in code as compile definition.

Build status NuGet


See the changelog for changes.

More information about it

Roadmap

  • .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]

Table of contents

Implementing

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).

Quick start

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());
}

License

Code released under The MIT License