NuGet Credentials Handler.
Utility to replace placeholders #CI_USER#
and #CI_USER_PASSWORD#
in the project's NuGet.Config
and NuGet.Config.Debug
files to your credentials or back to placeholders.
Some internal projects include NuGet.Config
and sometimes also NuGet.Config.Debug
files, containing placeholders for username and password for the NuGet source. Because of this the dotnet CLI tools are not working within a directory. For example dotnet restore
fails with HTTP error 407
Requires rust tool chain installed. For example using https://rustup.rs/
cargo build --release
cargo test --release
cp target/release/nucr ~/.local/bin/
Try nucr -h
for usage
Caution by careless git push
with changed credentials. Already happened to me at least once. In such cases better change your password
Hide the NuGet.Config
changes from git to prevent commit containing credentials.
For now you can do it manually:
git update-index --assume-unchanged NuGet.Config
git update-index --no-assume-unchanged NuGet.Config