Solutions in mscrm dynamics 2011 - dynamics-crm

I have few question regarding solution:
How to lock the solution in the mscrm dynamics 2011 ?
How would we manage , if multiple developer are working in the similar solution?
What is solution resolution conflict , How do we resolve ?

There is no way to specifically lock the solution within Microsoft Dynamics CRM. We utilise TFS and Visual Studio to ensure that if a developer is working on Entity X, then they follow standard procedure to check in and check out the EntityX.OnLoad.js and EntityX.OnChange.js jscript files
Careful management of development tasks and who is working on what aspect of the solution. Where possible, we try to segregate entities to different developers at the beginning of the development phase. During the UAT/defect resolution phases, we make individual developers responsible for entire entities.
There is no automated way to resolve this, conflicts will have to be managed manually. It is very easy for a developer to overwrite somebody else's changes with a susequent publish of the solution. This is where it helps to use tools like TFS/VS.NET to manage the JScript. It doesn't, however, help with the form configurations.

Related

Dynamics 365 Plugin Dev Tools

What tools are you using for CRM plugin development?
I used both "Dynamics 365 Developer Toolkit" and "Dynamics 365 Developer Extensions" previously. Unfortunately, The "Dynamics 365 Developer Toolkit" no longer works reliably for me in VS 2019 (yes, I followed the steps to update the vsix file). I looks like Jason Lattimer's has stopped making the "Dynamics 365 Developer Extensions".
Thanks!
Personally I use none, but rely on an Azure DevOps pipeline to deploy everything.
For client side development I heavily use Fiddler 4 with auto responder rules with a local webpack devserver. I am not sure how to improve this process much more.
For serverside Plugins I prefer using ILMerge Build Tasks (check nuget) and separate the IPlugin interface implementation from my code so I can easily write unit tests for that. I do not use testing libraries like EasyRepro or XrmFakeEasy. I don't think they add a big benefit and more or less negate one of the best effects of unit testing. Creating good testable code.
For plugin deployment I currently use spkl by Scott Durrow and it is working fine so far.
For generating early bound classes I use a custom .bat file that actually just calls the CrmSvcUtil.exe with a couple of extra .dll files that helps creating enums instead of optionsets.
I am not a huge fan of toolkits or templates that dictate how you have to write your stuff, because most of them embrace bad programming patterns. For example the XrmToolkit forces you to use a certain folder structure for your clientside scripts to not mess up your crm system and so on.
XrmToolkit is a commercial Dynamics 365/CDS development add-on that is actively maintained and supports Visual Studio 2019.
I have been relying on it for years to assist with generating proxy classes, registering and publishing plugins, publishing web resources on save, etc.
I have no affiliation with XrmToolkit.
You can use Microsoft.net framework with visual studio or visual studio code for implement dynamics 365 plugins and register that in plugin registration tools.
• Write a plugin
• Register a plugin

Visual Studio Online Dashboard for Multiple Projects

I'm having trouble figuring out whether this exists.
I've got multiple projects in Visual Studio Online, and each one of these has its own dashboard where you can add widgets to see useful stuff like build progress.
I'm wondering whether I can use one central dashboard to see this information for all of my projects, but I can't find it. Anyone had any luck?
The short answer is no. In TFS (and VSTS) you have Collections (accessible in TFS but not accessible in VSTS), then Team Projects, then Projects/Repositories. In TFS OnPrem you can do some 'magic' to build queries that cross the Team Project boundaries but it's not supported or even recommended.
If you are looking for a way to have information about multiple Team Projects, for an OnPrem version of TFS you would use SQL Report Server. This option is not available with VSTS so your only option is Power BI.
This is exactly the use-case for Teams. Teams allow you to, within a single team project, manage and report on multiple simultaneous development efforts, including reporting across team boundaries and in aggregate. The current recommendation is to keep everything contained in a single team projects and use teams instead.

How to get the code of a Dynamics CRM online solution?

My case is the next one: We have a Dynamics CRM online 2016 with some solutions that a third party created and I need to bring the whole code of one solution, I need to see the code of all the plugins, workflows and Javascript files that the solution has.
I tried in Visual Studio creating a new Dynamics CRM project and then select "New Visual Studio Solution for Dynamics CRM". Then I connected to our Dynamics CRM server and I chose the solution that I wanted. The problem is that with these steps only brings me the structure of the solution with its plugins and workflow but it doesn't bring me the code (plugins and workflows code) that is what I actually wanted. I need to modify a plugin that is already done by the third party company.
I will appreciate if someone can help me with my question. I'm new in the community and any advice will be appreciate.
New Dynamics CRM project
Plugins are compiled and stored on the disk/database as dlls. So unless you own the source code, there is no way to achieve what you are trying to do.
What you can try doing though it to use a decompiler like dotpeek to extract the source if it is not obfuscated. You can then copy the source and make necessary changes, deploy the plugin and disable the other plugin.
Have you considered reaching out to the third party vendor? They might be able to handle your issue a lot better than trying to extract the source through a complex method only to find out it still will take several days to understand their approach properly. You would think Occam's Razor would apply here.

Search between different TFS / projects - visual studio

Got 5 different TFS, is there a way to search in all TFS's? Visual studio plugin?
Right now I've downloaded all the source code to my local machine and turned on indexing on serveral filetypes (properties and inside files)..
If anyone has the same problem, how do you solve this kind of problem?
Never heard this kind of tools or plugin.
In a sense, there are different Application Lifecycle Management system. They have different servers, SQL servers, users, permission settings and so on. Searching between them, how could this be possible to achieve. Unless, you choose to migrate different projects to one instance of TFS.
OpsHub Integration Manager supports bi-directional synchronization between a wide variety of systems including Team Foundation Server and Visual Studio Online. It can be used for bi-directional sync between TFS and VSO. For more information please reach out to OpsHub at http://www.opshub.com/main/index.php/company/contactus

Create a Sharepoint site populated with default settings for an existing team project in TFS 2012

Has Microsoft addressed the difficulty of creating a SP site after creating the Team Project in TFS 2012? I am aware of the methods outlined here, but I was hoping they had come up with something slicker in the new version. If not, does anybody know of a better method or tool than the one suggested in the previous link?
The TFS Power Tools has a command tfpt addprojectportal that will create the SharePoint site for you after the Team Project has already been created. You will need to know process template that was used to create the team project. You will be able to find all the options you need for the command by using the /? switch.

Resources