<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bruno Sales</title>
    <description>The latest articles on DEV Community by Bruno Sales (@baliestri).</description>
    <link>https://dev.to/baliestri</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F861546%2F35d120bf-56d9-4592-b677-f79e46dc5250.jpeg</url>
      <title>DEV Community: Bruno Sales</title>
      <link>https://dev.to/baliestri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/baliestri"/>
    <language>en</language>
    <item>
      <title>NuGet Manager for VS Code: manage your .NET packages without leaving the editor</title>
      <dc:creator>Bruno Sales</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:49:33 +0000</pubDate>
      <link>https://dev.to/baliestri/nuget-manager-for-vs-code-manage-your-net-packages-without-leaving-the-editor-511f</link>
      <guid>https://dev.to/baliestri/nuget-manager-for-vs-code-manage-your-net-packages-without-leaving-the-editor-511f</guid>
      <description>&lt;p&gt;If you work on a .NET solution in VS Code, you have probably switched to a terminal or a browser to check which packages have updates, or to install one in a project you did not expect. I got tired of that, so I built &lt;strong&gt;NuGet Manager for VS Code&lt;/strong&gt;: a NuGet window inside the editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5j46teas6ynipb76bk6n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5j46teas6ynipb76bk6n.png" alt="The Packages tab in the editor" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Its layout follows the NuGet window of &lt;strong&gt;JetBrains Rider&lt;/strong&gt;, which I use as the reference for how the view should present things. The extension is not affiliated with JetBrains.&lt;/p&gt;

&lt;p&gt;It is available on both stores:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visual Studio Marketplace:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=baliestri.nuget-code" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=baliestri.nuget-code&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open VSX:&lt;/strong&gt; &lt;a href="https://open-vsx.org/extension/baliestri/nuget-code" rel="noopener noreferrer"&gt;https://open-vsx.org/extension/baliestri/nuget-code&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The source is on GitHub: &lt;a href="https://github.com/baliestri/nuget-code" rel="noopener noreferrer"&gt;https://github.com/baliestri/nuget-code&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Installed packages&lt;/strong&gt; for the whole solution or for one project, and the packages with a newer version. Tick several and update them together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transitive packages and known vulnerabilities.&lt;/strong&gt; The packages that come with the ones you reference are listed too, and any package with a known vulnerability is marked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discover&lt;/strong&gt; searches your feeds, with or without prereleases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1pdbqvjl90c497k941t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1pdbqvjl90c497k941t.png" alt="Searching the feeds in Discover" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sources.&lt;/strong&gt; Every &lt;code&gt;NuGet.config&lt;/code&gt; NuGet reads, with the feeds of each. Add, edit, enable, disable and remove them. Private feed credentials go into the editor's secret storage, never into a &lt;code&gt;NuGet.config&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Folders.&lt;/strong&gt; See how much disk the NuGet caches take, and clear the ones you select.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Log.&lt;/strong&gt; What NuGet and the backend are doing, as it happens, coloured by level and filtered as you like.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Package Manager Console.&lt;/strong&gt; A PowerShell terminal with &lt;code&gt;Get-Package&lt;/code&gt;, &lt;code&gt;Install-Package&lt;/code&gt;, &lt;code&gt;Update-Package&lt;/code&gt; and the other cmdlets you know from Visual Studio.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fshsx1r4leqzu700wpada.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fshsx1r4leqzu700wpada.png" alt="The Package Manager Console in the editor" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwqxovhrm9dmbup9l4dy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwqxovhrm9dmbup9l4dy.png" alt="Choosing the default project in the console" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Versions are changed where they are declared: in the project, in &lt;code&gt;Directory.Packages.props&lt;/code&gt; with central package management, in a &lt;code&gt;VersionOverride&lt;/code&gt;, or in a property.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The view is a webview, and the work is done by a native backend built on &lt;a href="https://github.com/NuGet/NuGet.Client" rel="noopener noreferrer"&gt;NuGet.Client&lt;/a&gt;. The extension does not parse the output of &lt;code&gt;dotnet list package&lt;/code&gt;. The backend reads your solution, your &lt;code&gt;NuGet.config&lt;/code&gt; files and your feeds the way NuGet itself does, so the answers are the ones &lt;code&gt;dotnet&lt;/code&gt; would give.&lt;/p&gt;

