Tag: .net core

用于SPA应用程序的.NET核心Docker镜像

当创build一个新的ASP.NET Core MVC应用程序,特别是使用React / Redux(或其他需要Node.js)模板时,什么是正确的Docker镜像? 如果不是特定的图像,那么在Dockerfile中为ASP.NET Core MVC支持的Node.js应用应该遵循哪些命令或进程? 除了运行后备MVC站点之外,我不需要SDK的框架版本。 dotnet new reactredux 运行时映像没有安装Node.js,并且在尝试运行容器时会出错。 Dockerfile: FROM microsoft/aspnetcore:latest ARG source=./bin/Debug/netcoreapp2.0/publish/ WORKDIR /app COPY $source . EXPOSE 80 ENTRYPOINT ["dotnet", "Project.dll"] 错误: Unhandled Exception: System.AggregateException: One or more errors occurred. (Failed to start Node process. To resolve this:. [1] Ensure that Node.js is installed and can be found […]

Highcharts导出图表exportSettings与SVG文件

我想用.Net Core项目渲染地图文件 因此,目的是在Javascript中间件上执行Highmaps库,并将svg文件导出到“node-export-server”。 我有一个从客户端接收一些数据的API。 我想用Highmap库生成SVG地图文件,然后发送到另一个API中,该API将包含一个中间件来执行节点模块或者PNG / JPG / …导出。 什么是将svg文件传递到“node-export-server”模块的方法? 我读了关联文档,但我没有find方式…( https://github.com/highcharts/node-export-server/blob/master/README.md ) 我想通过我的SVG文件与此示例。 //Include the exporter module const exporter = require('highcharts-export-server'); //Export settings var exportSettings = { type: 'png', options: { title: { text: 'My Chart' }, xAxis: { categories: ["Jan", "Feb", "Mar", "Apr", "Mar", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }, series: […]