'Add' NuGet Package - 9.2.21
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()
{
Comments
-
This should now be fixed in 9.3.1. Let me know if you are still experiencing issues.
-
Great. Thank you. I confirm that in 9.3.3 I'm directed to manually add the yaml package and even if I manually edit the model response by adding
// NuGet: Add YamlDotNetit is still ignored (which is fine).

