Try our conversational search powered by Generative AI!

Installing CMS, package restore fail

Vote:
 

Hello! I am following the guide here: https://world.episerver.com/documentation/Items/Installation-Instructions/installing-episerver/#CMS
But for some reason the packages (mvc and episerver) are not restored when I build the solution - maybe because package.config or some entries in the project file are missing..?
Anyhow, the build fails with assembly/reference not found.
Anyone has an idea what is going on?
NB. The VS option for automatically restoring packages is on.
Best regards,
Søren

#190824
Edited, Apr 17, 2018 14:54
Vote:
 

Have you made sure you either have the nuget feed in VS http://nuget.episerver.com/feed/packages.svc/ or have a nuget.config file in your web application with

<?xml version="1.0"?>
<configuration>
  <packageSources>
    <add key="NuGet offical package source" value="https://api.nuget.org/v3/index.json" />
    <add key="Episerver Nuget Feed" value="http://nuget.episerver.com/feed/packages.svc/" />
  </packageSources>
</configuration>
#190827
Apr 17, 2018 15:01
Vote:
 

Hi Soren,

Apologies if this is too obvious but have you set up the Episerver nuget feed in your package sources in Visual Studio?

#190828
Apr 17, 2018 15:03
Vote:
 

Yes, I have set up the feed! I believe all the settings are 'correct'.. but I don't know if there could be an override option somewhere, like 'Ignore all other settings and don't restore'..:)
Best regards,
Søren

#190891
Apr 18, 2018 13:08
Vote:
 

Have you tried just right clicking the solution in VS and selecting "Restore Nuget Packages"?

#190892
Apr 18, 2018 13:15
Vote:
 

Hi Scott, that option seems not to be available in VSC 2015/2017..
Søren

#191038
Apr 19, 2018 12:30
Vote:
 

VSC? 

I have it showing in Visual Studio 2017, I think the only reason it wouldn't be showing is if you havn't got nuget configured correct for your project if it isn't.

#191039
Apr 19, 2018 12:33
Vote:
 

Visual Studio Community (Edition)..:)
I have configured the sources correctly, and I don't believe I have 'fiddled' in any 'special' way with other VS settings.
Søren

#191041
Apr 19, 2018 12:55
Vote:
 

As I understand, for package restore to work, there should be either a file 'packages.config' or some PackageReference XML-elements in the csproj file. But neither of those are in the solution which is generated by the Episerver VS extension/template.
Søren

#191052
Apr 19, 2018 13:49
Vote:
 

I just tried on version 11.1.0.340 of the Visual Studio Extesnsion and it's threw and error which also caused the packages.config to not be there. There's an update out which is working fine, I'd suggest making sure the extension is on the latest and trying a new site.

#191061
Apr 19, 2018 15:11
Vote:
 

Hi Scott! I believe I am using the latest version - 11.2.0.355. It does give a type of error message though: 'Solution is not opened or not saved. Please ensure you have an open and saved solution.' I just thought it meant that I need to save the solution.. but packages.config is not there.
Søren

#191115
Apr 20, 2018 10:05
Vote:
 

You shouldn't get any errros popping up when creating an episerver site, any errors may crash out the process. It might be a bug with VSC, I'd raise it with episerver support as an issue

#191117
Apr 20, 2018 10:21
Vote:
 

Oh well, my report will probably 'drown' in that long list of bugs.. but thanks:)
Søren

#191120
Apr 20, 2018 12:06
Vote:
 

Soren,

I wish you would take a more proactive approach towards resolving this problem. Episerver support & development teams devote a large amount of resources towards solving problems like this. It's possible that something in your environment is causing the problem -- support could troubleshoot that. Or maybe you have discovered a bug – it happens all the time. By reporting it, there’s a good chance it’ll be fixed in an upcoming release. That fix would benefit both you and the entire community of developers who use the product.

#191136
Apr 20, 2018 16:59
Vote:
 

Quite frankly Bob this don't seem a very good response coming from an Episerver Employee, As a long time partner of Episerver I've been trying to help Soren S to solve this issue but he seems to be getting quite frustrated and to be fair I don't blame him seeing as he's just trying to get the base install of Episerver working. The first place every developer comes is to the forurms to see if you can get help from the community as it might be something someone else has tackled and it's always been that standard Episerver dev approach to ask here before raising something to a busy support team that's got a lot on their plate. For someone whos' obviously new to the platform and having issues it would be better if you have a more helpful response than seemingly telling him off about his approach to tackling the problem.

#191139
Apr 20, 2018 17:10
Vote:
 

I apologize if my reply was not helpful. I was simply trying to encourage him to use the Epi support team to help resolve the problem.

#191140
Apr 20, 2018 17:13
Vote:
 

No worries:) I did actually write an email directly to some people at episerver, but they haven't responded yet. Perhaps I'll also try to register it on the official list now.
In the meantime, could someone perhaps use a working episerver extension to generate a new VS project (MVC/Search) and then upload that as a zip for me..? (if not already available somewhere)
Best regards,
Søren

#191184
Apr 23, 2018 15:45
* 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.