DEV Community

Kenichiro Nakamura
Kenichiro Nakamura

Posted on

3 2

NuGet Developer Tips: Refer local nupkg and delete cache

When we develop NuGet package in local environment, there are several things we need to be careful.

NuGet package source

In Visual Studio or NuGet cli, we can specify source where to find the package. When developing NuGet package, we can use local folder path as NuGet source.

nuget source

By doing this, we can omit uploading package to feed or NuGet.org for test.

NuGet package version

Whenever we update something, we need to give different version for nupkg file, so that NuGet manager can download new package. If we use same version number, then NuGet manager keep using local cache which downloaded previously.

Delete local NuGet pack

We sometimes need to delete local NuGet pack to avoid conflict between local cache versus package in feed. We can find the cache path by running NuGet command.

nuget locals all -list
Enter fullscreen mode Exit fullscreen mode

For Windows, I find it in my profile.

%UserProfile%\.nuget\packages

nuget cache

Just delete the specific package folder. Even though we can use NuGet cli to delete cache for source level, I won't recommend clear entire cache as we have to download all dependencies again when we restore or compile next time. Please teach me if NuGet cli has command to delete specific cache.

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay