Skip to content

Testing local resources checkout with other projects

Dean Herbert edited this page Jul 6, 2019 · 3 revisions

A useful shell script to remove a nuget reference to framework and replace with a local checkout (at the same directory depth as your project).

shell:

CSPROJ="osu.Game/osu.Game.csproj"
SLN="osu.sln"

dotnet remove $CSPROJ package ppy.osu.Game.Resources;
dotnet sln $SLN add ../osu-resources/osu.Game.Resources/osu.Game.Resources.csproj
dotnet add $CSPROJ reference ../osu-resources/osu.Game.Resources/osu.Game.Resources.csproj

powershell:

$CSPROJ="osu.Game/osu.Game.csproj"
$SLN="osu.sln"

dotnet remove $CSPROJ package ppy.osu.Game.Resources;
dotnet sln $SLN add ../osu-resources/osu.Game.Resources/osu.Game.Resources.csproj
dotnet add $CSPROJ reference ../osu-resources/osu.Game.Resources/osu.Game.Resources.csproj

A useful shell script to remove a nuget reference to framework and replace with a local checkout (at the same directory depth as your project).

Clone this wiki locally