Sitemap

Tuesday, January 16, 2018

We can read link entity attributes by aliasing link entity or attributes. Here we will be discussing second point.

It is as simple as keeping alias attribute for each field with alias name. Here important note is , if you give alias name is same as filed or attribute name as shown below fetchXML, you don't need to type cast with "AliasedValue" to read this field. You can read the value direclty how you read parent attributes.

Thursday, January 4, 2018

Sometimes we do have requirement of using external dll in a plugin. So, to register our plugin we should merge it to make a single dll. Here we will be using ILMerge for merging the dlls. ILMerge is an utility which merges multiple .NET assemblies into a single assembly.Download ILMerge utility here

/out: This must be set before calling Merge. It specifies the path and filename that the target assembly will be written to.

/lib: If specified, this sets the directories to be used to search for input assemblies. We do set the path for .Net Framework 4.0.

/targetplatform: This method sets the .NET Framework for the target assembly to be the one specified by platform. Valid strings for the first argument are "v1", "v1.1", "v2", and "v4". The "v" is case insensitive and is also optional. This way ILMerge can be used to "cross-compile", i.e., it can run in one version of the framework and generate the target assembly so it will run under a different assembly. The second argument is the directory in which mscorlib.dll is to be found

/keyfile: When this is set before calling Merge, it specifies the path and filename to a .snk file. The target assembly will be signed with its contents and will then have a strong name