如何在 Visual Studio 中将 Acumatica 默认 20.200.001 更新为 22.200.001 服务参考

问题描述 投票:0回答:1

我正在尝试将我的引用从 Acumatica 端点版本 20.200.001 更新到 22.200.001,因为只有更高版本包含发票行详细信息字段税收类别的映射。

当前参考

但是当我将这些引用更新为 Acumatica.Default_22.200.001(将所有版本更新到最新版本 5.3)时,我使用 Acumatica.Auth.Api 收到命名空间的此错误;之前工作得很好。

参考错误

Error   CS0234  The type or namespace name 'Auth' does not exist in the namespace 'Acumatica' (are you missing an assembly reference?)  SkillInvestAPIIntegration   C:\PROJECTS\MYOB\SkillInvest\CODE NOT MODIFIED\SkillInvestAPIIntegration\SkillInvestAPIIntegration\SkillInvestAPIIntegration\Rep\MYOBFunctions.cs   1   Active

我可以得到一些帮助吗,谢谢!

c# .net visual-studio-2019 acumatica
1个回答
0
投票

我能够使用以下方法加载新的 API 参考。

using Acumatica.Default_22_200_001.Model;
using Acumatica.RESTClient.Client;

using static Acumatica.RESTClient.AuthApi.AuthApiExtensions;
using static Acumatica.RESTClient.ContractBasedApi.ApiClientExtensions;  

var client = new ApiClient(siteURL);
client.Login(username, password, tenant, branch, locale);
© www.soinside.com 2019 - 2024. All rights reserved.