yagasoft / DynamicsCrm-CodeGenerator

A Visual Studio extension that allows generating early bound classes for Microsoft Dynamics CRM entities based on a template file.
http://yagasoft.com
GNU General Public License v3.0
11 stars 7 forks source link

Shared Project #4

Open VanHinthem opened 3 years ago

VanHinthem commented 3 years ago

Those this also work in a shared project type?

yagasoft commented 3 years ago

Yes, you can use source control to share the configuration used to generate the entities. It's stored as JSON, so it's easy to merge with other branches.

VanHinthem commented 3 years ago

That not what I meant, I meant a "shared project type" in visual studio.

yagasoft commented 3 years ago

No, TT files are not supported in Shared Projects.

What you can do is add the TT file to another project as a container, add a symbolic link of the generated files in the 'shared project' folder in Windows pointing to the original files in the other project, and then add it to the 'shared project' in Visual Studio.

Windows Explorer:

Add the linked files to the SharedProject.

You could add the generated files as a direct link in the plugin project, but then you have to add all the generated files manually to every project, which might not be the most convenient.

I highly recommend that you generate a schema file per plugin project; for web services, you can use a single schema file.

AngelRodriguez8008 commented 3 years ago

Hi @yagasoft, Hi @VanHinthem,

I implemented a solution for this Issue, i can upload it in my Fork.

image

br

yagasoft commented 3 years ago

Hello, @AngelRodriguez8008 ,

It would be great if you would create a pull request, please. This project structure is used frequently and would benefit many people indeed.

AngelRodriguez8008 commented 3 years ago

Hi @yagasoft,

I did it one year ago or more, i remember your version was too complex to make the Changes that I needed & i decided to use original code from xairrick.

I have no time at the moment to make a Pull Request in your Fork, but I guest you can take a look what I did in the follow code and redo it.

CrmCodeGenerator.VSPackage/CrmCodeGenerator.VSPackage.vsct at Line 72

CrmCodeGenerator.VSPackage/Commands/ApplyCustomTool.cs

I can put it in my todo-list but it can take some time (months), until it get done.

br

yagasoft commented 3 years ago

Thank you, @AngelRodriguez8008 .

AngelRodriguez8008 commented 3 years ago

Your welcome @yagasoft ! Feel free to contact me if you need some help.