Package Manager Console - Default Project

I was looking to add MahApps and Elysium Theme to play around with more GUI options, but I can’t select a default project. Even if I select a startup project, the Default Project dropdown is empty.

It works if I create a C# solution.

Thanks,

Joe

Tool: Visual Studio, Visual Studio Code, PSScriptPad, PowerShell Module
Version: VS2019 & 2022

This is a limitation of the NuGet extension for Visual Studio. They need to add support for PowerShell projects. I actually opened an issue with them years ago and it was never completed. I could follow up to see if there is any way we can contribute back to the extension to see if we could support it.

You can download the NuGet package directly from NuGet:

Invoke-WebRequest https://www.nuget.org/api/v2/package/Elysium.Theme/2.0.4 -OutFile .\elysium.theme.zip 
Expand-Archive .\elysium.theme.zip .\elysium.theme

As always… Thanks Adam!

Joe

1 Like