将EnyimMemcached从.NET Core RC1升级至RC2

.NET Core RC1时project.json中的配置如下:

{
    "version": "3.2.4",
    "summary": "EnyimMemcached",
    "frameworks": {
        "dnxcore50": { }
    },
    "configurations": {
        "Debug": {
            "compilationOptions": {
                "allowUnsafe": true
            }
        },
        "Release": {
            "compilationOptions": {
                "allowUnsafe": true
            }
        }
    },
    "dependencies": {
        "Microsoft.Extensions.Logging.Abstractions":"1.0.0-*",
        "Newtonsoft.Json": "8.0.3",
        "System.Linq.Expressions": "4.0.11-*",
        "System.Net.Primitives": "4.0.11-*",
        "System.Net.Sockets": "4.1.0-*",
        "System.Runtime.Serialization.Json": "4.0.1-*",
        "System.Runtime.Serialization.Primitives": "4.1.0-*",
        "System.Security.Cryptography.Algorithms": "4.0.0-*",
        "System.Threading.Timer": "4.0.1-*",
        "System.Net.NameResolution": "4.0.0-*",
        "System.Console": "4.0.0-*",
        "System.IO": "4.0.11-*",
        "System.IO.FileSystem": "4.0.1-*",
        "System.Threading.Thread": "4.0.0-*",
        "System.Text.Encoding": "4.0.11-*"
    }
}

升级至ASP.NET Core RC2时project.json修改为如下配置:

{
  "version": "4.0.0",
  "packOptions": {
    "summary": "EnyimMemcachedCore"
  },
  "configurations": {
    "Debug": {
      "buildOptions": {
        "allowUnsafe": true
      }
    },
    "Release": {
      "buildOptions": {
        "allowUnsafe": true
      }
    }
  },
  "frameworks": {
    "netcoreapp1.0": { }
  },
  "dependencies": {
    "Microsoft.Extensions.Logging.Abstractions": "1.0.0-rc2-final",
    "Newtonsoft.Json": "8.0.4-beta1",
    "System.Linq.Expressions": "4.0.11-rc2-24027",
    "System.Net.Primitives": "4.0.11-rc2-24027",
    "System.Net.Sockets": "4.1.0-rc2-24027",
    "System.Runtime.Serialization.Json": "4.0.2-rc2-24027",
    "System.Runtime.Serialization.Primitives": "4.1.1-rc2-24027",
    "System.Security.Cryptography.Algorithms": "4.1.0-rc2-24027",
    "System.Threading.Timer": "4.0.1-rc2-24027",
    "System.Net.NameResolution": "4.0.0-rc2-24027",
    "System.Console": "4.0.0-rc2-24027",
    "System.IO": "4.1.0-rc2-24027",
    "System.IO.FileSystem": "4.0.1-rc2-24027",
    "System.Threading.Thread": "4.0.0-rc2-24027",
    "System.Text.Encoding": "4.0.11-rc2-24027"
  }
}

.NET Core RC1时Enyim.Caching.xproj文件的内容如下:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <VisualStudioVersion Condition="‘$(VisualStudioVersion)‘ == ‘‘">14.0</VisualStudioVersion>
    <VSToolsPath Condition="‘$(VSToolsPath)‘ == ‘‘">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="‘$(VSToolsPath)‘ != ‘‘" />
  <PropertyGroup Label="Globals">
    <ProjectGuid>0ec50fbb-03b7-4b76-9d72-aadcb8bb3a8b</ProjectGuid>
    <RootNamespace>Enyim.Caching</RootNamespace>
    <BaseIntermediateOutputPath Condition="‘$(BaseIntermediateOutputPath)‘==‘‘ ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
    <OutputPath Condition="‘$(OutputPath)‘==‘‘ ">.\bin\</OutputPath>
  </PropertyGroup>
  <PropertyGroup>
    <SchemaVersion>2.0</SchemaVersion>
    <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
  </PropertyGroup>
  <PropertyGroup Condition="‘$(Configuration)|$(Platform)‘==‘Debug|AnyCPU‘">
    <ProduceOutputsOnBuild>True</ProduceOutputsOnBuild>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="‘$(VSToolsPath)‘ != ‘‘" />
</Project>

升级至.NET Core RC1时将Enyim.Caching.xproj文件的内容修改为:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <VisualStudioVersion Condition="‘$(VisualStudioVersion)‘ == ‘‘">14.0</VisualStudioVersion>
    <VSToolsPath Condition="‘$(VSToolsPath)‘ == ‘‘">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="‘$(VSToolsPath)‘ != ‘‘" />
  <PropertyGroup Label="Globals">
    <ProjectGuid>a427e18a-3ae4-4805-b70c-3b017c794dee</ProjectGuid>
    <RootNamespace>Enyim.Caching</RootNamespace>
    <BaseIntermediateOutputPath Condition="‘$(BaseIntermediateOutputPath)‘==‘‘ ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
    <OutputPath Condition="‘$(OutputPath)‘==‘‘ ">.\bin\</OutputPath>
  </PropertyGroup>
  <PropertyGroup>
    <SchemaVersion>2.0</SchemaVersion>
    <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
  </PropertyGroup>
  <PropertyGroup Condition="‘$(Configuration)|$(Platform)‘==‘Debug|AnyCPU‘">
    <ProduceOutputsOnBuild>True</ProduceOutputsOnBuild>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="‘$(VSToolsPath)‘ != ‘‘" />
