Folleach / GeometryDashAPI

API for Geometry Dash
MIT License
62 stars 8 forks source link

NU1101 & Package incompatible with frameworks error #24

Closed ptbdev closed 1 year ago

ptbdev commented 1 year ago

From Terminal in Visual Studio Code:

PS D:\Coding Projects\Learning Python\Geometry Dash> dotnet add package GeometryDashAPI --version 0.1.20 Determining projects to restore... Writing C:\Users\fyreb\AppData\Local\Temp\tmpE2FA.tmp info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing. info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping. info : Adding PackageReference for package 'GeometryDashAPI' into project 'D:\Coding Projects\Learning Python\Geometry Dash\Geometry Dash.csproj'. info : Restoring packages for D:\Coding Projects\Learning Python\Geometry Dash\Geometry Dash.csproj... error: NU1101: Unable to find package GeometryDashAPI. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages error: Package 'GeometryDashAPI' is incompatible with 'all' frameworks in project 'D:\Coding Projects\Learning Python\Geometry Dash\Geometry Dash.csproj'.

Info:

ptbdev commented 1 year ago

I've fixed my issue. Closing it.

For people experiencing a similar issue in the future, create a config file named "nuget.config" with the following code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>