Skip to content
MSBuild compile time symbols
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
Microsoft.Bcl.Build.Symbols
.editoricon.png
.gitattributes
.gitignore
CHANGELOG.md
LICENSE
Microsoft.Bcl.Build.Symbols.sln
README.md
build.cake
build.ps1

README.md

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 Framework 4.7
  • .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

You can’t perform that action at this time.