将EnyimMemcached从.NET Core RC1升级至RC2
Posted dudu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将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>
【相关链接】
以上是关于将EnyimMemcached从.NET Core RC1升级至RC2的主要内容,如果未能解决你的问题,请参考以下文章
您使用哪个 .NET Memcached 客户端,EnyimMemcached 与 BeITMemcached? [关闭]
将文件从 ASP.NET Core Web api 发布到另一个 ASP.NET Core Web api
Angular + core 如何将文件数组从 Angular 上传到 Dot Net Core
从.Net core 2.2迁移到.Net Core 3.0
将项目从 2.2 更新到 3.1(缺少程序集)或如何在 .NET Core 中使用 API POST 请求时,PostAsJsonAsync()在 .Net Core 3.1 中不起作用 [重复]