2017年9月28日
摘要: 前置条件 ubuntu已安装dotnet 发布版本dotnet与发布机一致 这里用的是vm 所以直接把本地web项目拷贝到vm中运行的ubuntu系统中 web站点需要将 webapplication整个文件夹拷贝过去 终端命令进入到web站点根目录 执行dotnet restore恢复json包中 阅读全文
posted @ 2017-09-28 16:45 xuelei被占用了 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 直接看这里 https://www.microsoft.com/net/core#linuxubuntu 阅读全文
posted @ 2017-09-28 15:26 xuelei被占用了 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 前置条件 ubuntu系统 且已经安装dotnetcore运行环境 mkdir testMVC 创建一个文件夹 cd testMVC 进入文件夹 dotnet new -t web 创建程序(使用ls命令查看文件是否都已经成功创建 ) 可以看到熟悉的文件目录出来了 dotnet restore 下载 阅读全文
posted @ 2017-09-28 11:40 xuelei被占用了 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 前置条件 ubuntu已安装.net core运行环境 分6步 mkdir netcore 创建一个项目文件夹 cd netcore 进入该文件夹 dotnet new new命令 用于创建一个新的控制台应用程序 dotnet restore 分析 project.json 文件, 下载依赖并返回结 阅读全文
posted @ 2017-09-28 11:20 xuelei被占用了 阅读(361) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/aspnet/core/getting-started 根据微软给出的文档运行第一个web程序出现错误 Failed to create prime the NuGet cache 这说明命令操作到了没有权限的目录 解决办法 使用ro 阅读全文
posted @ 2017-09-28 10:04 xuelei被占用了 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 16.4执行: sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ xenial main" > /etc/apt/sources.list.d/dotnetdev.lis 阅读全文
posted @ 2017-09-28 09:34 xuelei被占用了 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 网上查到的解决办法 sudo pkill -KILL appstreamcli wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://l 阅读全文
posted @ 2017-09-28 09:26 xuelei被占用了 阅读(1464) 评论(0) 推荐(0) 编辑