asyncio NetMQ 解决方案编译问题

 

程序集代码 (原)

 1 <Project Sdk="Microsoft.NET.Sdk">
 2 
 3   <PropertyGroup>
 4     <VersionPrefix>0.1.23.0</VersionPrefix>
 5     <TargetFrameworks>netstandard1.3;net35;net40;net45;monoandroid60;xamarinios10</TargetFrameworks>  
 6      
 7     <DebugType>portable</DebugType>
 8     <AssemblyName>AsyncIO</AssemblyName>
 9     <AssemblyOriginatorKeyFile>./asyncio.snk</AssemblyOriginatorKeyFile>
10     <SignAssembly>true</SignAssembly>
11     <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
12     <PackageId>AsyncIO</PackageId>
13     <NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'net45' ">1.6.0</NetStandardImplicitPackageVersion>
14     <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
15     <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
16     <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
17     <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
18     <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
19     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
20     <GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
21     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
22   </PropertyGroup>
23     <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
24     <PackageReference Include="System.Net.NameResolution" Version="4.0.0" />
25   </ItemGroup>   
26   <ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
27     <Reference Include="System" />
28   </ItemGroup>
29 
30   <ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
31     <Reference Include="System" />
32     <Reference Include="Microsoft.CSharp" />
33   </ItemGroup>  
34 
35   <ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
36     <Reference Include="System" />
37     <Reference Include="Microsoft.CSharp" />
38   </ItemGroup>
39 
40   <ItemGroup Condition=" '$(TargetFramework)' == 'monoandroid60' ">
41     <Reference Include="mscorlib" />
42     <Reference Include="System" />
43     <Reference Include="System.Core" />
44   </ItemGroup>
45 
46   <ItemGroup Condition=" '$(TargetFramework)' == 'xamarinios10' ">
47     <Reference Include="mscorlib" />
48     <Reference Include="System" />
49     <Reference Include="System.Core" />
50   </ItemGroup>  
51   <TargetFrameworks>netstandard1.3;net35;net40;net45;monoandroid60;xamarinios10</TargetFrameworks>   
52 </Project>
View Code

 

替换成下面代码

 1 <Project Sdk="Microsoft.NET.Sdk">
 2 
 3   <PropertyGroup>
 4     <VersionPrefix>0.1.23.0</VersionPrefix>
 5     <TargetFrameworks>net40;net45</TargetFrameworks>  
 6      
 7     <DebugType>portable</DebugType>
 8     <AssemblyName>AsyncIO</AssemblyName>
 9     <AssemblyOriginatorKeyFile>./asyncio.snk</AssemblyOriginatorKeyFile>
10     <SignAssembly>true</SignAssembly>
11     <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
12     <PackageId>AsyncIO</PackageId>
13     <NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'net40' ">1.6.0</NetStandardImplicitPackageVersion>
14     <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
15     <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
16     <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
17     <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
18     <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
19     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
20     <GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
21     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
22   </PropertyGroup>
23 
24  
25 
26   <ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
27     <Reference Include="System" />
28     <Reference Include="Microsoft.CSharp" />
29   </ItemGroup>  
30 
31   <ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
32     <Reference Include="System" />
33     <Reference Include="Microsoft.CSharp" />
34   </ItemGroup>
35 
36    
37 
38 </Project>
View Code

 

NetMQ 解决方案替换为下:

 1 <Project Sdk="Microsoft.NET.Sdk">
 2 
 3   <PropertyGroup>
 4     <Description>A 100% native C# port of the lightweight high performance messaging library ZeroMQ</Description>
 5     <AssemblyTitle>NetMQ</AssemblyTitle>
 6     <VersionPrefix>4.0.0.0</VersionPrefix> 
 7     <TargetFrameworks>net40</TargetFrameworks>
 8     <DebugType>portable</DebugType>
 9     <AssemblyName>NetMQ</AssemblyName>
10     <AssemblyOriginatorKeyFile>./NetMQ.snk</AssemblyOriginatorKeyFile>
11     <SignAssembly>true</SignAssembly>
12     <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
13     <PackageId>NetMQ</PackageId>
14     <PackageTags>ZeroMQ;0MQ;CLRZMQ;NetMQ;Messaging;ZMQ;transport;distributed</PackageTags>
15     <PackageIconUrl>https://raw.githubusercontent.com/zeromq/netmq/master/img/NetMQ.ico</PackageIconUrl>
16     <PackageProjectUrl>https://github.com/zeromq/netmq</PackageProjectUrl>
17     <PackageLicenseUrl>https://github.com/zeromq/netmq/blob/master/COPYING.LESSER</PackageLicenseUrl>
18     <RepositoryType>git</RepositoryType>
19     <RepositoryUrl>https://github.com/zeromq/netmq</RepositoryUrl>
20     <PackageTargetFallback Condition=" '$(TargetFramework)' == 'net40'">$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
21     <NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'net40'">1.6.0</NetStandardImplicitPackageVersion>
22     <IncludeSymbols>true</IncludeSymbols>
23     <IncludeSource>true</IncludeSource>
24     <GenerateDocumentationFile>true</GenerateDocumentationFile>
25   </PropertyGroup>
26 
27   <ItemGroup>
28     <PackageReference Include="JetBrains.Annotations" Version="10.4.0">
29       <PrivateAssets>All</PrivateAssets>
30     </PackageReference>
31   </ItemGroup>
32 
33 
34  
35  
36 
37   <ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
38     <Reference Include="System.ServiceModel" />
39     <Reference Include="System" />
40     <Reference Include="Microsoft.CSharp" />
41   </ItemGroup>
42 
43   <ItemGroup>
44     <ProjectReference Include="..\..\..\AsyncIO\AsyncIO.csproj" />
45   </ItemGroup>
46  
47 
48 </Project>
View Code

 

转载于:https://www.cnblogs.com/endv/p/6807227.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值