Microsoft.CrmSdk.XrmTooling.CoreAssembly 9.1.0.87

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.CrmSdk.XrmTooling.CoreAssembly --version 9.1.0.87                
NuGet\Install-Package Microsoft.CrmSdk.XrmTooling.CoreAssembly -Version 9.1.0.87                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.CrmSdk.XrmTooling.CoreAssembly" Version="9.1.0.87" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.CrmSdk.XrmTooling.CoreAssembly --version 9.1.0.87                
#r "nuget: Microsoft.CrmSdk.XrmTooling.CoreAssembly, 9.1.0.87"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.CrmSdk.XrmTooling.CoreAssembly as a Cake Addin
#addin nuget:?package=Microsoft.CrmSdk.XrmTooling.CoreAssembly&version=9.1.0.87

// Install Microsoft.CrmSdk.XrmTooling.CoreAssembly as a Cake Tool
#tool nuget:?package=Microsoft.CrmSdk.XrmTooling.CoreAssembly&version=9.1.0.87                

This package contains the official Microsoft.Xrm.Tooling.Connector assembly and has been authored by the Microsoft Common Data Service SDK team.

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (100)

Showing the top 5 NuGet packages that depend on Microsoft.CrmSdk.XrmTooling.CoreAssembly:

Package Downloads
MscrmTools.Xrm.Connection

Provides Winforms control to connect to Microsoft Dynamics CRM / 365 for Customer Engagement and Microsoft Dataverse deployments

FakeXrmEasy.9

Utilities to streamline unit testing in Dynamics CRM 365 by faking the IOrganizationService against an In-Memory context which runs blazing fast.

Microsoft.CrmSdk.XrmTooling.PackageDeployment

This package contains the following official Microsoft assemblies and has been authored by the Microsoft Common Data Service SDK team. - Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageExtentionBase.dll

Microsoft.CrmSdk.UII.CommonAssemblies

This package contains the following official Microsoft assemblies and has been authored by the Microsoft Dynamics 365 SDK team. - Microsoft.Uii.AifServices - Microsoft.Uii.Common - Microsoft.Uii.Common.Configuration - Microsoft.Uii.Common.Listeners - Microsoft.Uii.Common.Logging - Microsoft.Uii.Common.Logging.Providers - Microsoft.Uii.Common.Providers - Microsoft.Uii.Csr.Core - Microsoft.Uii.Csr.Win32Api

Microsoft.CrmSdk.XrmTooling.WpfControls

This package contains the following official Microsoft assemblies and has been authored by the Microsoft Common Data Service SDK team. - Microsoft.Xrm.Tooling.CrmConnectControl - Microsoft.Xrm.Tooling.Ui.Resources - Microsoft.Xrm.Tooling.WebResourceUtility

GitHub repositories (10)

Showing the top 5 popular GitHub repositories that depend on Microsoft.CrmSdk.XrmTooling.CoreAssembly:

Repository Stars
microsoft/PowerApps-Samples
Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
MscrmTools/XrmToolBox
An application that gather multiple tools to ease the customization and configuration of Microsoft Dynamics CRM/365/Dataverse/PowerApps
demianrasko/Dynamics-365-Workflow-Tools
Dynamics 365 Workflow Tools is a Community solution that expands Microsoft Dynamics 365 (CRM) Workflow features with lots of new posibilities. This helps you to build very advanced Codeless solutions in CRM.
microsoft/PowerPlatform-DataverseServiceClient
Code Replica for Microsoft.PowerPlatform.Dataverse.Client and supporting nuget packages.
scottdurow/SparkleXrm
An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
Version Downloads Last updated
9.1.1.65 94,977 7/13/2024
9.1.1.45 174,341 11/28/2023
9.1.1.44 36,675 11/8/2023
9.1.1.41 217,596 7/20/2023
9.1.1.32 155,352 4/21/2023
9.1.1.30 2,620 4/20/2023
9.1.1.27 62,779 3/13/2023
9.1.1.1 524,255 7/11/2022
9.1.0.110 293,843 4/25/2022
9.1.0.108 245,092 3/9/2022
9.1.0.92 526,576 10/25/2021
9.1.0.90 110,317 9/22/2021
9.1.0.88 147,290 8/30/2021
9.1.0.87 2,861 8/29/2021
9.1.0.86 103,778 8/25/2021
9.1.0.79 659,332 4/29/2021
9.1.0.77 70,327 4/7/2021
9.1.0.68 379,584 1/6/2021
9.1.0.64 194,739 11/20/2020
9.1.0.63 12,709 11/18/2020
9.1.0.51 489,540 8/13/2020
9.1.0.49 76,532 7/15/2020
9.1.0.46 64,147 7/1/2020
9.1.0.44 152,752 6/12/2020
9.1.0.43 49,606 6/2/2020
9.1.0.42 246,649 4/20/2020
9.1.0.41 2,505 4/20/2020
9.1.0.39 94,994 3/25/2020
9.1.0.38 237,244 2/11/2020
9.1.0.37 38,973 2/7/2020
9.1.0.26 202,042 12/18/2019
9.1.0.25 200,060 12/5/2019
9.1.0.21 169,332 10/25/2019
9.1.0.17 35,308 10/16/2019
9.1.0.13 229,640 9/11/2019
9.0.2.27 222,715 7/23/2019
9.0.2.25 39,186 7/18/2019
9.0.2.16 117,242 5/22/2019
9.0.2.12 258,044 2/25/2019
9.0.2.11 133,126 2/7/2019
9.0.2.7 250,231 10/24/2018
9.0.2.5 200,412 9/17/2018
9.0.2.4 313,048 7/6/2018
9.0.2.3 131,430 4/25/2018
9.0.0.7 338,428 11/15/2017
9.0.0.5 1,019,767 10/23/2017
9.0.0.4-Preview 58,449 8/29/2017
8.2.0.5 629,269 4/12/2017
8.2.0.4 76,229 3/22/2017
8.2.0.2 264,686 12/21/2016
8.2.0.1 233,089 12/10/2016
8.1.0.2 172,335 5/26/2016
8.1.0.1 22,930 5/9/2016
8.1.0-preview 2,198 4/21/2016
8.0.2 19,380 2/20/2016
8.0.0 82,513 12/3/2015
7.1.1.1 45,254 8/26/2015
7.1.0 134,638 4/28/2015
7.1.0-preview 1,886 3/17/2015
7.0.1 4,073 3/10/2015
7.0.0.1 7,438 12/2/2014
6.1.1 23,255 9/18/2014
6.1.0.1 2,689 7/15/2014
6.1.0 7,747 6/17/2014

This package contains assemblies for Dynamics 365 (online and on-premises). These assemblies require application development using the Microsoft .NET Framework 4.6.2 or later.

9.1.0.87:
Updating Base dependency for CrmSdk.CoreAssemblies to 9.0.2.42 +

9.1.0.86:
Updated for Current Dataverse SDK
Updated behavior of ImportSolutionAsync to leverage updated Dataverse behavior post 9.2 release.
Updated Display name for Northamerica 2 Region to reflect that it is more commonly know as GCC.
Updated Newtonsoft.Json to v11.0.2 to match Dataverse server.

9.1.0.79:
Adding EnableAffinityCookie to allow for override of Affinity behavior when interacting with Dataverse.
   In general, users should not manipulate this property. more details can be found here: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/api-limits#remove-the-affinity-cookie
Adding support for enhanced features for solution import.

9.1.0.77:
Added support to auto retry 503 server unavailable network errors
Added support to allow for callers to add custom headers to the request to Dataverse - this is intended for Microsoft releated consumers only.

9.1.0.68:
Fixed an issue where BypassPluginExecution property on request was not being understood properly by the server.

9.1.0.64:
Updated minimum required Microsoft.Xrm.Sdk.dll assembly version to Microsoft.CrmSdk.CoreAssemblies.9.0.2.25.
Warning!, failure to update to this or higher level assembly will result in the following error:
       Method not found: 'Void Microsoft.Xrm.Sdk.ParameterCollection.AddOrUpdateIfNotNull(System.String, System.Object)'.
   
9.1.0.63:
Added new public property to Read out InMemory Logs in string list format or Tuple(datetime,logevent) format.
Added new public property for OrganizationDetail Information called "OrganizationDetail" for the currently connected environment.
Added new enum for ImportSolution additional property options called "ImportSolutionProperties" - this contains valid options for additional properties for the ImportSolution handler
Adding Switzerland Geo to Regions List.
Added support for bypassing custom Plug-in Execution during SDK Operation.  
   This is a special use capability that requires a specialized permission in the CDS infrastructure to use.
   Currently this is only permitted for use by users that have the System Administrator Security Role.
Fixed an issue with .Clone not correctly supporting adding telemetry handlers to cloned connections
Fixed an issue with telemetry for the client that was using incorrect format for useragent content