</Project>

【相关链接】

VS2015编译ASP.NET Core RC2项目出错:unknown keyword platform

.NET跨平台之旅:成功将示例站点升级至ASP.NET Core RC2

时间: 2024-10-06 17:37:09

将EnyimMemcached从.NET Core RC1升级至RC2的相关文章

.NET跨平台之旅:将示例站点从 ASP.NET 5 RC1 升级至 ASP.NET Core 1.0

终于将".NET跨平台之旅"的示例站点 about.cnblogs.com 从 ASP.NET 5 RC1 升级至 ASP.NET Core 1.0 ,经历了不少周折,在这篇博文中记录一下. 从 ASP.NET 5 到 ASP.NET Core 最大的变化,除了改名之外,就是用 dotnet cli(命令名是dotnet)取代了dnx.所以运行 ASP.NET Core 程序,首先要安装 dotnet cli,我们是在 Ubuntu 服务器上用 apt-get install dotn

发布在即!.NET Core 1.0 RC2已准备就绪!!

先说点废话,从去年夏天就开始关注学习ASP.NET Core,那时候的版本还是beta5,断断续续不停踩坑.一路研究到11月份RC1发布. 在这个乐此不疲的过程里,学习了很多新的东西,对ASP.NET Core也是越来越喜爱.然而到现在,RC1已经玩了整整半年了,再也没发布过新版本. 虽然myget.org上每天都有新版本的程序包,但是VS的Web Tools一直停留在RC1,再加上RC1到RC2中间那么多变动,甚至连名字都改了, 工具链也从DNX换成了dotnet CLI,所以VS对RC1之后

win10与ubuntu下演示运行.net core rc2 1.0.0.3002702程序

随着.net core rc2(1.0.0.002702)发布的同时,我们也来在本地 win10与ubuntu玩一下吧. 先简单说下.net core ,在.net core rc1中用的是dnx 工具链可参考http://www.cnblogs.com/shanyou/p/4589930.html, .net core rc2中完全用dotnet工具链代替,具体说明见 dotnet new:初始化一个控制台C#项目 dotnet restore:恢复项目的依赖包 dotnet build:构建

.NET Core RC2/RTM 明确了时间表

.NET Core 经过了将近2年的开发,去年12月份发布的RC1版本,明确来说那只是一个beta版本,自从RC1发布以来,看到github里的RC2分支,整个工具链都发生了很大的变化,大家都在焦急的等待着微软发布.NET Core RC2, 昨天.NET 官方博客回应了大家关心 .NET Core RC2 – Improvements, Schedule, and Roadmap. 博客文章里已经明确了RC2 是一个真正的RC版本,就在5月中旬发布,也就是下周了. RTM 版本是6月底,时间表

Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2[译]

??.NET Core RC2 和 ASP.NET Core RC2 已在几周之前发布,它包含了.NET CLI的介绍,对.NET Core SDK(以前叫 DNX)的改动,ASP.NET 5到ASP.NET Core的进化等,更多特性可以参考.NET 团队博客和.NET WEB开发团队博客. ??而现在,我们很兴奋的宣布,MSTest类库也支持这个发布版本啦!相关类库和依赖包都可以在NuGet上获取.这次是预发布版本,我们期望收到你的反馈以便带来更完善的正式版本. ??在这篇文章中,我会向你展

ASP.NET Core 行军记 -----拔营启程

ASP.NET MVC 6:https://docs.asp.net/en/latest/mvc/index.html ASP.NET Core :https://docs.asp.net/en/latest/fundamentals/index.html cli-samples  : https://github.com/aspnet/cli-samples 以下是我在学习过程中的一些总结,作此记录 抱怨! 微软的发布候选版本真是坑爹…… 1:三月初开始看 ASP.NET Core ,利用 2

.NET Core学习之路

1.NET Core环境搭建 安装.NET Core: .NET Core 包括.NET Core Runtime 和 .NET Core SDK: NET Core = 应用运行依赖的 .NET Core Runtime NET Core SDK = 使用.NET Core开发应用.NET Core Runtime 和 SDK+CLI(Software Development Kit/Command Line Interface) 工具 下载地址请到dotnet官方网站dot.net (dot

ASP.NET Core 1.0 开发记录

参考页面: http://www.yuanjiaocheng.net/ASPNET-CORE/first.html http://www.yuanjiaocheng.net/ASPNET-CORE/asp-net-core-overview.html http://www.yuanjiaocheng.net/ASPNET-CORE/asp.net-core-environment.html http://www.yuanjiaocheng.net/ASPNET-CORE/newproject.h

ASP.NET Core 1.0

跨平台运行ASP.NET Core 1.0 前言 首先提一下微软更名后的叫法: ASP.NET 5 更名为 ASP.NET Core 1.0 .NET Core 更名为 .NET Core 1.0 Entity Framework 7 更名为 Entity Framework Core 1.0 或者简称 EF Core 1.0 现在伴随着ASP.NET Core 1.0 RC2版的更新速度,许多官方文档都跟不上,还停留在RC1版的使用方式上(RC1版是继Beta版之后第一个发布的稳定版本).RC