CRM 2011 Online Plugin Uploader to support CI
D

2

21

I'm involved in developing a sandboxed Microsoft Dynamics CRM 2011 Online plugin and have a set of tests that I can drive from a xUnit front end on my local machine given that I right-click the Package and select the Deploy option (and resort to using the plugin loader sample when that doesn't work).

I'd like to be able to automate the running of my tests on my CI rig, where I'll need it to upload a fresh binary as part of each run.

We've looked at http://pluginregcrm2011.codeplex.com/ but it has bugs that prevent it working for Online and in short looks like it's no longer being maintained and I'm not keen to take ownership of what should be a fundamental tool that a platform/ecosystem should just have.

Is anyone using that tool or another plugin uploader non-interactively? Am I missing something?

Diametral answered 30/1, 2012 at 14:40 Comment(3)
Have you looked at the source of the plugin registration code? You should definitely be able to tap into what it does.Uglify
I know, it's only code and it can all be fixed - I was just hoping that a non-trivial dev platform that competes with other serious platforms might have an automated deploy story that doesnt involve me hacking about in the MS (or dev=rived works) sample-grade code. Is that really too much to expect - not in my world hence the question...Diametral
BTW a 200 pt bounty on this expired with no answers. A bit of a sad state of affairs...Diametral
G
3

I know I'm late with my answer and I`m pretty sure that you already have found a solution which is working for you.

However I felt the same pain and I have hacked a small application which could be used to simply update the plugin assembly, without doing any configuration work.

PluginAssemblyLoader -f "C:\MyPlugin.dll" -c "Url=http://crmserver/org;"

Please see http://msdyncrm-contrib.github.io/PluginAssemblyLoader

Gogh answered 5/6, 2013 at 9:31 Comment(2)
Thanks - looks good in principle; my main constraint is I want it to work against CRM online which from the homepage it seems to do. Will accept if/when I confirm it actually works [which may take some time as the component which this automation would apply is not currently under active development but that can all change very quickly of course] (or we have lots of people using it in their CI and/or CD rigs satisfactorily).Diametral
@RubenBartelink no need to hurry. I just stumbled over your question a while ago and I thought you might be still interested. I've made a quick test with CRM Online and it was working for meGogh
S
2

There isn't an easy OOB experience with this but the CRM 2011 Developer Toolkit just uses a set of MSBuild targets that you can call yourself. It's just MSBuild, so you could hook it into your CI build if required. If you install or just extract the Developer Toolkit MSI in the SDK you'll find the following two files in there...

Microsoft.CrmdeveloperTools.CrmClient.dll
Microsoft.CrmdeveloperTools.CrmClient.targets

As an aside it would be nice if MS would open source this as the current implementation uses predominantly sealed and internal classes within the custom tasks.

Squab answered 2/10, 2012 at 7:21 Comment(1)
+1 Belated thanks for the response; must have a look. I had ruled it out (and won't be surprised if digging confirms my suspicion) on the basis that while it's all obviously MSBuild, I'm guessing its pretty intimately tied to Visual Studio (and popping dialogs to get credentials). I hope I was wrong then and/or will be in a newer version. Have you tried this yourself and had any success?Diametral

© 2022 - 2024 — McMap. All rights reserved.