title: CoreCLR, 'Type' does not contain a definition for 'GetTypeFromProgID'
body: <p>I'm trying to upgrade a web application from dnx451 to a dotnetcoreapp1.0.</p>
  
  <p>This application needs to use an old library (at least I think it's a library). This snippet used to work with DNX, but it doesn't now that I've upgraded. </p>
  
  <pre><code>//COMPILE ERROR: 'Type' does not contain a definition for 'GetTypeFromProgID'
  var comType = Type.GetTypeFromProgID("ABCCrypto2.Crypto"); 
  
  var abc = Activator.CreateInstance(comType);
  
  var license = _config["AbcCrypto:License"];
  var password = _config["AbcCrypto:Password"];
  
  comType.InvokeMember("License", System.Reflection.BindingFlags.SetProperty, null, abc, new object[] { license });
  comType.InvokeMember("Password", System.Reflection.BindingFlags.SetProperty, null, abc, new object[] { password });
  
  var hashed = comType.InvokeMember("Encrypt", System.Reflection.BindingFlags.InvokeMethod, null, abc, new object[] { data });
  </code></pre>
  
  <p>Any ideas or workarounds? Thanks!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The code above is in <em>a class library separate from the ASP.NET Core Web Application that references it</em>. Here is the project.json for the class library:</p>
  
  <pre><code>"buildOptions": {
      "emitEntryPoint": false
  },
  "dependencies": {
      "MyApp.Data": "1.0.0-*",
      "System.Net.Mail": "1.0.0-rtm-00002",
      "System.Runtime": "4.1.0"
  },
  "frameworks": {
      "netcoreapp1.0": { }
  }
  </code></pre>
  
  <p>And here is the project.json for the ASP.NET Core Web Application:</p>
  
  <pre><code>"buildOptions": {
      "emitEntryPoint": true,
      "preserveCompilationContext": true
  },
  "dependencies": {
      "MyApp.Services": "1.0.0-*",
      "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
      "Microsoft.AspNetCore.Authorization": "1.0.0",
      "Microsoft.AspNetCore.Diagnostics": "1.0.0",
      "Microsoft.AspNetCore.Hosting": "1.0.0",
      "Microsoft.AspNetCore.Hosting.Abstractions": "1.0.0",
      "Microsoft.AspNetCore.Http.Extensions": "1.0.0",
      "Microsoft.AspNetCore.Localization": "1.0.0",
      "Microsoft.AspNetCore.Mvc": "1.0.0",
      "Microsoft.AspNetCore.Routing": "1.0.0",
      "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
      "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
      "Microsoft.AspNetCore.Session": "1.0.0",
      "Microsoft.AspNetCore.StaticFiles": "1.0.0",
      "Microsoft.Extensions.Caching.SqlServer": "1.0.0",
      "Microsoft.Extensions.Logging.Console": "1.0.0",
      "Microsoft.Extensions.Logging.Debug": "1.0.0",
      "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0"
  },
  "frameworks": {
      "netcoreapp1.0": {
          "dependencies": {
              "Microsoft.NETCore.App": {
                  "type": "platform",
                  "version": "1.0.0"
              }
          }
      }
  },
  "runtimes": {
      "win10-x86": {}
  }
  </code></pre>