title: How to run IISExpress command on ASP.NET 4.6.2 in project.json
body: <p>I need to test my .NET Core/.NET 4.6.2 library on both ASP.NET 4 and ASP.NET 5. I have ASP.NET 5/MVC6 working with dnx and the ASP.NET 4/MVC 5 project will build. </p>
  
  <p>I cannot get the ASP.NET 4 and MVC 5 website running because I cannot find the command to put into project.json to kick of IIExpress when I press F5 in Visual Studio.</p>
  
  <p>I have two Visual Studio 2015 solutions with project.json/.xproj libraries. The working ASP.NET 5/MVC 6 project.json is:</p>
  
  <pre><code>{
    "version": "1.0.0-*",
    "compilationOptions": {
      "emitEntryPoint": true
    },
  
    "commands": {
      "web": "Microsoft.AspNet.Server.Kestrel"
    },
  
    "frameworks": {
      "dnxcore5": {
        "dependencies": {
          "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
          "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
          "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
          "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
          "Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
          "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
          "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
          "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
          "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
          "NJsonApiCore": "1.0.0-*",
          "NJsonApiCore.Web.MVC6": "1.0.0-*"
        }
      }
    },
  
    "exclude": [
      "wwwroot",
      "node_modules"
    ],
    "publishExclude": [
      "**.user",
      "**.vspscc"
    ]
  }
  </code></pre>
  
  <p>The ASP.NET 4/MVC5 project.json is:</p>
  
  <pre><code>{
  "version": "1.0.0-*",
    "description": "NJsonApiCore Web MVC5 Class Library",
    "authors": [ "Rob" ],
    "tags": [ "" ],
    "projectUrl": "",
    "licenseUrl": "",
    "frameworks": {
      "net46": {
        "dependencies": {
          "Microsoft.Owin": "3.0.1",
          "Microsoft.AspNet.WebApi": "5.2.3",
          "Microsoft.AspNet.Mvc": "5.2.3"
        },
        "frameworkAssemblies": {
          "System.Web": "4.0.0.0"
        }
      }
    },
    "dependencies": {
      "NJsonApiCore": "1.0.0-*",
      "NJsonApiCore.Web.MVC5": "1.0.0-*"
    }
  }
  </code></pre>
  
  <h1>Edit - Trying to run via IIS Express</h1>
  
  <p>In the MVC5 project json, I have tried adding the IISExpress command line option: </p>
  
  <pre><code>"commands": {
      "iisexpress": "c:\\\\Program Files (x86)\\\\IIS Express\\\\iisexpress /path:C:\\Projects\\NJsonApiCore\\src\\NJsonApiCore.Web.MVC5.HelloWorld\\bin /port:12345"
    },
  </code></pre>
  
  <p>Although the application starts, I get the error:</p>
  
  <pre><code>System.InvalidOperationException: The current runtime target framework is not compatible with 'NJsonApiCore.Web.MVC5.HelloWorld'.
  Current runtime target framework: 'DNX,Version=v4.5.1 (dnx451)'
   Version:      1.0.0-rc1-16231
   Type:         Clr
   Architecture: x86
   OS Name:      Windows
   OS Version:   10.0
   Runtime Id:   win10-x86
  
    [1]: http://i.stack.imgur.com/533jo.png
  </code></pre>
  
  <p>Which shows that it is trying to run my ASP.NET 4/MVC 5 application in dnx, which I know won't work. My global.json looks like:</p>
  
  <pre><code>{
    "projects": [ "src/NJsonApiCore", "src/NJsonApiCore.Web.MVC6", "src/NJsonApiCore.Web.MVC6.HelloWorld", "test" ],
    "sdk": {
      "version": "1.0.0-rc1-update1"
    }
  }
  </code></pre>
  
  <p>Which shows that only the MVC6 sister projects are referenced. You can see the full tree here: <a href="https://github.com/brainwipe/NJsonApiCore/tree/feature/net462withxproj" rel="nofollow">https://github.com/brainwipe/NJsonApiCore/tree/feature/net462withxproj</a></p>
  
  <p>I have also tried moving the MVC5 solution out of the base directory but I received the same error.</p>
  
  <p>Is it possible to run a ASP.NET 4/MVC5 using project.json and xproj?</p>