xairrick / crmcodegenerator Goto Github PK
View Code? Open in Web Editor NEWDynamics CRM Code Generator for Visual Studio
License: MIT License
Dynamics CRM Code Generator for Visual Studio
License: MIT License
I have Dynamics 365 Sales and its connection include orgname.crm3.dyanamics.com. I am not able to find relevant server name in the drop down menu. I am not sure whether I am missing anything. Thanks in advance for your help.
Hi Eric
I've a problem with duplicate code generation using the extended V2 template from 15.0.4, specifically for the Campaign entity N:N relationships. I've reverted to the template from 1.0.4 for now.
The campaigncampaign_association relationship only appears on the entity once, though, the Load_campaigncampaign_association method and Referencedcampaigncampaign_association property is generated twice, along with the duplicate campaigncampaign_association constant in the ManyToMany class.
I've attached a sample of the file.
ExtendedV2.zip
Let me know if there's anything else you need from me.
Maruf reported that this is not working on Visual Studio 2017 Community Edition. I've never tested on community edition.
After installing this extension on VS 2015 I get error message saying:
Microsoft Visual Studio
The 'CrmCodeGenerator_VSPackagePackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\urbonjuo\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
Continue to show this error message?
Yes No
In log file I found this:
ERROR LegacySitePackage failed for package [CrmCodeGenerator_VSPackagePackage]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) at Microsoft.VisualStudio.Shell.Package.RegisterToolboxItemDiscoveryFactories() at Microsoft.VisualStudio.Shell.Package.Initialize() at CrmCodeGenerator.VSPackage.CrmCodeGenerator_VSPackagePackage.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. {D57CC223-384B-41CC-B5D0-814A71CE8D61} 80070002 VisualStudio
Looks like it's trying to load VS v15 assembly, witch is VS 2017, but I don't have it installed, I'm using 2015 (v14).
Regards.
mistake when generating classes.
Below I will give an example of the work of the standard mechanism of the utility.
[System.Runtime.Serialization.DataContractAttribute()]
[Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("new_bankgroup")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "8.0.1.7297")]
public partial class new_BankGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
{
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_bankgroup")]
public string new_BankGroup1 // correct
{
get
{
return this.GetAttributeValue("new_bankgroup");
}
set
{
this.OnPropertyChanging("new_BankGroup1");
this.SetAttributeValue("new_bankgroup", value);
this.OnPropertyChanged("new_BankGroup1");
}
}
}
And you template.
[System.Runtime.Serialization.DataContractAttribute()]
[Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("new_bankgroup")]
public partial class new_BankGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
{
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_bankgroup")]
public string new_BankGroup // error name property == name class
{
get
{
return this.GetAttributeValue("new_bankgroup");
}
set
{
this.OnPropertyChanging("new_BankGroup");
this.SetAttributeValue("new_bankgroup", value);
this.OnPropertyChanged("new_BankGroup");
}
}
}
It's been reported that the tool doesn't work in AspNetCore projects. "...It chokes on dependencies like System.Runtime.Serialization..."
[System.Runtime.Serialization.DataContractAttribute()] public enum AccountState { [System.Runtime.Serialization.EnumMemberAttribute()] = 0, [System.Runtime.Serialization.EnumMemberAttribute()] _2 = 1, }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.