public NetEnvironmentInfo GetDotnetEnvironmentInfo(string dotnetExeDirectory)
        {
            var    info          = new NetEnvironmentInfo();
            IntPtr reserved      = IntPtr.Zero;
            IntPtr resultContext = IntPtr.Zero;

            int errorCode = Interop.hostfxr_get_dotnet_environment_info(dotnetExeDirectory, reserved, info.Initialize, resultContext);

            return(info);
        }
 public MockNETBundleProvider(NetEnvironmentInfo environmentInfo)
 {
     _environmentInfo = environmentInfo;
 }