Skip to content

A reference + fascade library to bring additional types to .NET Standard

License

Notifications You must be signed in to change notification settings

AArnott/Nerdbank.NetStandardBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nerdbank.NetStandardBridge

A reference + facade library to bring additional types to .NET Standard.

NuGet package Build Status

Features

Polyfill behavior

Defines the following types in a .NET Standard 2.0 library:

  • ImportedFromTypeLibAttribute
  • TypeLibVersionAttribute

These types get forwarded to the appropriate runtime types. The assembly in the package is required at runtime unless all referencing projects actually target a framework that already defines the attributes.

Additional functionality when migrating to .NET Core, .NET 5+

.NET Framework assembly load behavior

The NetFrameworkAssemblyResolver class eases migration of an extensible .NET Framework application to .NET Core / .NET 5+ by emulating assembly load behavior of the .NET Framework CLR including probing paths, codebase paths, binding redirects and honoring the full assembly name when loading assembly references.

For example:

var assemblyLoader = new NetFrameworkAssemblyResolver("myapp.exe.config");
assemblyLoader.HookupResolver(AssemblyLoadContext.Default);

About

A reference + fascade library to bring additional types to .NET Standard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages