Error adding Microsoft.AspNetCore.SpaServices.1.0.0-beta-000007 to net451 project #1515

Closed
opened 2025-08-09 17:20:26 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @richardjharding on 7/14/2016

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?

*Originally created by @richardjharding on 7/14/2016* 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1515
No description provided.