Skip to content

scriptcs -install stopped working #1310

@dagid4

Description

@dagid4

It looks like NuGet.Core no longer works (it is deprecated for a while) and packages now cannot be installed with scriptcs -install. It may be related to:

NuGet.org will permanently remove support for TLS 1.0 and 1.1 on June 15th. Please ensure that your systems use TLS 1.2.

Please confirm:

C:\Users\*****\Desktop\scriptcs-scriptcs-ceb8443\src\ScriptCs\bin\Release>scriptcs -install Castle.Core
Installing packages...
ERROR: Error installing package. [InvalidOperationException] Unable to find package 'Castle.Core'.
ERROR: Package installation failed. [AggregateException] One or more errors occurred.
C:\Users\*****\Desktop\scriptcs-scriptcs-ceb8443\src\ScriptCs\bin\Release>scriptcs -install Moq
Installing packages...
ERROR: Error installing package. [InvalidOperationException] Unable to find package 'Moq'.
ERROR: Package installation failed. [AggregateException] One or more errors occurred.

If package is cached, then it works:

C:\Users\*****\Desktop\scriptcs-scriptcs-ceb8443\src\ScriptCs\bin\Release>scriptcs -install Newtonsoft.Json
Installing packages...
Installed: Newtonsoft.Json
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added Newtonsoft.Json (v9.0.1, .NET 4.5) to scriptcs_packages.config
Successfully updated scriptcs_packages.config.

Make sure you try on package you haven't used yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions