C#

Episerver ContentArea with AllowedTypes Specified by Interface

Background Once an interesting question was asked on Episerver Community Slack space how to work with ContentAreas and specifically [AllowedTypes] and specify restrictions based on interface. My answer wasn't quite helpful there and also I'm quite passionate about looking into the foreign code and understanding how platform is built - so I decided to write up a bit expanded version of the answer. According to aforementioned question you might have for example page type with following ContentArea definition (based on AlloyTech sample site): [ContentType(GUID = "19671657-B684-4D95-A61F-8DD4FE60D559")] public class…

Keep reading

Episerver DeveloperTools - UI Refresh

This blog post is about latest features and bug fixes added to v3.5 of Episerver DeveloperTools package…

Keep reading

Converting Azure WebJobs to .NET Core

Motivation Migrating something to .NET Core (while stuck with .NET Framework for a while due to surrounding platform dependency constraints) sounds intriguing and challenging at the same time. Our main motivator for the migration has been performance improvements, performance improvements and upcoming performance improvements seen throughout .NET Core. This blog post will walk you through steps we did for migration for one our web jobs over to .NET Core. As seen from pull request statistics - it's actually more removal that adding new code. Throwaway always feels good. Path wasn't…

Keep reading

Effectively Working with Git Submodules

Background During development of DbLocalizationProvider I had single repository in GitHub containing more that one package as result of the build. Initially there was just a EPiServer package to add support for database driven localization resources. Later realized that there is actually not so much to do to add support for Asp.Net Mvc (.NET Framework) applications and later also for .NET Core applications. This results into: packages for EPiServer applications packages for Asp.Net Mvc applications packages for Asp.Net Core applications abstract/core packages containing only general purpose…

Keep reading

LocalizationProvider Client Side Feature now also for Asp.Net Mvc Apps

There are sometimes moments when you just need to take deep inhale and add backward support for apps that most probably you will hardly see selected in "File > New Project". We do have some projects still based on "pure" Asp.Net Mvc that need client-side localization. Therefore adding support for this type of apps sounds like feature with "must have" label. At least for now. This applies to v5.5.1 and forward. However, if you are targeting .NET Core - support is…

Keep reading