【问题标题】:Dynamics 365 CrmSvcUtils no longer connectingDynamics 365 CrmSvcUtils 不再连接
【发布时间】:2018-01-22 17:02:02
【问题描述】:

目前,我遇到了使用 CrmSvcUtils 可执行文件将模型下载到 cs 类文件的问题。

与 Dynamics 365 的连接需要跨越 TLS 1.1+,因此在我拥有的应用程序中,我强制使用 1.2。但是我似乎无法让它与基于命令行的 CrmSvcUtils 一起使用。

有人有解决这个问题的办法吗?

【问题讨论】:

  • 您是否从nuget下载了包括crmsvcutil在内的最新工具?
  • 这就是答案,谢谢 Arun,如果您宣传您对回复的评论,我会将其标记为答案

标签: c# dynamics-crm microsoft-dynamics dynamics-365 dynamics-crm-365


【解决方案1】:

您必须从nuget store & replace 下载最新的核心工具。

同样的Powershell:

$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
$targetNugetExe = ".\nuget.exe"
Remove-Item .\Tools -Force -Recurse -ErrorAction Ignore
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
Set-Alias nuget $targetNugetExe -Scope Global -Verbose

##
##Download CoreTools
##
./nuget install  Microsoft.CrmSdk.CoreTools -O .\Tools
md .\Tools\CoreTools
$coreToolsFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.CoreTools.'}
move .\Tools\$coreToolsFolder\content\bin\coretools\*.* .\Tools\CoreTools
Remove-Item .\Tools\$coreToolsFolder -Force -Recurse

##
##Remove NuGet.exe
##
Remove-Item nuget.exe  

Read more.

【讨论】:

    猜你喜欢
    • 2018-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-21
    • 1970-01-01
    相关资源
    最近更新 更多