Per Bjurström
Optimizely
May 13, 2014
visibility 7286
star star star star star
(5 votes)

New version of Visual Studio extension available

A few weeks ago we released an update to the Visual Studio extension to create new sites without using Deployment Center. With that update we made it possible to create new sites configured with all the required NuGet packages, much like how ASP.NET projects are working in Visual Studio.

Today we are releasing another update to include the Alloy demo sites in the Visual Studio extension, both the MVC and the WebForms version. 

We  combined the project templates to a single option in the “New Project” dialog to avoid having too many combinations and alternatives:

image

 

Instead we show an options dialog where you can select project templates, and a new option to add the built-in search capability (the EPiServer.Search NuGet package).

image

 

A nice aspect for sites created based on the Alloy templates is that you get custom namespaces which was not previously possible:

image

 

Another requested feature was the possibility to use some item templates in class libraries so we added that feature as well:

image

 

How do I download this update?

Under Tools –> “Extensions and updates” inside Visual Studio 2012 or 2013, search for “EPiServer” in the “Online”-section. Or the “Updates”-section if you already have it installed. As part of this release we are also in the process of updating the Getting Started guide and releasing an updated SDK. Release notes available on Visual Studio gallery.

May 13, 2014

Comments

Mari Jørgensen
Mari Jørgensen May 13, 2014 12:54 PM

Nice!

Eric
Eric May 13, 2014 02:23 PM

This looks great..Love your colors in vs btw ;)

Petter Klang
Petter Klang May 13, 2014 03:13 PM

Sweet!

So no magical access to EPiServer namespace with out using usings in the templates now! =)

janaka.podiralahamy
janaka.podiralahamy May 14, 2014 01:02 PM

i am getting this error,

Adding binding redirect for EPiServer.Packaging.CmdAPI .
Adding binding redirect for EPiServer.Packaging .
Processing C:\EPiServer\Sites\EPiServerSite2\packages\EPiServer.Packaging.3.1.4\tools\webconfig-baseline.config
Starting Deploy into EPiServerSite2
Processing C:\EPiServer\Sites\EPiServerSite2\packages\EPiServer.CMS.7.7.1\tools\EPiServer.Cms.Config
Copying EPiServerDB_2f65dbfa To EPiServerSite2 -> App_Data
Running C:\EPiServer\Sites\EPiServerSite2\packages\EPiServer.CMS.7.7.1\..\EPiServer.CMS.Core.7.7.1\tools\EPiServer.Cms.Core.sql into EPiServerDB_2f65dbfa
Database operation failed, will do retry 1 of 3 [Could not open new database 'EPiServerDB_2f65dbfa'. CREATE DATABASE is
aborted.
Cannot attach the file 'C:\EPiServer\Sites\EPiServerSite2\EPiServerSite2\App_Data\EPiServerDB_2f65dbfa.mdf' as database
'EPiServerDB_2f65dbfa'.
File activation failure. The physical file name "C:\EPiServer\Sites\EPiServerSite2\EPiServerSite2\App_Data\EPiServerDB_
2f65dbfa_log.ldf" may be incorrect.
The log cannot be rebuilt when the primary file is read-only.]


i used to be able to create a new site without a problem.

per
per May 14, 2014 01:34 PM

Janaka, that error means SQL LocalDB which runs under your account does not have access to that path. Make sure you give explicit access to that folder ("C:\EPiServer") to the account you are logged in as. Since LocalDB does not run elevated it is not enough to give access to a group such as Administrators, you have to give explicit access to the account you are logged in as. You should get the same problem when creating an ordinary ASP.NET site with a local database and then hitting F5. If this does not solve the problem please contact support.

steve@vividgroup.com.au
steve@vividgroup.com.au Dec 27, 2014 08:21 AM

How do you create a new CMS7 project rather than default 7.5? Release notes suggest that Changes in 7.5.394.2 have Support for both 7.0 and 7.5 projects.

per
per Jan 7, 2015 08:48 AM

The version you are refering to automatically picks the latest version so you would have to have only CMS 7 installed on the machine for it to work. It is probably easier to create a new web site using Deployment Center if you need to setup CMS 7.

Oct 5, 2015 11:52 AM

I installed 8.1.0.75 version of the plugin. 

When I created new project with alloytech content I am missing ldf file. There is only mdf file in AppData folder.

Is that ok ?

Also, I am getting the following error:

[Win32Exception (0x80004005): The system cannot find the file specified]

[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +92

error Please login to comment.
Latest blogs
Setting Up Cloudflare Orange-to-Orange for Optimizely DXP Customers

Large Optimizely DXP customers can often run into complex firewall, caching, and bot management requirements that don't quite fit into what is...

Jacob Pretorius | Dec 4, 2026

How to Fetch CMP DAM Listing Cards in Optimizely CMS 12 Using GraphQL

Introduction In an existing Optimizely CMS 12 application, listing cards are typically populated using CMS content retrieved through the existing...

Deepmala S | Dec 3, 2026

Which environment am I in? Adding an environment badge to Optimizely CMS 13

Sometimes it’s hard to keep track of which environment you’re working in. Development, Integration, Preproduction and Production all look pretty mu...

Pär Wissmark | Dec 2, 2026 |

Hiring Your First AI Teammate: What Optimizely's Virtual Teammates Mean for the Marketing Org Chart

The coworker who never needs the brief twice How many times this week did you paste the same context into an AI tool? Brand voice, the target...

Leonardo Bravo | Dec 2, 2026