&lt;p&gt;Restore can use three engines, set in &lt;code&gt;nuget.restore.engine&lt;/code&gt;: &lt;code&gt;embedded&lt;/code&gt; (the default, inside the backend), &lt;code&gt;msbuild&lt;/code&gt;, or &lt;code&gt;console&lt;/code&gt; (&lt;code&gt;dotnet restore&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Visual Studio Code 1.100 or newer, or an editor built from it, such as VSCodium.&lt;/li&gt;
&lt;li&gt;A .NET SDK. Without one, the extension can still list sources and search packages, but cannot open a solution.&lt;/li&gt;
&lt;li&gt;A trusted workspace: reading projects runs MSBuild, which executes code from the repository.&lt;/li&gt;
&lt;li&gt;PowerShell 7.6 or newer, only for the Package Manager Console.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It runs on Windows, Linux (glibc and musl) and macOS, on x64 and arm64, and also in Remote SSH, WSL and containers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Open a folder with a &lt;code&gt;.sln&lt;/code&gt;, &lt;code&gt;.slnx&lt;/code&gt; or &lt;code&gt;.csproj&lt;/code&gt;, then open the &lt;strong&gt;NuGet&lt;/strong&gt; tab of the panel, or run &lt;strong&gt;NuGet: Open&lt;/strong&gt; from the command palette.&lt;/p&gt;

&lt;p&gt;Feedback and bug reports are welcome on the &lt;a href="https://github.com/baliestri/nuget-code/issues" rel="noopener noreferrer"&gt;issue tracker&lt;/a&gt;. If the extension saves you a few trips to the browser, a rating on your store of choice helps others find it.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>dotnet</category>
      <category>nuget</category>
      <category>programming</category>
    </item>
    <item>
      <title>Making GnuPG feel native on Windows</title>
      <dc:creator>Bruno Sales</dc:creator>
      <pubDate>Sun, 11 Oct 2026 19:26:15 +0000</pubDate>
      <link>https://dev.to/baliestri/making-gnupg-feel-native-on-windows-22if</link>
      <guid>https://dev.to/baliestri/making-gnupg-feel-native-on-windows-22if</guid>
      <description>&lt;p&gt;Many of us enjoy developing in Linux. But using Linux as our primary operating system is not always an option. For me, that means working on a Windows desktop while also spending a lot of time in Linux tools and WSL2.&lt;/p&gt;

&lt;p&gt;One small part of that setup kept bothering me: &lt;strong&gt;GnuPG passphrase prompts on Windows&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;On Linux, you can use a graphical pinentry that fits your desktop environment. macOS has options that feel at home there, too. In my Windows GnuPG setup, &lt;code&gt;pinentry-basic.exe&lt;/code&gt; worked, but its prompt looked disconnected from the rest of the operating system. The problem was not that it failed to ask for a passphrase—it did that job. I wanted the prompt to look and behave like a Windows prompt.&lt;/p&gt;

&lt;p&gt;That was the starting point for &lt;a href="https://github.com/baliestri/pinentry-for-windows" rel="noopener noreferrer"&gt;Pinentry for Windows&lt;/a&gt;, or &lt;strong&gt;PFW&lt;/strong&gt;: a GnuPG pinentry that opens the &lt;strong&gt;Windows Security&lt;/strong&gt; credential window.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe978tf7aoyi9nqz8uh2q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe978tf7aoyi9nqz8uh2q.png" alt="Windows Security prompt opened by Pinentry for Windows" width="456" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The screenshot uses a fictional signing identity. In use, GnuPG supplies the description shown in the window.&lt;/p&gt;

&lt;h2&gt;
  
  
  A different problem appeared in WSL2
&lt;/h2&gt;

&lt;p&gt;I also use GnuPG from WSL2. There, a passphrase request commonly appears through a terminal or shell pinentry. That makes sense for a Linux terminal, but when my desktop is Windows, I wanted the option to show the prompt &lt;strong&gt;on that desktop&lt;/strong&gt; instead.&lt;/p&gt;

&lt;p&gt;PFW v2.0.0 adds a Linux relay for this case. The WSL2 &lt;code&gt;gpg-agent&lt;/code&gt; launches the relay as its pinentry; an authenticated bridge opens Windows Security in the interactive Windows session.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fflb3h2tjs7kndaxeiig7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fflb3h2tjs7kndaxeiig7.png" alt="Windows Security prompt for a WSL2 signing request" width="456" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice the &lt;code&gt;[archlinux]&lt;/code&gt; label: the window identifies the paired distribution that requested the prompt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The private key stays in WSL2.&lt;/strong&gt; Signing and decryption still happen in its GnuPG environment. Only the pinentry request and response cross the bridge, over TLS 1.3 and Hyper-V/vsock with paired certificates. WSL does not need to launch a Windows &lt;code&gt;.exe&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This also means something PFW &lt;strong&gt;does not&lt;/strong&gt; do: it does not make keys stored by Windows GnuPG available to Linux GnuPG. &lt;a href="https://github.com/baliestri/pinentry-for-windows/discussions/30" rel="noopener noreferrer"&gt;I’m asking users whether they need that separate feature&lt;/a&gt; before considering a design for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Optional caching with Windows Hello
&lt;/h2&gt;

&lt;p&gt;For an eligible &lt;strong&gt;software-key&lt;/strong&gt; passphrase, you can choose &lt;strong&gt;Remember me&lt;/strong&gt;. The persistent cache is opt-in, and each time PFW retrieves a saved passphrase it requires a fresh Windows Hello verification.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscvd7ana01ndjfzh60fo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscvd7ana01ndjfzh60fo.png" alt="Windows Hello verification during first-time cache setup" width="456" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Windows Hello here protects access to the optional cache; it does not replace GnuPG or authorize every signature. Smart-card and hardware-token PINs are never placed in this persistent cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/baliestri/pinentry-for-windows/releases/tag/v2.0.0" rel="noopener noreferrer"&gt;v2.0.0 release&lt;/a&gt; provides Native AOT executables for Windows and Linux on &lt;strong&gt;x64 and ARM64&lt;/strong&gt;, along with SHA-256 checksums. It requires Windows 11 24H2 or newer. You only need the .NET SDK if you plan to build from source.&lt;/p&gt;

&lt;p&gt;To set up the Windows pinentry, run in PowerShell 7:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;irm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'https://exec.baliestri.dev/pfw-setup.ps1'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iex&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WSL2 requires additional broker registration and certificate pairing. The &lt;a href="https://github.com/baliestri/pinentry-for-windows#add-a-wsl2-distribution" rel="noopener noreferrer"&gt;README has the complete steps&lt;/a&gt;, plus screenshots, troubleshooting, and uninstall instructions.&lt;/p&gt;

&lt;p&gt;PFW is open source. If you use GnuPG on Windows or WSL2, I’d like to know what you currently use for passphrase prompts—and whether this approach feels more at home on your desktop.&lt;/p&gt;

</description>
      <category>microsoft</category>
      <category>gnupg</category>
      <category>opensource</category>
      <category>dotnet</category>
    </item>
  </channel>
</rss>
