如何将角度cli项目转换为点网核心项目

时间:2018-06-27 05:59:53

标签: angular .net-core angular-cli dotnet-core-pack

我已经使用angular(6)cli创建了一个项目,现在我想将其转换为点网核心项目。

我已将所有文件从angular-cli-> src-> app复制到angular.net-core-> ClientApp-> app。

我已经安装了所有必需的软件包,包括一些:-

npm install -g @angular/cli
npm install npm@latest -g
npm i rxjs

Visual Studio版本:VS 2017(15.6.6)。

运行项目时出现错误:

  

错误:在webpackMissingModule中找不到模块“ ./assets/img/ngx-bootstrap.svg”

我一个接一个地收到错误,其中大多数属于软件包,如果遇到任何错误,我正在安装软件包,如果解决它,我可能会遇到下一个错误。

要使其在dot.net核心中运行,需要进行哪些更改。

Package.Json:

{
  "name": "EFNgApp",
  "private": true,
  "version": "0.0.0",
  "scripts": {
    "test": "karma start ClientApp/test/karma.conf.js"
  },
  "devDependencies": {
    "@angular/animations": "4.2.5",
    "@angular/common": "4.2.5",
    "@angular/compiler": "4.2.5",
    "@angular/compiler-cli": "4.2.5",
    "@angular/core": "4.2.5",
    "@angular/forms": "4.2.5",
    "@angular/http": "4.2.5",
    "@angular/platform-browser": "4.2.5",
    "@angular/platform-browser-dynamic": "4.2.5",
    "@angular/platform-server": "4.2.5",
    "@angular/router": "4.2.5",
    "@ngtools/webpack": "1.5.0",
    "@types/chai": "4.0.1",
    "@types/jasmine": "2.5.53",
    "@types/webpack-env": "1.13.0",
    "angular2-router-loader": "0.3.5",
    "angular2-template-loader": "0.6.2",
    "aspnet-prerendering": "^3.0.1",
    "aspnet-webpack": "^2.0.1",
    "awesome-typescript-loader": "3.2.1",
    "bootstrap": "3.3.7",
    "chai": "4.0.2",
    "css": "2.2.1",
    "css-loader": "0.28.4",
    "es6-shim": "0.35.3",
    "event-source-polyfill": "0.0.9",
    "expose-loader": "0.7.3",
    "extract-text-webpack-plugin": "2.1.2",
    "file-loader": "0.11.2",
    "html-loader": "0.4.5",
    "isomorphic-fetch": "2.2.1",
    "jasmine-core": "2.6.4",
    "jquery": "3.2.1",
    "json-loader": "0.5.4",
    "karma": "1.7.0",
    "karma-chai": "0.1.0",
    "karma-chrome-launcher": "2.2.0",
    "karma-cli": "1.0.1",
    "karma-jasmine": "1.1.0",
    "karma-webpack": "2.0.3",
    "preboot": "4.5.2",
    "raw-loader": "0.5.1",
    "reflect-metadata": "0.1.10",
    "rxjs": "5.4.2",
    "style-loader": "0.18.2",
    "to-string-loader": "1.1.5",
    "typescript": "2.4.1",
    "url-loader": "0.5.9",
    "webpack": "2.5.1",
    "webpack-hot-middleware": "2.18.2",
    "webpack-merge": "4.1.0",
    "zone.js": "0.8.12"
  },
  "dependencies": {
    "ngx-loading": "^1.0.14"
  }
}

注意::构建应用程序时,我在输出窗口中看到以下消息。

  

您正在使用.NET Core SDK的预览版。您可以   通过当前项目中的global.json文件定义SDK版本。   https://go.microsoft.com/fwlink/?linkid=869452

的更多内容

0 个答案:

没有答案