'Add' NuGet Package - 9.2.21

JohnGoldsmith
edited October 3 in General

Add NuGet package references message box adds a spurious package.

On writing a new prompt and adding code via Insert at cursor I get the Add NuGet package references message box:

I'm expecting the YamlDotNet, but not the "Add" package.

After clicking yes, the References dialog looks like this:

And the script looks like this:

<Query Kind="Program">
  <NuGetReference>Add</NuGetReference>
  <NuGetReference>YamlDotNet</NuGetReference>
  <Namespace>YamlDotNet.RepresentationModel</Namespace>
</Query>

void Main()
{

The generated code from the prompt includes a comment at the top like this:

// LINQPad: C# Program
// NuGet: Add YamlDotNet

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using YamlDotNet.RepresentationModel;

// Entry point for testing/reporting:
void Main()
{