Updates project to add powershell module

This commit is contained in:
Ryan Newington
2023-02-04 09:38:01 +11:00
parent 843535a0ba
commit 4ad11d5a63
21 changed files with 1061 additions and 433 deletions
@@ -0,0 +1,24 @@
using System.IO;
using System.Reflection;
using System.Runtime.Loader;
namespace Lithnet.CredentialProvider.RegistrationTool
{
internal static class AssemblyContextResourceLoader
{
private static readonly DependencyAssemblyLoadContext dependencyLoadContext = new DependencyAssemblyLoadContext();
public static Assembly LoadIntoAlc(Stream stream)
{
return dependencyLoadContext.LoadFromStream(stream);
}
private class DependencyAssemblyLoadContext : AssemblyLoadContext
{
protected override Assembly Load(AssemblyName assemblyName)
{
return null;
}
}
}
}