如何在ASP.NET Core vscode中添加system.servicemodal包

时间:2018-11-22 09:09:32

标签: visual-studio-code

我是.NET Core的新手,正在尝试使用WCF服务。当我使用生成的代理类和配置并尝试使用dotnet运行时,使用Microsoft SDKs / Windows / v7.0A / Bin中的svcutil生成了代理类。出现错误

error CS0246: The type or namespace name 'Order' could not be found (are you missing a using directive or an assembly reference?)

error CS0234: The type or namespace name 'MessageContractAttributeAttribute' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?)

error CS0246: The type or namespace name 'IsWrapped' could not be found (are you missing a using directive or an assembly reference?)

error CS0234: The type or namespace name 'OperationContractAttributeAttribute' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?)

试图在vscode中添加System.ServiceModel.Primitives,但没有运气出错

error NU1100: Unable to resolve 'System.ServiceModel.Primitives (>= 4.5.3)' for '.NETCoreApp,Version=v2.1'

尝试以下步骤

How to add assembly references in Visual Studio Code?

我找不到system.serviceModal程序集

任何人都可以解决这些问题

0 个答案:

没有答案