Updating a package for .net core project appears to not work, as the UI doesn't get the CPS update from the nominate. #4035

Closed
RussKie opened this Issue Nov 30, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@RussKie

RussKie commented Nov 30, 2016

Copied from dotnet/corefx#14110
Relates to #4034

I have an existing .NETCore app 1.0.0 which I am trying to update to 1.1.0.

If I try to upgrade manually:

image

The update log:

  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.IdentityModel.Tokens',Version='5.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Diagnostics',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.StaticFiles',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.Kestrel',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Razor.Tools',Version='1.1.0-preview4-final')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Configuration.Json',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.IISIntegration',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging.Console',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging.Debug',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Options.ConfigurationExtensions',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Configuration.EnvironmentVariables',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.VisualStudio.Web.BrowserLink.Loader',Version='14.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Mvc',Version='1.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='System.IdentityModel.Tokens.Jwt',Version='5.1.0')
  GET https://www.nuget.org/api/v2/Packages(Id='System.Security.Cryptography.Algorithms',Version='4.3.0')
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.IdentityModel.Tokens',Version='5.1.0') 321ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Configuration.Json',Version='1.1.0') 324ms
  GET https://www.nuget.org/api/v2/Packages(Id='System.Xml.XmlSerializer',Version='4.3.0')
  GET https://www.nuget.org/api/v2/Packages(Id='System.Xml.XmlDocument',Version='4.3.0')
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.StaticFiles',Version='1.1.0') 352ms
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.IISIntegration.Tools',Version='1.1.0-preview4-final')
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Diagnostics',Version='1.1.0') 383ms
  GET https://www.nuget.org/api/v2/Packages(Id='Microsoft.DotNet.Watcher.Tools',Version='1.1.0-preview4-final')
Retrieving package 'Microsoft.AspNetCore.Razor.Tools 1.1.0-preview4-final' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.Server.IISIntegration.Tools 1.1.0-preview4-final' from 'nuget.org'.
Retrieving package 'Microsoft.DotNet.Watcher.Tools 1.1.0-preview4-final' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.Diagnostics 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.Mvc 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.Server.IISIntegration 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.Server.Kestrel 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.AspNetCore.StaticFiles 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Configuration.EnvironmentVariables 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Configuration.Json 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Logging 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Logging.Console 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Logging.Debug 1.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.Extensions.Options.ConfigurationExtensions 1.1.0' from 'nuget.org'.
Retrieving package 'System.Security.Cryptography.Algorithms 4.3.0' from 'nuget.org'.
Retrieving package 'System.Xml.XmlDocument 4.3.0' from 'nuget.org'.
Retrieving package 'System.Xml.XmlSerializer 4.3.0' from 'nuget.org'.
Retrieving package 'Microsoft.IdentityModel.Tokens 5.1.0' from 'nuget.org'.
Retrieving package 'System.IdentityModel.Tokens.Jwt 5.1.0' from 'nuget.org'.
Retrieving package 'Microsoft.VisualStudio.Web.BrowserLink.Loader 14.1.0' from 'nuget.org'.
Uninstalling NuGet package Microsoft.AspNetCore.Diagnostics.1.0.0.
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.Kestrel',Version='1.1.0') 449ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Razor.Tools',Version='1.1.0-preview4-final') 490ms
Successfully uninstalled 'Microsoft.AspNetCore.Diagnostics.1.0.0' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.Diagnostics.1.1.0.
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging',Version='1.1.0') 599ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging.Console',Version='1.1.0') 695ms
Successfully installed 'Microsoft.AspNetCore.Diagnostics 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.AspNetCore.Mvc.1.0.0.
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Options.ConfigurationExtensions',Version='1.1.0') 808ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Configuration.EnvironmentVariables',Version='1.1.0') 809ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.Extensions.Logging.Debug',Version='1.1.0') 925ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.VisualStudio.Web.BrowserLink.Loader',Version='14.1.0') 925ms
Successfully uninstalled 'Microsoft.AspNetCore.Mvc.1.0.0' from WebApplication1
  OK https://www.nuget.org/api/v2/Packages(Id='System.IdentityModel.Tokens.Jwt',Version='5.1.0') 981ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.IISIntegration',Version='1.1.0') 1005ms
  OK https://www.nuget.org/api/v2/Packages(Id='System.Security.Cryptography.Algorithms',Version='4.3.0') 1007ms
  OK https://www.nuget.org/api/v2/Packages(Id='System.Xml.XmlDocument',Version='4.3.0') 688ms
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Mvc',Version='1.1.0') 1123ms
Installing NuGet package Microsoft.AspNetCore.Mvc.1.1.0.
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.DotNet.Watcher.Tools',Version='1.1.0-preview4-final') 771ms
  OK https://www.nuget.org/api/v2/Packages(Id='System.Xml.XmlSerializer',Version='4.3.0') 885ms
Successfully installed 'Microsoft.AspNetCore.Mvc 1.1.0' to WebApplication1
  OK https://www.nuget.org/api/v2/Packages(Id='Microsoft.AspNetCore.Server.IISIntegration.Tools',Version='1.1.0-preview4-final') 1004ms
Uninstalling NuGet package Microsoft.AspNetCore.Razor.Tools.1.0.0-preview2-final.
Successfully uninstalled 'Microsoft.AspNetCore.Razor.Tools.1.0.0-preview2-final' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.Razor.Tools.1.1.0-preview4-final.
Successfully installed 'Microsoft.AspNetCore.Razor.Tools 1.1.0-preview4-final' to WebApplication1
Uninstalling NuGet package Microsoft.AspNetCore.Server.IISIntegration.1.0.0.
Successfully uninstalled 'Microsoft.AspNetCore.Server.IISIntegration.1.0.0' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.Server.IISIntegration.1.1.0.
Successfully installed 'Microsoft.AspNetCore.Server.IISIntegration 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.AspNetCore.Server.Kestrel.1.0.0.
Successfully uninstalled 'Microsoft.AspNetCore.Server.Kestrel.1.0.0' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.Server.Kestrel.1.1.0.
Successfully installed 'Microsoft.AspNetCore.Server.Kestrel 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.AspNetCore.StaticFiles.1.0.0.
Successfully uninstalled 'Microsoft.AspNetCore.StaticFiles.1.0.0' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.StaticFiles.1.1.0.
Successfully installed 'Microsoft.AspNetCore.StaticFiles 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Configuration.EnvironmentVariables.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Configuration.EnvironmentVariables.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Configuration.EnvironmentVariables.1.1.0.
Successfully installed 'Microsoft.Extensions.Configuration.EnvironmentVariables 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Configuration.Json.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Configuration.Json.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Configuration.Json.1.1.0.
Successfully installed 'Microsoft.Extensions.Configuration.Json 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Logging.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Logging.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Logging.1.1.0.
Successfully installed 'Microsoft.Extensions.Logging 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Logging.Console.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Logging.Console.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Logging.Console.1.1.0.
Successfully installed 'Microsoft.Extensions.Logging.Console 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Logging.Debug.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Logging.Debug.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Logging.Debug.1.1.0.
Successfully installed 'Microsoft.Extensions.Logging.Debug 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.Extensions.Options.ConfigurationExtensions.1.0.0.
Successfully uninstalled 'Microsoft.Extensions.Options.ConfigurationExtensions.1.0.0' from WebApplication1
Installing NuGet package Microsoft.Extensions.Options.ConfigurationExtensions.1.1.0.
Successfully installed 'Microsoft.Extensions.Options.ConfigurationExtensions 1.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.IdentityModel.Tokens.5.0.0.
Successfully uninstalled 'Microsoft.IdentityModel.Tokens.5.0.0' from WebApplication1
Installing NuGet package Microsoft.IdentityModel.Tokens.5.1.0.
Successfully installed 'Microsoft.IdentityModel.Tokens 5.1.0' to WebApplication1
Uninstalling NuGet package Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0.0.
Successfully uninstalled 'Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0.0' from WebApplication1
Installing NuGet package Microsoft.VisualStudio.Web.BrowserLink.Loader.14.1.0.
Successfully installed 'Microsoft.VisualStudio.Web.BrowserLink.Loader 14.1.0' to WebApplication1
Uninstalling NuGet package System.IdentityModel.Tokens.Jwt.5.0.0.
Successfully uninstalled 'System.IdentityModel.Tokens.Jwt.5.0.0' from WebApplication1
Installing NuGet package System.IdentityModel.Tokens.Jwt.5.1.0.
Successfully installed 'System.IdentityModel.Tokens.Jwt 5.1.0' to WebApplication1
Uninstalling NuGet package System.Security.Cryptography.Algorithms.4.2.0.
Successfully uninstalled 'System.Security.Cryptography.Algorithms.4.2.0' from WebApplication1
Installing NuGet package System.Security.Cryptography.Algorithms.4.3.0.
Successfully installed 'System.Security.Cryptography.Algorithms 4.3.0' to WebApplication1
Uninstalling NuGet package System.Xml.XmlDocument.4.0.1.
Successfully uninstalled 'System.Xml.XmlDocument.4.0.1' from WebApplication1
Installing NuGet package System.Xml.XmlDocument.4.3.0.
Successfully installed 'System.Xml.XmlDocument 4.3.0' to WebApplication1
Uninstalling NuGet package System.Xml.XmlSerializer.4.0.11.
Successfully uninstalled 'System.Xml.XmlSerializer.4.0.11' from WebApplication1
Installing NuGet package System.Xml.XmlSerializer.4.3.0.
Successfully installed 'System.Xml.XmlSerializer 4.3.0' to WebApplication1
Uninstalling NuGet package Microsoft.AspNetCore.Server.IISIntegration.Tools.1.0.0-preview2-final.
Successfully uninstalled 'Microsoft.AspNetCore.Server.IISIntegration.Tools.1.0.0-preview2-final' from WebApplication1
Installing NuGet package Microsoft.AspNetCore.Server.IISIntegration.Tools.1.1.0-preview4-final.
Successfully installed 'Microsoft.AspNetCore.Server.IISIntegration.Tools 1.1.0-preview4-final' to WebApplication1
Uninstalling NuGet package Microsoft.DotNet.Watcher.Tools.1.0.0-preview2-final.
Successfully uninstalled 'Microsoft.DotNet.Watcher.Tools.1.0.0-preview2-final' from WebApplication1
Installing NuGet package Microsoft.DotNet.Watcher.Tools.1.1.0-preview4-final.
Successfully installed 'Microsoft.DotNet.Watcher.Tools 1.1.0-preview4-final' to WebApplication1
Executing nuget actions took 7.96 sec
========== Finished ==========
Time Elapsed: 00:00:17.2830459

But as soon as the update finishes, the updates are still presented as if nothing happened (though less 2):

image

Yet project.json is updated:
image

But when I compile VS gives me the following:

1>------ Build started: Project: WebApplication1, Configuration: Debug Any CPU ------
1>  C:\Program Files\dotnet\dotnet.exe build "D:\Amber\WebApplication1\src\WebApplication1" --configuration Debug --no-dependencies
1>  Project WebApplication1 (.NETCoreApp,Version=v1.1) will be compiled because inputs were modified
1>  Compiling WebApplication1 for .NETCoreApp,Version=v1.1
1>D:\Amber\WebApplication1\src\WebApplication1\project.lock.json(1): warning NU1006: Dependencies in project.json were modified. Please run "dotnet restore" to generate a new lock file.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(7,47): warning NU1007: Dependency specified was Microsoft.AspNetCore.Diagnostics >= 1.1.0 but ended up with Microsoft.AspNetCore.Diagnostics 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(8,39): warning NU1007: Dependency specified was Microsoft.AspNetCore.Mvc >= 1.1.0 but ended up with Microsoft.AspNetCore.Mvc 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(9,41): warning NU1007: Dependency specified was Microsoft.AspNetCore.Razor.Tools >= 1.1.0-preview4-final but ended up with Microsoft.AspNetCore.Razor.Tools 1.0.0-preview2-final.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(13,57): warning NU1007: Dependency specified was Microsoft.AspNetCore.Server.IISIntegration >= 1.1.0 but ended up with Microsoft.AspNetCore.Server.IISIntegration 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(14,50): warning NU1007: Dependency specified was Microsoft.AspNetCore.Server.Kestrel >= 1.1.0 but ended up with Microsoft.AspNetCore.Server.Kestrel 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(15,47): warning NU1007: Dependency specified was Microsoft.AspNetCore.StaticFiles >= 1.1.0 but ended up with Microsoft.AspNetCore.StaticFiles 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(16,70): warning NU1007: Dependency specified was Microsoft.Extensions.Configuration.EnvironmentVariables >= 1.1.0 but ended up with Microsoft.Extensions.Configuration.EnvironmentVariables 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(17,54): warning NU1007: Dependency specified was Microsoft.Extensions.Configuration.Json >= 1.1.0 but ended up with Microsoft.Extensions.Configuration.Json 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(18,43): warning NU1007: Dependency specified was Microsoft.Extensions.Logging >= 1.1.0 but ended up with Microsoft.Extensions.Logging 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(19,51): warning NU1007: Dependency specified was Microsoft.Extensions.Logging.Console >= 1.1.0 but ended up with Microsoft.Extensions.Logging.Console 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(20,49): warning NU1007: Dependency specified was Microsoft.Extensions.Logging.Debug >= 1.1.0 but ended up with Microsoft.Extensions.Logging.Debug 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(21,67): warning NU1007: Dependency specified was Microsoft.Extensions.Options.ConfigurationExtensions >= 1.1.0 but ended up with Microsoft.Extensions.Options.ConfigurationExtensions 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(22,45): warning NU1007: Dependency specified was Microsoft.IdentityModel.Tokens >= 5.1.0 but ended up with Microsoft.IdentityModel.Tokens 5.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(23,61): warning NU1007: Dependency specified was Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.1.0 but ended up with Microsoft.VisualStudio.Web.BrowserLink.Loader 14.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(24,46): warning NU1007: Dependency specified was System.IdentityModel.Tokens.Jwt >= 5.1.0 but ended up with System.IdentityModel.Tokens.Jwt 5.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1007: Dependency specified was System.Security.Cryptography.Algorithms >= 4.3.0 but ended up with System.Security.Cryptography.Algorithms 4.2.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(26,37): warning NU1007: Dependency specified was System.Xml.XmlDocument >= 4.3.0 but ended up with System.Xml.XmlDocument 4.0.1.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(27,39): warning NU1007: Dependency specified was System.Xml.XmlSerializer >= 4.3.0 but ended up with System.Xml.XmlSerializer 4.0.11.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(7,47): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Diagnostics >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(8,39): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Mvc >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(9,41): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Razor.Tools >= 1.1.0-preview4-final but received 1.0.0-preview2-final
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(13,57): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Server.IISIntegration >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(14,50): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Server.Kestrel >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(15,47): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.StaticFiles >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(16,70): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Configuration.EnvironmentVariables >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(17,54): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Configuration.Json >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(18,43): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(19,51): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging.Console >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(20,49): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging.Debug >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(21,67): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Options.ConfigurationExtensions >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(22,45): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.IdentityModel.Tokens >= 5.1.0 but received 5.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(23,61): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.1.0 but received 14.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(24,46): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.IdentityModel.Tokens.Jwt >= 5.1.0 but received 5.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. Microsoft.NETCore.App 1.1.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. NETStandard.Library 1.6.1 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Net.Http 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Net.Security 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.Cng 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.Csp 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.OpenSsl 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.X509Certificates 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(26,37): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Xml.XmlDocument >= 4.3.0 but received 4.0.1
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(27,39): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Xml.XmlSerializer >= 4.3.0 but received 4.0.11
1>  Compilation succeeded.
1>      45 Warning(s)
1>      0 Error(s)
1>  Time elapsed 00:00:02.2497566
1>
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Time Elapsed 00:00:03.366

