Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for to use it with PowerShell Core #1094

Closed
Juanito99 opened this issue Apr 26, 2018 · 9 comments
Closed

Examples for to use it with PowerShell Core #1094

Juanito99 opened this issue Apr 26, 2018 · 9 comments
Milestone

Comments

@Juanito99
Copy link

Hi there,

could you provide a few simple examples that show how to use it with PowerShell Core?
That would open also cross platform GUIs for sysadmins like me 😀

Thanks in advance

Ruben

@harry-cpp
Copy link
Contributor

This... doesn't make sense... you just use dotnet new like with every other cmd/bash.

@SlowLogicBoy
Copy link
Contributor

@cra0zy you can call .net methods using PowerShell.

@harry-cpp
Copy link
Contributor

Oh, didn't realize that... hmm... need to test this on Linux.

@Juanito99
Copy link
Author

@SlowLogicBoy Thanks for this comment. That is exactly what I meant.

@cra0zy Just for your reference, here is an example for traditional windows.forms library and windows powershell.

I am just looking for something to get started. A small form with an input field a few basic controls and a text-field. - That should be sufficient for most cases. Thank you 🙇‍♂️

@cwensley
Copy link
Member

cwensley commented Dec 3, 2018

Thanks for the suggestion! I don't have time to do this myself, but would welcome anyone to look into it and write a wiki page.

@cwensley cwensley added this to the Backlog milestone Dec 3, 2018
@ALIENQuake
Copy link

ALIENQuake commented Sep 6, 2019

@Juanito99 Sorry for bringing bad news: using ANY GUI framework with Powershell won't work for MacOS bacause of the "GUI must be on main thread" limitation. Please see this issue: ironmansoftware/psavalonia#1 So cross-platform GUI is not possible to achieve when you start with Powershell, but you can create c# app, add Powershell Core as NuGet package and call ps1 scripts from the c#.

@Juanito99
Copy link
Author

@ALIENQuake

  1. Nice name ;-)
  2. It's a pity, but many thanks for you feedback 🙇‍♂️ 😄

@Hexality
Copy link

Not the case anymore specially on linux since psavalonia works, how is it going?

@Hexality
Copy link

image
Welp, I guess I got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants