Dec 5, 2008
(0 votes)

New Install Public Templates PowerShell script for EPiServer CMS R2

Those of you who have used the new Installation Manager in EPiServer CMS 5 R2 to install a site with the EPiServer Public Templates may have noticed an annoying "feature". The feature is that is doesn't update the PublicTemplates.proj file installed on the site with the URL you chose for the site. This means that when you open the project in Visual Studio you need to remember to update the URL in the project properties in order to use F5 debugging. The root cause of this is basically because the proj file is not in place when you think it is and therefore cannot be updated. The problem is described in more detail here.

Anyway, the problem is fixed in the next version of the Installation Manager (which has been renamed to Deployment Center, more of that to come soon), which will soon be released with our exciting new Relate+ product and the next version of the EPiServer Community product.

Here you will find a new version of the Public Templates PowerShell script for CMS R2 that updates the proj file with the site URL. All you need to do is download it and replace the existing one in your Program Files\EPiServer\CMS\5.2.375.7\Install\Modules\PublicTemplates folder. It's probably a good idea to copy the old one out first, just in case you need to revert back to it anytime.

Dec 05, 2008


Please login to comment.
Latest blogs
Preview multiple Visitor Groups directly while browsing your Optimizely site

Visitor groups are great - it's an easy way to add personalization towards market segments to your site. But it does come with it's own set of...

Allan Thraen | Sep 26, 2022 | Syndicated blog

The Report Center is finally back in Optimizely CMS 12

With Episerver.CMS.UI 12.12.0 the Report Center is finally re-introduced in the core product.

Tomas Hensrud Gulla | Sep 26, 2022 | Syndicated blog

Dynamic Route in ASP.NET Core When MapDynamicControllerRoute Does Not Work

Background Creating one of the add-on for Optimizely I had to deal with challenge to register dynamically route for the API controller. Dynamic rou...

valdis | Sep 25, 2022 | Syndicated blog

404 Error on Static Assets Within an Optimizely plugin

Background With the move to CMS 12 and .NET 5/6, developers are now able to build Plugins and Extensions using Razor Class Libraries (RCL).  These...

Mark Stott | Sep 23, 2022