If I completely restart VS after the above and rebuild I get the following:

1>------ Rebuild All started: Project: WebApplication1, Configuration: Debug Any CPU ------
1>  C:\Program Files\dotnet\dotnet.exe build "D:\Amber\WebApplication1\src\WebApplication1" --configuration Debug --no-dependencies --no-incremental
1>  Project WebApplication1 (.NETCoreApp,Version=v1.1) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
1>  Compiling WebApplication1 for .NETCoreApp,Version=v1.1
1>D:\Amber\WebApplication1\src\WebApplication1\project.lock.json(1): warning NU1006: Dependencies in project.json were modified. Please run "dotnet restore" to generate a new lock file.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(7,47): warning NU1007: Dependency specified was Microsoft.AspNetCore.Diagnostics >= 1.1.0 but ended up with Microsoft.AspNetCore.Diagnostics 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(8,39): warning NU1007: Dependency specified was Microsoft.AspNetCore.Mvc >= 1.1.0 but ended up with Microsoft.AspNetCore.Mvc 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(9,41): warning NU1007: Dependency specified was Microsoft.AspNetCore.Razor.Tools >= 1.1.0-preview4-final but ended up with Microsoft.AspNetCore.Razor.Tools 1.0.0-preview2-final.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(13,57): warning NU1007: Dependency specified was Microsoft.AspNetCore.Server.IISIntegration >= 1.1.0 but ended up with Microsoft.AspNetCore.Server.IISIntegration 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(14,50): warning NU1007: Dependency specified was Microsoft.AspNetCore.Server.Kestrel >= 1.1.0 but ended up with Microsoft.AspNetCore.Server.Kestrel 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(15,47): warning NU1007: Dependency specified was Microsoft.AspNetCore.StaticFiles >= 1.1.0 but ended up with Microsoft.AspNetCore.StaticFiles 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(16,70): warning NU1007: Dependency specified was Microsoft.Extensions.Configuration.EnvironmentVariables >= 1.1.0 but ended up with Microsoft.Extensions.Configuration.EnvironmentVariables 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(17,54): warning NU1007: Dependency specified was Microsoft.Extensions.Configuration.Json >= 1.1.0 but ended up with Microsoft.Extensions.Configuration.Json 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(18,43): warning NU1007: Dependency specified was Microsoft.Extensions.Logging >= 1.1.0 but ended up with Microsoft.Extensions.Logging 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(19,51): warning NU1007: Dependency specified was Microsoft.Extensions.Logging.Console >= 1.1.0 but ended up with Microsoft.Extensions.Logging.Console 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(20,49): warning NU1007: Dependency specified was Microsoft.Extensions.Logging.Debug >= 1.1.0 but ended up with Microsoft.Extensions.Logging.Debug 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(21,67): warning NU1007: Dependency specified was Microsoft.Extensions.Options.ConfigurationExtensions >= 1.1.0 but ended up with Microsoft.Extensions.Options.ConfigurationExtensions 1.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(22,45): warning NU1007: Dependency specified was Microsoft.IdentityModel.Tokens >= 5.1.0 but ended up with Microsoft.IdentityModel.Tokens 5.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(23,61): warning NU1007: Dependency specified was Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.1.0 but ended up with Microsoft.VisualStudio.Web.BrowserLink.Loader 14.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(24,46): warning NU1007: Dependency specified was System.IdentityModel.Tokens.Jwt >= 5.1.0 but ended up with System.IdentityModel.Tokens.Jwt 5.0.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1007: Dependency specified was System.Security.Cryptography.Algorithms >= 4.3.0 but ended up with System.Security.Cryptography.Algorithms 4.2.0.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(26,37): warning NU1007: Dependency specified was System.Xml.XmlDocument >= 4.3.0 but ended up with System.Xml.XmlDocument 4.0.1.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(27,39): warning NU1007: Dependency specified was System.Xml.XmlSerializer >= 4.3.0 but ended up with System.Xml.XmlSerializer 4.0.11.
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(7,47): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Diagnostics >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(8,39): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Mvc >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(9,41): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Razor.Tools >= 1.1.0-preview4-final but received 1.0.0-preview2-final
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(13,57): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Server.IISIntegration >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(14,50): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.Server.Kestrel >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(15,47): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.AspNetCore.StaticFiles >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(16,70): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Configuration.EnvironmentVariables >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(17,54): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Configuration.Json >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(18,43): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(19,51): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging.Console >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(20,49): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Logging.Debug >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(21,67): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.Extensions.Options.ConfigurationExtensions >= 1.1.0 but received 1.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(22,45): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.IdentityModel.Tokens >= 5.1.0 but received 5.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(23,61): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.1.0 but received 14.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(24,46): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.IdentityModel.Tokens.Jwt >= 5.1.0 but received 5.0.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. Microsoft.NETCore.App 1.1.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. NETStandard.Library 1.6.1 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Net.Http 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Net.Security 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.Cng 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.Csp 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.OpenSsl 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(25,54): warning NU1012: Dependency conflict. System.Security.Cryptography.X509Certificates 4.3.0 expected System.Security.Cryptography.Algorithms >= 4.3.0 but received 4.2.0
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(26,37): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Xml.XmlDocument >= 4.3.0 but received 4.0.1
1>D:\Amber\WebApplication1\src\WebApplication1\project.json(27,39): warning NU1012: Dependency conflict. WebApplication1 1.0.0 expected System.Xml.XmlSerializer >= 4.3.0 but received 4.0.11
1>  Compilation succeeded.
1>      45 Warning(s)
1>      0 Error(s)
1>  Time elapsed 00:00:02.4800145
1>   (The compilation time can be improved. Run "dotnet build --build-profile" for more information)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Time Elapsed 00:00:03.866

