I wish there was an easy way for a .NET application to import the PowerShell SDK *with the pwsh executable*. A full copy of PowerShell is already included, except the main executable entry point, which I have a use case for
Posts by Marc-André Moreau
Back at the cottage ❄️🐕
Tell me what you think! I'd like to keep improving it
Yes, I'm creating them under ~/.pwsh/venv by default when specifying just the name, but I have added support for environment variables to override the paths, and also accept a full path to the venv. I'm trying to make it easy but flexible for various use cases
A trip to Seattle would not be complete without bringing back some Chukar chocolate cherries 🍒
My first #MVPSummit was a blast! I had a lot of fun meeting so many nice people, and have the opportunity to provide feedback directly to Microsoft. I'm looking forward to next year already!
After all those years, I finally got to meet @nathanmcnulty.com in person at the #MVPSummit !
First day of the #MVPSummit! Looking forward to meeting a lot of awesome people this week!
Oh and there's a nice outdoor fireplace
I just arrived at the Sonesta hotel where I'll be staying all week for the MVP summit. It's not too late for a swim! I'm looking forward to meeting everyone
My two Coton de Tuléar white dogs on fresh white snow
Winter ❄️ isn't over yet!
Good UI frameworks for Windows desktop apps simply don't come from Microsoft 😜 devolutions.net/blog/devolut...
Have you looked at Avalonia UI?
WarpBuild has Windows runners, but it's unclear if nested virtualization can be enabled with Hyper-V: www.warpbuild.com/products/ci/...
I want the same kind of ephemeral VMs from standard cloud-hosted runners, except in a VM SKU that supports nested virtualization, with Hyper-V enabled. I don't want to deal with VMs directly, I want to pay for them just like any other cloud-hosted runners.
What's the simplest way to get Windows GitHub Actions runners that support Hyper-V? That's like the one thing I've always dreamed of, and I still can't find a way to do it without fixed hardware running 24/7 or dynamic VMs that need external orchestration and cleaning up
Nothing fancy here, so the regular versioned directories. I just want to add automatic cleanup on top of vanilla PowerShellGet and PSResourceGet
I understand why it's unlikely that Install-Module or Install-PSResource would start cleaning old modules automatically by default, but I don't understand why there isn't an option, or a first-party helper cmdlet
It's rare in practice, but it doesn't explain the apparent lack of official cleanup cmdlets or options. For an edge case, everyone expecting a module update instead gets to install a new version of a module while leaving the old one in place, with no easy way to keep things clean and tidy
<insert long reason why things are the way they are so they have to remain the way they are>
Yes, it's silly. It would require re-scanning all module dependencies to figure out which ones can be safely removed, and then untracked scripts may require a specific version of a module
I'd like to add an option in UniGetUI to uninstall other versions of a given PowerShell module, but ideally, I'd like to make the module update automatically remove old versions of the module, because that's what makes sense 99.9% of the time. It's an update, not a new install
Why does Update-Module in #PowerShell install the newer version of the module without uninstalling the old one? If you frequently update the same module, you quickly end up with several leftover module versions, and no quick and easy way to clean things up
Nice! This is going to be handy
I wonder if there's an acceptable way to prompt for UAC once when launching a batch of updates. The biggest issue I would see is that you wouldn't want to install user-level packages with elevations. Would this potentially cause problems?
Of course if you're the IT administrator nothing would prevent you from creating such a policy locally and "deploying" it on your own laptop 💻 but it would require elevated permissions to do so for obvious reasons
We have a plan for that, using Devolutions Agent to run the filtered elevated commands based on package policies that would be deployed by IT administrators, allowing users to install and update pre-approved packages from WinGet and anything supported by UniGetUI
What's the number one thing you wish UniGetUI could do? 🪄
Containers would certainly work for cargo, pip, npm. I'd need the large containers for MSIs installed through WinGet, scoop or chocolatey because nanoserver can't install MSIs
I am pondering the idea of refactoring the code to funnel all the process calling through platform wrappers that could easily be swapped by mock processes to test against recorded process input/output. This would at least catch regressions in output processing
How do you run unit tests for C# code that calls package manager command lines and parses the process output? WinGet, npm, pip, cargo, PowerShell, etc. Integration testing would require actually installing/upgrading/uninstalling packages in a controlled environment