Обычно я работаю. NET 4.5. У моего коллеги. NET 4.6.2, установленный на его машине, дал мне Project для внесения изменений.
В консоли Nuget, после ошибки ниже отображается '4.6.0-preview6.19303.8' не является допустимой строкой версии.
Я изо всех сил пытаюсь обновить пакеты Nuget, он показывает мне ошибку ниже, что это означает ..
PM> Install-Package Microsoft.Owin.Host.SystemWeb -Version 4.1.0
Attempting to resolve dependency 'Owin (≥ 1.0.0)'.
Attempting to resolve dependency 'Microsoft.Owin (≥ 4.1.0)'.
Installing 'Microsoft.Owin 4.1.0'.
You are downloading Microsoft.Owin from Microsoft, the license agreement to which is available at https://raw.githubusercontent.com/aspnet/AspNetKatana/v4.0.1/LICENSE.txt. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Owin 4.1.0'.
Installing 'Microsoft.Owin.Host.SystemWeb 4.1.0'.
You are downloading Microsoft.Owin.Host.SystemWeb from Microsoft, the license agreement to which is available at https://raw.githubusercontent.com/aspnet/AspNetKatana/v4.0.1/LICENSE.txt. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Owin.Host.SystemWeb 4.1.0'.
Install failed. Rolling back...
Install-Package : '4.6.0-preview6.19303.8' is not a valid version string.
At line:1 char:1
+ Install-Package Microsoft.Owin.Host.SystemWeb -Version 4.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Любая помощь будет оценена. Спасибо :)
После обновления Nuget, нужно знать, что Nuget обновлена
PM> nuget update -self
Checking for updates from https://api.nuget.org/v3/index.json.
CACHE https://api.nuget.org/v3/registration5-gz-semver2/nuget.commandline/index.json
Currently running NuGet.exe 5.5.1.
NuGet.exe is up to date.
Update successful.