At this stage I do restore packages by clicking on "References" node:

PATH=%PATH%
C:\Program Files\dotnet\dotnet.exe restore "D:\Amber\WebApplication1\.vs\restore.dg"
log  : Restoring packages for D:\Amber\WebApplication1\src\WebApplication1\project.json...
log  : Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in D:\Amber\WebApplication1\src\WebApplication1\project.json...
log  : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in D:\Amber\WebApplication1\src\WebApplication1\project.json...
log  : Restoring packages for tool 'Microsoft.DotNet.Watcher.Tools' in D:\Amber\WebApplication1\src\WebApplication1\project.json...
log  : Writing lock file to disk. Path: D:\Amber\WebApplication1\src\WebApplication1\project.lock.json
log  : D:\Amber\WebApplication1\src\WebApplication1\WebApplication1.xproj
log  : Restore completed in 11008ms.

Only after that the warnings seem to be gone:

1>------ Rebuild All started: Project: WebApplication1, Configuration: Debug Any CPU ------
1>  C:\Program Files\dotnet\dotnet.exe build "D:\Amber\WebApplication1\src\WebApplication1" --configuration Debug --no-dependencies --no-incremental
1>  Project WebApplication1 (.NETCoreApp,Version=v1.1) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
1>  Compiling WebApplication1 for .NETCoreApp,Version=v1.1
1>  Compilation succeeded.
1>      0 Warning(s)
1>      0 Error(s)
1>  Time elapsed 00:00:01.8921088
1>   (The compilation time can be improved. Run "dotnet build --build-profile" for more information)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Time Elapsed 00:00:02.805

