• 将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)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
      </PropertyGroup>
      <Import Project="$(VSToolsPath)DNXMicrosoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
      <PropertyGroup Label="Globals">
        <ProjectGuid>0ec50fbb-03b7-4b76-9d72-aadcb8bb3a8b</ProjectGuid>
        <RootNamespace>Enyim.Caching</RootNamespace>
        <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">....artifactsobj$(MSBuildProjectName)</BaseIntermediateOutputPath>
        <OutputPath Condition="'$(OutputPath)'=='' ">.in</OutputPath>
      </PropertyGroup>
      <PropertyGroup>
        <SchemaVersion>2.0</SchemaVersion>
        <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
        <ProduceOutputsOnBuild>True</ProduceOutputsOnBuild>
      </PropertyGroup>
      <Import Project="$(VSToolsPath)DNXMicrosoft.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)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
      </PropertyGroup>
      <Import Project="$(VSToolsPath)DotNetMicrosoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
      <PropertyGroup Label="Globals">
        <ProjectGuid>a427e18a-3ae4-4805-b70c-3b017c794dee</ProjectGuid>
        <RootNamespace>Enyim.Caching</RootNamespace>
        <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">....artifactsobj$(MSBuildProjectName)</BaseIntermediateOutputPath>
        <OutputPath Condition="'$(OutputPath)'=='' ">.in</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.WebMicrosoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" />
    </Project>

    【相关链接】

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

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

  • 相关阅读:
    为什么未来是全栈project师的世界?
    剑指Offer面试题10(Java版):二进制中的1的个数
    arm-linux内存管理学习笔记(1)-内存页表的硬件原理
    高速掌握Lua 5.3 —— 字符串库 (2)
    C语言实现使用动态数组来构造栈结构
    [自学AndroidStudio系列]第二篇章:高速上手AS小技巧其一
    苹果新的编程语言 Swift 语言进阶(十三)--类型检查与类型嵌套
    JAVA 安装JDK注意事项
    hdu 1398 Square Coins(母函数)
    百度有道雅虎的实习面试经历
  • 原文地址:https://www.cnblogs.com/dudu/p/5522739.html
Copyright © 2020-2023  润新知