{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/esri-system-js/issues/6","repository_url":"https://api.github.com/repos/Esri/esri-system-js","labels_url":"https://api.github.com/repos/Esri/esri-system-js/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Esri/esri-system-js/issues/6/comments","events_url":"https://api.github.com/repos/Esri/esri-system-js/issues/6/events","html_url":"https://github.com/Esri/esri-system-js/issues/6","id":150980757,"number":6,"title":"Visual Studio 2015 RC1 & Esri System Js","user":{"login":"davidkwong","id":3953867,"avatar_url":"https://avatars.githubusercontent.com/u/3953867?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkwong","html_url":"https://github.com/davidkwong","followers_url":"https://api.github.com/users/davidkwong/followers","following_url":"https://api.github.com/users/davidkwong/following{/other_user}","gists_url":"https://api.github.com/users/davidkwong/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkwong/subscriptions","organizations_url":"https://api.github.com/users/davidkwong/orgs","repos_url":"https://api.github.com/users/davidkwong/repos","events_url":"https://api.github.com/users/davidkwong/events{/privacy}","received_events_url":"https://api.github.com/users/davidkwong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esri/esri-system-js/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-25T21:07:17Z","updated_at":"2016-06-09T00:13:57Z","closed_at":null,"body":"Hello Team,\r\n\r\nI am just  trying to figure out how to use Esri System Js and Visual Studio ASP.NET Core for my backend. \r\nAfter spend many days and hours I still not figure out why typescript cannot pick up the esri-mods module.    \r\n\r\nI can understand that the latest Javascript 4.0 api have no d.ts file at this point .  How does typescript pick up the esri-systemjs module ? I am confused.   What am I missing ?  I use command line tsc the path toward to the tsconfig.json is having the same result.  Typescript 1.8.10\r\n\r\nCannot find module 'esri-mods'\r\n\r\n\r\n**index.html**\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <meta charset=\"utf-8\" />\r\n    <title>Angular 2 with ASP.NET 5</title>\r\n    <link href=\"libs/css/bootstrap.css\" rel=\"stylesheet\" />\r\n    <!-- 1. Load libraries -->\r\n    <script src=\"libs/system-polyfills.js\"></script>\r\n    <script src=\"libs/es6-shim.min.js\"></script>\r\n    <script src=\"libs/shims_for_IE.js\"></script>\r\n    <script src=\"libs/angular2-polyfills.js\"></script>\r\n    <script src=\"libs/system.js\"></script>\r\n    <script src=\"libs/rx.js\"></script>\r\n    <script src=\"libs/angular2.dev.js\"></script>\r\n    <!--Loading Angular Http Module-->\r\n    <script src=\"libs/http.dev.js\"></script>\r\n    <!--Loading Angular Router-->\r\n    <script src=\"libs/router.dev.js\"></script>\r\n   \r\n    <!-- load Esri JSAPI -->\r\n    <script src=\"//js.arcgis.com/4.0beta3/\"></script>\r\n\r\n    <!-- 2. Configure Esri SystemJS -->\r\n    <script src=\"libs/esrisystem.js\"></script>\r\n</head>\r\n<body>\r\n    <my-app>Loading</my-app>\r\n    <script src=\"app/load.js\"></script>\r\n</body>\r\n</html>\r\n\r\n```\r\n\r\nLoad.ts\r\n```\r\ndeclare var System: any;\r\ndeclare var esriSystem: any;\r\n\r\nSystem.config({\r\n    packages: {\r\n        app: {\r\n            format: 'register',\r\n            defaultExtension: 'js'\r\n        }\r\n    }\r\n});\r\n\r\n// load esri modules needed by this application\r\n// into a SystemJS module called esri-mods\r\nesriSystem.register(\r\n    // array of Esri module names to load and then register with SystemJS \r\n    [\r\n        'esri/geometry/Point',\r\n        'esri/geometry/geometryEngineAsync',\r\n        'esri/Graphic',\r\n        'esri/layers/FeatureLayer',\r\n        'esri/layers/GraphicsLayer',\r\n        'esri/Map',\r\n        'esri/symbols/SimpleLineSymbol',\r\n        'esri/symbols/SimpleFillSymbol',\r\n        'esri/views/MapView',\r\n        'esri/views/SceneView'\r\n    ],\r\n\r\n    // optional callback function \r\n    function () {\r\n        // then bootstrap application \r\n        System.import('app/boot')\r\n            .then(null, console.error.bind(console));\r\n    },\r\n    // optional paramaters \r\n    {\r\n        // name of SystemJS module that you will import from, defaults to 'esri' \r\n        outModuleName: 'esri-mods'\r\n        //// by default each module will use everything after the last '/' in their name \r\n        //// however you can override that for specific modules here \r\n        //moduleNameOverrides: {\r\n        //    'esri/request': 'esriRequest'\r\n        //}\r\n    });\r\n\r\n```\r\n\r\nboot.ts\r\n```\r\n\r\n///<reference path=\"../node_modules/angular2/typings/browser.d.ts\"/>\r\nimport {bootstrap} from 'angular2/platform/browser';\r\nimport {provide} from 'angular2/core';\r\nimport {ROUTER_PROVIDERS, APP_BASE_HREF} from 'angular2/router';\r\nimport {AppComponent} from './app.component'\r\n\r\nbootstrap(AppComponent, [\r\n    ROUTER_PROVIDERS,\r\n    provide(APP_BASE_HREF, { useValue: '/' })\r\n]); \r\n\r\n```\r\n\r\ntsconfig.json\r\n\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"system\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": false,\r\n    \"noEmitOnError\": false,\r\n    \"outDir\": \"../wwwroot/app/\"\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"typings/main\",\r\n    \"typings/main.d.ts\"\r\n  ]\r\n}\r\n```\r\n\r\n\r\nPackage.json\r\n\r\n```\r\n{\r\n  \"name\": \"MapBrowser\",\r\n  \"version\": \"0.0.0\",\r\n  \"scripts\": {\r\n    \"start\": \"concurrent \\\"npm run tsc:w\\\" \\\"npm run lite\\\" \",\r\n    \"tsc\": \"tsc\",\r\n    \"tsc:w\": \"tsc -w\",\r\n    \"lite\": \"lite-server\",\r\n    \"typings\": \"typings\",\r\n    \"postinstall\": \"typings install\"\r\n  },\r\n  \"dependencies\": {\r\n    \"angular2\": \"2.0.0-beta.15\",\r\n    \"systemjs\": \"0.19.26\",\r\n    \"es6-promise\": \"3.1.2\",\r\n    \"es6-shim\": \"^0.35.0\",\r\n    \"reflect-metadata\": \"0.1.2\",\r\n    \"rxjs\": \"5.0.0-beta.2\",\r\n    \"zone.js\": \"0.6.10\",\r\n    \"bootstrap\": \"^3.3.5\",\r\n    \"jquery\": \"^2.1.4\",\r\n    \"esri-system-js\": \"0.0.3\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"gulp\": \"^3.9.1\",\r\n    \"concurrently\": \"^2.0.0\",\r\n    \"lite-server\": \"^2.1.0\",\r\n    \"typescript\": \"^1.7.5\",\r\n    \"typings\": \"^0.6.8\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Esri/esri-system-js/issues/comments/224768810","html_url":"https://github.com/Esri/esri-system-js/issues/6#issuecomment-224768810","issue_url":"https://api.github.com/repos/Esri/esri-system-js/issues/6","id":224768810,"user":{"login":"Shawn-Fan","id":15960295,"avatar_url":"https://avatars.githubusercontent.com/u/15960295?v=3","gravatar_id":"","url":"https://api.github.com/users/Shawn-Fan","html_url":"https://github.com/Shawn-Fan","followers_url":"https://api.github.com/users/Shawn-Fan/followers","following_url":"https://api.github.com/users/Shawn-Fan/following{/other_user}","gists_url":"https://api.github.com/users/Shawn-Fan/gists{/gist_id}","starred_url":"https://api.github.com/users/Shawn-Fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shawn-Fan/subscriptions","organizations_url":"https://api.github.com/users/Shawn-Fan/orgs","repos_url":"https://api.github.com/users/Shawn-Fan/repos","events_url":"https://api.github.com/users/Shawn-Fan/events{/privacy}","received_events_url":"https://api.github.com/users/Shawn-Fan/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T00:13:57Z","updated_at":"2016-06-09T00:13:57Z","body":"@davidkwong, I tried same edition of your project in vs 2015 asp.net core 2, it works fine. Can you show both the \"views/index.cshtml\", and \"views/shared/_layout.cshtml\" ?"}}
{"actor":{"display_login":"Shawn-Fan"}}