zoukankan      html  css  js  c++  java
  • Dynamics 365-下载新版本的开发工具

    可以使用下面的Powershell脚本在NuGet下載最新的CRM开发工具。这些工具包括:

    ToolNuGet Package
    Code generation tool CrmSvcUtil.exe Microsoft.CrmSdk.CoreTools
    Configuration Migration tool DataMigrationUtility.exe Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf
    Package Deployer PackageDeployer.exe Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF
    Plug-in Registration Tool PluginRegistration.exe Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool
    SolutionPackager tool SolutionPackager.exe Microsoft.CrmSdk.CoreTools

      1. 打开Windows PowerShell

      2. cd ***,cd到具体的下载路径

      3. 复制下面的脚本语句到PowerShell并运行

    $sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
    $targetNugetExe = ".
    uget.exe"
    Remove-Item .Tools -Force -Recurse -ErrorAction Ignore
    Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
    Set-Alias nuget $targetNugetExe -Scope Global -Verbose
    
    ##
    ##Download Plugin Registration Tool
    ##
    ./nuget install Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool -O .Tools
    md .ToolsPluginRegistration
    $prtFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool.'}
    move .Tools$prtFolder	ools*.* .ToolsPluginRegistration
    Remove-Item .Tools$prtFolder -Force -Recurse
    
    ##
    ##Download CoreTools
    ##
    ./nuget install  Microsoft.CrmSdk.CoreTools -O .Tools
    md .ToolsCoreTools
    $coreToolsFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.CoreTools.'}
    move .Tools$coreToolsFoldercontentincoretools*.* .ToolsCoreTools
    Remove-Item .Tools$coreToolsFolder -Force -Recurse
    
    ##
    ##Download Configuration Migration
    ##
    ./nuget install  Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf -O .Tools
    md .ToolsConfigurationMigration
    $configMigFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf.'}
    move .Tools$configMigFolder	ools*.* .ToolsConfigurationMigration
    Remove-Item .Tools$configMigFolder -Force -Recurse
    
    ##
    ##Download Package Deployer 
    ##
    ./nuget install  Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF -O .Tools
    md .ToolsPackageDeployment
    $pdFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.PackageDeployment.Wpf.'}
    move .Tools$pdFolder	ools*.* .ToolsPackageDeployment
    Remove-Item .Tools$pdFolder -Force -Recurse
    
    ##
    ##Download Package Deployer PowerShell module
    ##
    ./nuget install Microsoft.CrmSdk.XrmTooling.PackageDeployment.PowerShell -O .Tools
    $pdPoshFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.PackageDeployment.PowerShell.'}
    move .Tools$pdPoshFolder	ools*.* .ToolsPackageDeployment.PowerShell
    Remove-Item .Tools$pdPoshFolder -Force -Recurse
    
    ##
    ##Remove NuGet.exe
    ##
    Remove-Item nuget.exe 

      4. 在对应的文件夹下,找到下载好的Tool

    • [Your folder]ToolsConfigurationMigration
    • [Your folder]ToolsCoreTools
    • [Your folder]ToolsPackageDeployment
    • [Your folder]ToolsPluginRegistration

     当需要下载最新版本的工具,重新运行上述脚本即可。

    官方文档:Download tools from NuGet

  • 相关阅读:
    sql server 的变量
    psycopg2 (python与postgresql)
    sublime text3 设置快速生成代码
    关于 Form 表单的 enctype 属性
    根据二进制流判断文件类型
    URL编码和Base64编码 (转)
    GZip 压缩及解压缩
    HttpWebRequest 请求 Api 及 异常处理
    c# BinaryWriter 和 BinaryReader
    JQ 上传文件(单个,多个,分片)
  • 原文地址:https://www.cnblogs.com/bennylam/p/9744155.html
Copyright © 2011-2022 走看看