Philip Richardson

The Cloud: Iacta alea est

CRM Plugin Tool

clock March 31, 2008 18:57 by author philip

I added my little CRM Plugin Tool to the CRM 4.0 Customization 2.0.0.1 release.

The tool can be launched as a standalone exe or as a Visual Studio External Tool (it takes a file path as an optional argument). Use the tool to discover useful information about your Plugin Assemblies (Name, Version, Public Key Token, Culture and the Base 64 encoded string - for the Plugin Content property).

image

The code to do this is ultra simple - using some basic Reflection. It helps to know the right order of the Assembly Properties.

FileInfo fi = new FileInfo(path);
Assembly assembly = Assembly.LoadFile(path);
byte[] bytes = File.ReadAllBytes(path);
string[] assemblyProp = assembly.GetName().FullName.Split(",= ".ToCharArray(),
StringSplitOptions.RemoveEmptyEntries);
textBoxBase64.Text = Convert.ToBase64String(bytes);
textBoxCulture.Text = assemblyProp[4];
textBoxName.Text = assemblyProp[0];
textBoxPublicKeyToken.Text = assemblyProp[6];
textBoxVersion.Text = assemblyProp[2];
textBoxPath.Text = fi.FullName;

 

Enjoy!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


CRM 4.0 Customization Version Add-In

clock March 31, 2008 16:43 by author philip

I've just uploaded the CRM 4.0 Customization Version Add-In. This little Add-In helps CRM developers keep a record of the customizations on their systems. I've included the source code and a little configuration app - so it's super easy to install.

You can find the project's home page here: http://code.msdn.microsoft.com/crmversion.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Sign in

Feed

 RSS Feed

Powered by FeedBurner

Inside CRM Top 20 Bloggers

I'm at the #4 spot.

Contact

Work Email: philipri@microsoft.com

Personal Email: philip@philiprichardson.org

View Philip Richardson's profile on LinkedIn

Basecamp project management and collaboration

Join WebHost4Life.com

Categories


Search

Archive

Calendar

<<  March 2008  >>
SuMoTuWeThFrSa
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. All postings and code samples are provided 'AS IS' with no warranties, and confers no rights.

© Copyright 2008