9.1.0.51:
Added initial support for in memory log capture support.

9.1.0.49:
Fixed an issue with sovereign cloud discovery reference data that would prevent a login control from picking the correct global discovery server when connecting.

9.1.0.44:
Fixed Authority property data loss post clone process
Fixed an error with connection string based IFD Auth flows that slipped though testing.
Note: connection strings for IFD should no longer use the formation host/org and instead just use the format https://org.hostname/.  this is the same pattern used for connecting to online.

9.1.0.43:
Fixed an error where discovery would be used when using AD and IFD to connect to onpremise even if connection strings where used.
Up-taking new CoreSDK release.

9.1.0.42:
Fixed an error with setting CallerId when ClientSecret Auth type is used.
Thanks for all the bug reports on this and repro's that really helped us run it down.

9.1.0.39:
Correcting an internally Nuget dependency issue.  No Public changes
Up-taking new CoreSDK release

9.1.0.38:
Up-taking new CoreSDK release

9.1.0.37:
Internal fixes to unify the way in which online and onprem instances were determined from the URI provided.
Added new Static Property on Utilities called IsValidOnlineHost, this takes a URL and determines if it a valid OnLine URI for the CDS Service

9.1.0.26:
Updated CRMSDK baseline dependency to match what is currently required for this assembly to function correctly
Fixed a bug Null Object Error that would occur occasionally during connect when many concurrent connects were run.
This would typically happen if a developer used a Task.Wait behavior to create a stack of connections at once.
Fixed a bug that would prevent logs from being generated even when verbose tracing was enabled.


9.1.0.25:
Added Support for new properties in discovery response.
Added:
Tenant Id - ID of the tenant that the instance resides in
Environment Id - ID of the PowerPlatform Environment that the instance resides in
UrlName - Host name for the target instance.
Fixed a bug where the second ( or third ) connection string attempt in the same process would cause the client to try to reuse the current connection.
Fixed a bug where the SDK Version Property was not properly returning from the CrmServiceClient

9.1.0.21:
Fixed a bug with how errors are handled when they are raised from ADAL 3.19+.  MFA Force Login will now work properly again.
Fixed an issue with Current user login failing after discovery process.
Added 3 new GEO's to Selection List.
Region Name - RegionCode:
United Arab Emirates - UAE
South Africa - ZAF
Germany (Go Local) - GER

9.1.0.17:
Updating for 9.1.0.8833 CDS/XRM release
Updated default response sizes to support more verbose error messages from CDS

9.1.0.13:
**BREAKING CHANGE**
ADAL 3.19+ is now required for this library.  ADAL 2.x clients will need to be updated to use ADAL 3.x+
ImportSolution, ImportSolutionAsync method signature was changed to remove optional "solutionname" parameter. This was intended for internal use only.

Updates:
Added Support for Current User ID login when using Online flows with oAuth ( Including constructor/connection string support )
Added Support for ClientID Secret Auth when using oAuth flows. ( Including constructor/connection string support )
Fixed an issue with Clone that would not clone the Retry Properties if they were set by property and not via App.config
Optimized Token Refresh logic for oAuth connections.
Updated Telemetry some Telemetry information to report version of CrmServiceClient in use

9.0.2.25:
Added support for France and New US Geo's
Added new behavior to return the full login error when initial connect fails in LastException.
Fixed https activation issue introduced by .net 4.8. - This should no longer require http activation to be enabled on windows.
Fixed issue where a long running cloned connection loses its access token.

9.0.2.16:
Added native support for handing throttling messages from server.
Fixed issue where a cloned connection's token could time out in a way that was not detected.
When failing, this would result in a mid operation Authentication failure reporting something like 'Anonymous Access Failed'

9.0.2.14:
Added Support for China Geo
Minor changes to logging of Import Solution Activities

9.0.2.12:
Fixed bug in CrmServiceClient which would cause some OnPrem connections to fail with an error "Item already added to List"
Minor Pref Improvements

9.0.2.11:
Updated to include Fixed version of CrmServiceClient and login control for new US Geo ( US Gov High )

9.0.2.10:
Added Property to get current accesstoken to be used for Token Exchange requests. - Only available in oAuth mode
Fixed User reported bug with Early Binding not working correctly for WS-TRUST based auth type.

