{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/863","labels_url":"https://api.github.com/repos/aspnet/Home/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/863/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/863/events","html_url":"https://github.com/aspnet/Home/issues/863","id":103027652,"number":863,"title":"Deploying DNXCore5 project to a Linux VM","user":{"login":"npateman","id":1122645,"avatar_url":"https://avatars.githubusercontent.com/u/1122645?v=3","gravatar_id":"","url":"https://api.github.com/users/npateman","html_url":"https://github.com/npateman","followers_url":"https://api.github.com/users/npateman/followers","following_url":"https://api.github.com/users/npateman/following{/other_user}","gists_url":"https://api.github.com/users/npateman/gists{/gist_id}","starred_url":"https://api.github.com/users/npateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npateman/subscriptions","organizations_url":"https://api.github.com/users/npateman/orgs","repos_url":"https://api.github.com/users/npateman/repos","events_url":"https://api.github.com/users/npateman/events{/privacy}","received_events_url":"https://api.github.com/users/npateman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T13:55:16Z","updated_at":"2015-08-25T14:03:45Z","closed_at":null,"body":"Hi there,\r\n\r\nI thought I had resolved this in a previous issue that I had open in the past but am still having issues.  I have a DNX Core 5 project, I'm using the publish feature of Visual Studio to deploy it to the file system.  I then zip that up and copy it to my VM.\r\n\r\nIn the zip is a bash script called \"kestrel\" this has an issue in the last line where it attempts to use the Windows binaries for the runtime, so I modify the line slightly so that it just calls\r\n\r\n    dnx --appbase \"$DNX_APPBASE\" \"Microsoft.Framework.ApplicationHost kestrel \"$@\"\r\n\r\nThis still doesn't work and results in the following error,\r\n\r\n  The current runtime target framework is not compatible with \"MyProject\"\r\n  Current runtime Target Framework: 'DNX,Version=v4.5.1 (dnx451)'\r\n\r\nNow I'm pretty sure I'm only targeting DNXCore5 but several obvious questions here,\r\n\r\n1.  Why does the bash script reference windows binaries in it?  Surely that's meant for Linux?\r\n2.  Why does Visual Studio always build the x86 version even when I tell it I want x64?  I thought that might have been the issue and have just built an x86 server to discover it isn't.\r\n3.  Why is it telling me I'm targeting dnx451 when that framework has been explicitly removed from both of my projects, they only target dnxcore5.\r\n\r\nAny help with this would be greatly appreciated, I've tried stackexchange too and the official asp.net 5 forum but am not getting much luck with help and my project is pretty blocked now.  I was hoping to be able to demo this being deployed to Linux but really need assistance for this last bit.\r\n\r\nI even removed Newtonsoft.JSON from my project thinking it might have been that but it wasn't, so I have very few dependencies now.  One of them is mine, the rest are Microsofts.\r\n\r\nMy project,json documents are as follows, according to the error this is what's wrong but I can't for the life of me work out what exactly?\r\n\r\nMy Web App\r\n\r\n\t{\r\n\t  \"webroot\": \"wwwroot\",\r\n\t  \"version\": \"1.0.0-*\",\r\n\r\n\t  \"dependencies\": {\r\n\t\t\"Microsoft.Framework.ConfigurationModel\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.Framework.ConfigurationModel.Json\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.AspNet.Mvc\": \"6.0.0-beta5\",\r\n\t\t\"Microsoft.AspNet.Mvc.TagHelpers\": \"6.0.0-beta5\",\r\n\t\t\"Microsoft.AspNet.StaticFiles\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.AspNet.Tooling.Razor\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.Framework.Configuration.Json\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.Framework.Logging\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.Framework.Logging.Console\": \"1.0.0-beta5\",\r\n\t\t\"Microsoft.VisualStudio.Web.BrowserLink.Loader\": \"14.0.0-beta5\",\r\n\t\t\"Microsoft.AspNet.Mvc.WebApiCompatShim\": \"6.0.0-beta5\",\r\n\t\t\"System.Security.Cryptography.DeriveBytes\": \"4.0.0-beta-23019\",\r\n\t\t\"MyLib\": \"1.0.0-*\",\r\n\t\t\"Kestrel\": \"1.0.0-beta5\"\r\n\t  },\r\n\r\n\t  \"commands\": {\r\n\t\t\"kestrel\": \"Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5000\"\r\n\t  },\r\n\r\n\t  \"frameworks\": {\r\n\t\t\"dnxcore5\": {\r\n\t\t  \"dependencies\": {\r\n\t\t\t\"System.Runtime.Serialization.Json\": \"4.0.0-beta-23109\",\r\n\t\t\t\"System.Runtime.Extensions\": \"4.0.10-beta-23019\",\r\n\t\t\t\"System.Collections\": \"4.0.10-beta-23019\",\r\n\t\t\t\"System.Runtime\": \"4.0.20-beta-23019\",\r\n\t\t\t\"Microsoft.CSharp\": \"4.0.0-beta-23019\",\r\n\t\t\t\"System.Private.Networking\": \"4.0.0-beta-23109\",\r\n\t\t\t\"System.Net.Security\": \"4.0.0-beta-23109\"\r\n\t\t  }\r\n\t\t}\r\n\t  },\r\n\r\n\t  \"exclude\": [\r\n\t\t\"wwwroot\",\r\n\t\t\"node_modules\",\r\n\t\t\"bower_components\"\r\n\t  ],\r\n\t  \"publishExclude\": [\r\n\t\t\"node_modules\",\r\n\t\t\"bower_components\",\r\n\t\t\"**.xproj\",\r\n\t\t\"**.user\",\r\n\t\t\"**.vspscc\"\r\n\t  ],\r\n\t  \"scripts\": {\r\n\t\t\"prepublish\": [ \"npm install\", \"bower install\", \"gulp clean\", \"gulp min\" ]\r\n\t  }\r\n\t}\r\n\t\r\nMy Lib\r\n\r\n\t{\r\n\t  \"version\": \"1.0.0-*\",\r\n\t  \"description\": \"Description goes here...\",\r\n\t  \"authors\": [ \"Joe Bloggs\" ],\r\n\t  \"tags\": [ \"\" ],\r\n\t  \"projectUrl\": \"\",\r\n\t  \"licenseUrl\": \"\",\r\n\r\n\t  \"dependencies\": {\r\n\t  },\r\n\r\n\t  \"frameworks\": {\r\n\t\t\"dnxcore5\": {\r\n\t\t  \"dependencies\": {\r\n\t\t\t\"System.Collections\": \"4.0.10-beta-23019\",\r\n\t\t\t\"System.Runtime\": \"4.0.20-beta-23019\",\r\n\t\t\t\"Microsoft.CSharp\": \"4.0.0-beta-23019\"\r\n\t\t  }\r\n\t\t}\r\n\t  }\r\n\t}\r\n\r\n\r\nNick."},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/134595924","html_url":"https://github.com/aspnet/Home/issues/863#issuecomment-134595924","issue_url":"https://api.github.com/repos/aspnet/Home/issues/863","id":134595924,"user":{"login":"npateman","id":1122645,"avatar_url":"https://avatars.githubusercontent.com/u/1122645?v=3","gravatar_id":"","url":"https://api.github.com/users/npateman","html_url":"https://github.com/npateman","followers_url":"https://api.github.com/users/npateman/followers","following_url":"https://api.github.com/users/npateman/following{/other_user}","gists_url":"https://api.github.com/users/npateman/gists{/gist_id}","starred_url":"https://api.github.com/users/npateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npateman/subscriptions","organizations_url":"https://api.github.com/users/npateman/orgs","repos_url":"https://api.github.com/users/npateman/repos","events_url":"https://api.github.com/users/npateman/events{/privacy}","received_events_url":"https://api.github.com/users/npateman/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T14:03:45Z","updated_at":"2015-08-25T14:03:45Z","body":"also\r\n\r\nkestrel script created by publish process was\r\n\r\n\t#!/bin/bash\r\n\r\n\tSOURCE=\"${BASH_SOURCE[0]}\"\r\n\twhile [ -h \"$SOURCE\" ]; do # resolve $SOURCE until the file is no longer a symlink\r\n\t  DIR=\"$( cd -P \"$( dirname \"$SOURCE\" )\" && pwd )\"\r\n\t  SOURCE=\"$(readlink \"$SOURCE\")\"\r\n\t  [[ $SOURCE != /* ]] && SOURCE=\"$DIR/$SOURCE\" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located\r\n\tdone\r\n\tDIR=\"$( cd -P \"$( dirname \"$SOURCE\" )\" && pwd )\"\r\n\r\n\texport SET DNX_APPBASE=\"$DIR/approot/src/MyProject\"\r\n\r\n\texec \"$DIR/approot/runtimes/dnx-coreclr-win-x86.1.0.0-beta5/bin/dnx\" --appbase \"$DNX_APPBASE\" Microsoft.Framework.ApplicationHost kestrel \"$@\"\r\n\r\nChanged to\r\n\t\r\n\t!/bin/bash\r\n\r\n\tSOURCE=\"${BASH_SOURCE[0]}\"\r\n\twhile [ -h \"$SOURCE\" ]; do # resolve $SOURCE until the file is no longer a symlink\r\n\t  DIR=\"$( cd -P \"$( dirname \"$SOURCE\" )\" && pwd )\"\r\n\t  SOURCE=\"$(readlink \"$SOURCE\")\"\r\n\t  [[ $SOURCE != /* ]] && SOURCE=\"$DIR/$SOURCE\" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located\r\n\tdone\r\n\tDIR=\"$( cd -P \"$( dirname \"$SOURCE\" )\" && pwd )\"\r\n\r\n\texport SET DNX_APPBASE=\"$DIR/approot/src/MyProject\"\r\n\r\n\tdnx --appbase \"$DNX_APPBASE\" Microsoft.Framework.ApplicationHost kestrel \"$@\""}}