C# : dynamically get location of an assembly

This time I’m posting just a simple tip (because my memory is sloppy, yeah): I was playing a little bit with T4 templates and dynamic assembly generation and I needed to reference a couple of assembly included in my project. Unfortunately the adding a reference to the ReferencedAssemblies collection on...

1 minute read

SDL Tridion: move items across Publications

This is a quick tip for something that can create a lot of hassle sometimes. As you may be aware of, it’s impossible to copy/paste items across Publications. One option would be to create them manually, but what if they’re too many? Another option is to use the Content Porter....

1 minute read

Using Web API as a proxy for downloading files

Imagine this scenario: an ApiController Action that acts as a proxy to an external CDN for downloading files (yes, even large ones). The basic idea here is to use HttpClient to create an async request to the CDN passing also the optional range headers and then simply return the result...

5 minute read

Adding a custom MediaTypeFormatter to your WebAPI project

This is going to be easy. As many of the other posts of this blog, even this entry is due to an issue I was forced to face, this time with the marvelous IE8 😀 In a nutshell, I have a WebAPI project returning some nice json data. Everything works...

2 minute read