-
Notifications
You must be signed in to change notification settings - Fork 519
Error adding Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007 to net451 project #181
Comments
Hi Richard When you say "an existing MVC app", do you mean MVC 5 or less, or do you mean the new The |
thanks Steve - as I expected - my scenario is an MVC5 app - got excited when I saw 451 as the target. Do you think its feasible to back port the spa services features to MVC5 ? |
I don't see any reason why it couldn't be made to work - there's nothing we do in If this becomes a common request, we might even consider factoring out as much of I can't promise that we will do this, because I don't know that either (a) there'd be enough demand for it, or (b) that it would be clean and simple enough not to add maintenance costs in the future. It's just a thought in case lots of people ask for this. I'll close this because there's no action for us to take at this moment, but please let us know if you choose to pursue any sort of porting or refactoring on your own. Would love to hear how easy or hard that turns out to be. |
Looking at the issues and nugets it seems like I should be able to use some of features on an existing
asp.net mvc app targeting net451?
But adding the SpaServices packages fails:
Attempting to gather dependency information for package 'Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007' with respect to project 'WebApplication1', targeting '.NETFramework,Version=v4.5.1' Attempting to resolve dependencies for package 'Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007' with DependencyBehavior 'Lowest' Resolving actions to install package 'Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007' Resolved actions to install package 'Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007' Removed package 'Newtonsoft.Json.6.0.4' from 'packages.config' Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) Successfully uninstalled 'Newtonsoft.Json.6.0.4' from WebApplication1 Adding package 'Microsoft.AspNetCore.Cryptography.Internal.1.0.0' to folder 'C:\foo\WebApplication1\packages' Added package 'Microsoft.AspNetCore.Cryptography.Internal.1.0.0' to folder 'C:\foo\WebApplication1\packages' Install failed. Rolling back... Package 'Microsoft.AspNetCore.Cryptography.Internal.1.0.0' does not exist in project 'WebApplication1' Package 'Newtonsoft.Json.6.0.4' already exists in folder 'C:\foo\WebApplication1\packages' Removing package 'Microsoft.AspNetCore.Cryptography.Internal.1.0.0' from folder 'C:\foo\WebApplication1\packages' Removed package 'Microsoft.AspNetCore.Cryptography.Internal.1.0.0' from folder 'C:\foo\WebApplication1\packages' Failed to add reference to 'Microsoft.AspNetCore.Cryptography.Internal'.
I've tried with and existing 4.6.1 mvc app and a new empty mvc 451 app - all in vs2015 update 3
Should this work?
The text was updated successfully, but these errors were encountered: