November Happy Hour will be moved to Thursday December 5th.

Visual studio extension issue vs2017 latest release

Vote:
 

episerver visual studio extension does not work 

with latest lelease  of vs2017 15.6.0 or 15.6.1

#189095
Mar 11, 2018 8:33
Vote:
 

Having the same issue.

  • VS2017 15.6.1
  • Episerver VS extension 11.1.0.340

To clarify a bit, creating a new Episerver site works but not the Alloy templates. Alloy templates gives error that trying to use .net framework 4.5

Visual Studio UI for new project has changed to show the .net framwork selection in the lower left corner but this is not visible when creating Episerver site using the extension.

The Alloy template doesn't use the last selected framework but the Episerver site uses the last selected framework.

For example create empty MVC web site using framework 4.6.1 and then create Episerver site to the same solution (Episerver site uses framework 4.6.1)

Add another MVC empty site to the solution but use framework 4.7.1.

Then add another Episerver site to the solution and this site now uses 4.7.1 (remember the selection made last time when creating MVC site)

Update:

- uninstall and reinstall of the Episerver VS extension fixed the issue (there still isn't the option to choose the framework but now it honors the last selected framework)

#189096
Edited, Mar 11, 2018 21:17
Vote:
 

Thanks.

Creating a .netframework project before creating episerver project which picked up the last saved .net framework version and it being 4.7.1, it worked.

But there is no way to select .net framework version while creaing episerver project which was there upto VS2017 v 15.5

#189101
Mar 12, 2018 8:59
Vote:
 

Creating independently Alloy template project has the same issue but creating this as a second project in a solution having an MVC project works.

#189102
Mar 12, 2018 9:06
Vote:
 

I have the same issue, and I've tried following the descriptions here, but so far no luck... I'm not able to get any of the Epsierver projects to install correctly, they all give me the error "Could not install package 'EPiServer.CMS.Core 11.3.4'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5'..."

See also: https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2018/3/can39t-create-alloy-project-with-vs-2017-v15-6-3/

#189589
Mar 21, 2018 8:59
Vote:
 

Please follow the steps below:

  1. Create an MVC project and give the solution the name you want.Please select dotnet framework version you want which has to be the latest version.
  2. Then add episerver project to the solution.
  3. Finally remove the MVC project from the solution.

This will work then as the episerver project will pick up the correct version or you have the choice to change it.

#190068
Mar 31, 2018 19:06
Vote:
 

can confirm that with no reinstall everything works as expected in VS 15.6.4. epi site created in empty solution uses 4.6.1

#190092
Apr 02, 2018 12:46
Vote:
 

That is a better solution. But I hope there will be an upgrade soon. 

I tried with vs2017 preview release 15.7 preview2 and it works fine as before

#190096
Apr 02, 2018 15:08
Vote:
 

Here's a simple solution that worked for me. Start out like you're creating an MVC project that does have the framework selector. Change it to the version you want, then switch back to creating an Episerver project. Even though you won't have the selector, it will remember the value from the other project type. 

#190117
Apr 03, 2018 0:41
Vote:
 

No need.

Just create an empty solution and add an episerver project to it.

it picks up v4.6.1 framework automatically.

#190122
Apr 03, 2018 8:30
Vote:
 

We have now confirmed that a change in Visual Studio 15.6 will cause the target framework to be the same as in the last created project. So a workaround is to e.g. create a class library project that targets .NET Framework 4.61 and then afterwards create an EPiServer project.

We will provide a new version of our visual studio extension with a fix for this as soon as possible,

#190137
Apr 03, 2018 13:57
Vote:
 

I think there was a misunderstanding with my suggested workaround. You don't have to create a solution or class library project before creating an Episerver project. It's a simple as using the framework selector dropdown for another project type to set the version for the Episerver project. When you do that, Visual Studio sets that as the default value, so you can continue creating just an Episerver project.

No need to create an empty solution or to create a 4.6.1 project beforehand.

@Johan, good to know a new extension is in the works.

#190142
Apr 03, 2018 14:40
Vote:
 

There is now a new version uploaded to Visual Studio Gallery with a fix for this issue

#191939
May 03, 2018 8:54
Vote:
 

great success! thx

#191967
May 03, 2018 11:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.