Microsoft Visual Studio Enterprise 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01055
Microsoft .NET Core Tools (Preview 2) 14.1.21111.0
NuGet Package Manager 3.5.0

@rrelyea rrelyea added this to the 4.0 RC3 milestone Dec 5, 2016

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Dec 5, 2016

Contributor

Likely not going to address vs2015 issue. However, we should understand how this works...and ensure folks have a good experience for this kind of thing in V2017, once they have migrated.

Contributor

rrelyea commented Dec 5, 2016

Likely not going to address vs2015 issue. However, we should understand how this works...and ensure folks have a good experience for this kind of thing in V2017, once they have migrated.

@rrelyea rrelyea modified the milestones: 4.0 RTM, 4.0 RC3 Jan 6, 2017

@rrelyea rrelyea assigned nkolev92 and mishra14 and unassigned nkolev92 Jan 6, 2017

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Jan 6, 2017

Contributor

@mishra14 - please investigate this issue, understand the problem, then we'll discuss the timeline for fix.

Contributor

rrelyea commented Jan 6, 2017

@mishra14 - please investigate this issue, understand the problem, then we'll discuss the timeline for fix.

@rrelyea rrelyea changed the title from VS2015 package update does not update to VS2015 package update does not update -- confirm we understand reason, package fix? vs2017 behavior? Jan 19, 2017

@rrelyea rrelyea changed the title from VS2015 package update does not update -- confirm we understand reason, package fix? vs2017 behavior? to .net core behavior in vs2017? - VS2015 package update does not update Jan 19, 2017

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Jan 25, 2017

Contributor

#4302 is the same scenario happening in vs2017, and i ask a few questions to @davidfowl

Contributor

rrelyea commented Jan 25, 2017

#4302 is the same scenario happening in vs2017, and i ask a few questions to @davidfowl

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Jan 25, 2017

Contributor

/cc @emgarten

Contributor

rrelyea commented Jan 25, 2017

/cc @emgarten

@rrelyea rrelyea changed the title from .net core behavior in vs2017? - VS2015 package update does not update to Updating a package for .net core project appears to not work, as the UI doesn't get the CPS update from the nominate. Jan 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment