neo-project / neo-modules

MIT License
60 stars 100 forks source link

Change nuget for ConsoleService for a modified local client #860

Closed vncoelho closed 8 months ago

vncoelho commented 8 months ago

Directory.Build.props was moved to root. From there we can modify it and change the reference for Neo.

However, some plugins have their on reference such as: <PackageReference Include="Neo.ConsoleService" Version="1.2.0" ExcludeAssets="runtime" />

What is the best way to change those to your local development?

cschuchardt88 commented 8 months ago

Change nuget.json file to:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
    <add key="local" value="./deps/" />
    <add key="neo-myget" value="https://www.myget.org/F/neo/api/v3/index.json" />
  </packageSources>
</configuration>

Create directory deps in root of the repo.

Put your nuget packages in deps directory that you built.

Use nuget to update the packages you want to change; to local.

image

Update the packages from local nuget source like so:

image

NOTE: Install or update, or reinstall