RabbitMQ在.NetCore上

时间:2017-08-23 14:35:58

标签: c# rabbitmq

我在文件中看到RabbitMQ Client支持的.Net Core 1.0/1.1系列。

我正在尝试从Nuget添加RabbitMQ Client,但它失败了。

我尝试Unable to resolve `...` for '.NETCoreApp,Version=v1.0'. <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp1.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="1.1.1" /> <PackageReference Include="Newtonsoft.Json" Version="10.0.3" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\DotNetstandard1\DotNetstandard1.csproj" /> </ItemGroup> </Project> 4.0.0 - 4.1.3。

我一直收到错误:

Install-Package : Unable to resolve 'c:\users\cynet\documents\visual studio 2017\Projects\CoreApp1\DotNetstandard1\DotNetstandard1.csproj' for '.NETCoreApp,Version=v1.0'.
At line:1 char:1
+ Install-Package RabbitMQ.Client -Version 4.1.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : Package restore failed. Rolling back package changes for 'CoreApp1'.
At line:1 char:1
+ Install-Package RabbitMQ.Client -Version 4.1.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

我错过了什么吗?

编辑CS项目

{{1}}

Nuget完成错误

{{1}}

0 个答案:

没有答案