I am trying to add a new controller to my existing application which VS decided to upgrade to 2017 from 2015 and since the update I am getting a very helpful error every time I try and run the tool to add it in:
There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'projectname'.'
There is no error generated or output I can read.
I have looked up issues with loading scaffolding to a project. From what I read the issue is something to do with proj file however as far as I can see the proj file looks correct:
<Project Sdk="Microsoft.NET.Sdk.Web"><PropertyGroup><TargetFramework>netcoreapp1.0</TargetFramework><PreserveCompilationContext>true</PreserveCompilationContext><AssemblyName>Eva804</AssemblyName><OutputType>Exe</OutputType><PackageId>Eva804</PackageId><RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion><PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback></PropertyGroup><ItemGroup><Content Include="wwwroot\css\Required.css" /></ItemGroup><ItemGroup><None Update="wwwroot\**\*"><CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory></None></ItemGroup><ItemGroup><PackageReference Include="AutoMapper" Version="6.1.1" /><PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="1.0.0" /><PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" /><PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.0.2" /><PackageReference Include="Microsoft.AspNetCore.Identity" Version="1.1.2" /><PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.2" /><PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" /><PackageReference Include="Microsoft.AspNetCore.Routing" Version="1.1.2" /><PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.0.2" /><PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.2" /><PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" /><PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.2" /><PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.2" /><PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" /><PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.2" /><PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.0.0" /><PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-preview3-final" /><PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.2" /><PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.0.2" /><PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.2" /><PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.0.2" /><PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" /><PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.0.2" /><PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.2" /></ItemGroup><ItemGroup><DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.301" /><DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" /><DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0" /><DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" /></ItemGroup></Project>
I am at a complete loss how to find an error when there isn't one listed and where to even look?