9.0.2.9:
.Net 4.6.2 is now required for this assembly.
Warning! : by User request, the limitation on max ADAL version has been removed from this package. However anything higher then ADAL 2.9.x will cause this assembly to fail when using oAuth based authentication.
Added resiliency to "GET" operations in the API to improve API reliability.
Added Support for new GEO,  "USGov High" with deploymentRegion=USGov
Added New Property called "ForceServerMetadataCacheConsistency"
-warning:
This will force the CDS server to refresh the current metadata cache with current DB config.
Note, that this is a performance impacting property.
Use of this flag will slow down operations server side as the server is required to check for consistency of the platform metadata against disk on each API call executed.
It is recommended to use this ONLY in conjunction with solution import or delete operations.
Updated default settings for Retry of retryable failures,  Delay between retrys is now 5 seconds with a max retry count of 10
Major cleanup pass on logging of errors,  Error logging should be more concise now.


9.0.2.8:
Fixed a bug where the request id property, when passed on an organization request or webRequest, would not be honored.
Added Request Id's to Async requests for SolutionImportAsync and DeleteAndPromoteSolutionAsync.
Added verbose log events for reporting request ids from Async requests.

9.0.2.7:
Fixed a bug that would occur when using oAuth based login where the same user windows session  ( login to windows ) was used to then connect to more than one user of CDS/CRM in the same domain.
Example of failure:
user contoso\Jdoe (shared account) is used to login into a windows desktop.
On that desktop cdsuser1@contoso.com is used to login into CDS,  then a second application is launched and the user cdsuser2@contoso.com is used to login into CDS.
This would result in login failure for the second user with a error indicating that ADAL could not determine which token to use to login.
Fixed a bug in ExecuteCrmWebRequest where some http success codes would be incorrectly seen as a fault.

Added new property on CrmServiceClient called MaxConnectionTimeout to allow you to set MaxConnectionTimeout of any given action.
This property works in conjunction with the existing AppSetting MaxConnectionTimeoutMinuets that can be set in the app.config file.
if both are set, the property on CrmServiceClient is what is used.
Note:  this is a global property and cannot be changed once the connection is established.
Note2: this is subject to network controls imposed by the network between your client and the CDS Service endpoint.

Added new property on CrmServiceClient called SessionTrackingId to allow you to track all SDK operations made in a process as a given session.
When set, all operations executed by your application via this CrmServiceClient will be tagged with SessionID you provide.
This property is primary used by Microsoft Support to help troubleshoot issues, and if available, will speed the identification of issues.

Updated behavior to block use of token cache files when the setting CacheCredentials = false
Updated behavior of ExecuteCrmWebRequest to auto include oData 4.0 default headers for CDS.
This call now includes the following headers automatically:
Accept=application/json
OData-MaxVersion=4.0
OData-Version=4.0
If-None-Match=
These headers can be overridden by passing the same key with the updated value via the customHeaders parameter.
Updated behavior of error loggers to include SessionID when present and tag root errors with a visual key " |=> " to allow for parsing.

**POSSIBLE BREAKING CHANGE**
Updated behavior of connections string to *NOT* use discovery by default. This will require the URL passed to be the correct URL to connect to the CDS instance


9.0.2.5:
Fixed a bug with using ExecuteCrmWebRequest where SkipDiscovery was also used that would cause the command to fail with a malformed URI error.
Fix to support SSO login, issue manifested as unable to execute a SSO login on second attempt.
Fix to make local metadata cache instance aware,
Issue manifested in a single client process where more then one connection was made to different CDS instances and the metadata helpers were used.  The Metadata would not be instance specific.

Streamlined .Clone support by removing unneeded WhoAmI validation call.
Added new .Clone override to allow a developer to pass an assembly reference to the .Clone method to use when establishing strong types for that connection.
Added addition error log details when a fault is detected
Added settings to control inline retry of requests when request is failed due to a network related issue.
ApiOperationRetryCountOverride - count of retries before the connection gives up.  default is 3.
ApiOperationRetryDelayOverride - Time the system waits between retries in seconds.  default is 1.

9.0.2.4:
Added support for retrying SDK request if the server throws a retriable errors.
ImportSolutionToCrmAsync –
Returns an AsyncOperation ID that must be polled for solution Import competition or failure.
Note, Async jobs are subject to Async queueing and overhead, thus use this with caution.
DeleteAndPromoteSolutionAsync –
Returns an AsyncOperation ID that must be polled for competition
Note: DeleteAndPromote Async support is not generally available to all regions and versions of the platform.  If this not available the async job with fail immediately.
Note: Async jobs are subject to Async queueing and overhead, thus use this with caution.
Added support for retrying SDK request if the server throws a retriable errors.
Modified Package to include Json.net as a proper nuget reference.
Modified logging to report time lost to threading blocks (threading blocks occur when the service client is being used in a multithreaded application)

9.0.2.3:
Added new dependencies:
Json.net version 6.0.0.0
Microsoft.Rest.ClientRuntime 3.0.0.0
Added Support for Caller ID using AAD Object ID of caller -
Added new property on CrmServiceClient: CallerAADObjectId
Supported for 8.1 and later.
Added New Method ExecuteCrmWebRequest
This method supports using the XRM WebAPI directly from the CRMServiceClient.
Supports only oAuth and Certificate Auth connection types
Supported for 8.0 and later.
Supports Common request types and supports batch execute.
Added Global Discovery Support for Instance lookup
Global discovery is now used for all lookup, both regional and global (Online Region = Don't Know) when OAuth is used, except where special region rules are required.
Note: Germany and North America 2 are not scanned when Online Region = Don't Know is selected.
Added SkipDiscovery to all connection string variants.
Added Certificate support for constructor variants.
Fixed issue with allowing discovery selection using onPrem and OAuth.
Fixed an issue with older On-Prem ADFS instances that do not require a resource URI.

**Special notes:
Added additional telemetry support to connection requests
This will add the process name of the calling process (if available) to help with troubleshooting and support requests.
Added request IDs to all requests to help with troubleshooting and support requests.
These will appear only when verbose logging is enabled.


9.0.0.7: Fixed to allow External Authentication Type to function in released versions of Xrm.Tooling.Connector.dll
9.0.0.5: 9.0 Initial Release
9.0.0.2-Preview:
Improved cache system for faster reconnects.
New interfaces to support certificate based auth.
Added support to skip discovery
Added Clone connection support of OAuth based connections
Added New Authentication type to support externally hosted auth.
**Note: Interface for Xrm.Tooling.Connector is *NOT* Final. there are new API interfaces that will be surfaced before GA.

8.2.0.5:
Fix to memory leak in Microsoft.Xrm.Tooling.Connector.TraceLoggerBase.  Trace Listener collection would not be released within a process over a very long time frame over multiple connections. This would manifest as increasing memory consumption over a very long period.
Fix cleans this up on the .dispose() call on the CrmServiceClient.
Note: if you have built your own logger based on the Microsoft.Xrm.Tooling.Connector.TraceLoggerBase, you must call .dispose() when you are done with it to clean up the listener collection assigned to it.

8.2.0.4:
Added:
Added Support for United Kingdom CRM GEO

Added new behavior to DynamicsFileLogTraceListener.  You can now specify a rolling log behavior based on log size.  To enabled this, add the MaxFileSize key set to the size in bytes and the MaxFileCount set to the max number of files to the Microsoft.Xrm.Tooling.Connector.DynamicsFileLogTraceListener in your app.config.

8.2.0.2: Fix of dependency issue in nuget package. Now properly requires .net 4.5.2 as a baseline
8.2.0.1: Assembly version changed to 2.2.0.0
Fixes:
Connection String support:
Corrected issues with connection string login to properly support the "never prompt" behavior.
Corrected issue were the connector would create a new instance of the connection unnecessarily – impacted ONLY connection string process.
RequireNewInstance=True will now properly create a unique connection instance, RequireNewInstance = false, will now properly reuse the cached instance of the connection,  default is ‘false’

Streamlined re-use of existing connection code when a new instance is called for by a constructor to remove unnecessary calls.
Modified Caching support to return the full object from in memory cache vs just the core connection.
Fixed token cache behavior to work properly when assembly is resident on an Azure WebApp or Function.
Fixed ADAL nuget dependency issue to allow assembly to consumed directly from nuget into an Azure function.
Fixed MFA ( multifactor authentication ) to properly handle password expired, and password to MFA scenarios

Added:
New Function Utility.GetOrgnameAndOnlineRegionFromServiceUri, Used to parse a Org URL for the correct online region and org name.
CrmServiceClient now implements IDisposable to allow for the object to be explicitly disposed.

8.1.0.1: Updated to a newer version of Microsoft.IdentityModel.Clients.ActiveDirectory as required by the Xrm Tooling assemblies
8.1.0: CRM Online 2016 Update 1
8.1-preview: Pre-release CRM Online 2016 Update 1
8.0.2: UR1 (Update Rollup 1)
8.0.0: RTM