-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for PowerShell Core #80
Comments
I haven't had a chance to try this with PS Core. I would love to support it, any chance you can help me with that? |
Sure thing. I am no PS guru, but I can do a few things. I'll try to find alternate C# calls that actually exist on .NET Core and point them out. Maybe try the first pull request of my life. |
Sweet, thanks a bunch! |
I've had a bit of trouble getting to debug PS Core with VS and the PS Add-In, but will give it a shot with VS Code, which supports debugging it. |
Ok let me know if I can help. Did u see the build script in the root? |
I did, but even the build script fails. A few system related C# calls are either missing from PS Core or have a different name. It should be fairly straight forward once I have an environment running. I just spent roughly an hour trying to familiarize myself with VS Code, first with the C++ and CMake extensions (as that is my primary interest), but the PS extension is also installed, just not yet configured. Shoud I have any sensible questions, I'll let you know. |
@MathiasMagnus thanks for the investigation. I was thinking about this yesterday (see PS below) and I can think of the following issues with the current code.
Also I think the build script itself may have some xplat issues. I think to investigate the easiest way to start is:
For xplat I'm not sure how we can figure out where msbuild is installed. I'll send an email to folks on the MSBuild team to see if I can figure that out. If you email me (sayedha@microsoft.com) I'll add you to that thread. For the loading of the assemblies in the gac, that is only used when PS. Coincidentally I had lunch yesterday with Jeffrey Snover (the inventor of PowerShell) and I told him that we are looking to move psbuild to support PS Core. He was happy to hear that :) |
FYI the msbuild team has posted dotnet/msbuild#1039 which should enable us to acquire the msbuild runtime. |
@MathiasMagnus I've started some work to see if we can support PowerShell core. One of the challenges is just getting the bits setup to enable dev/test on linux. I made some changes to ensure that PSBuild is now self-contained via #81. Previously it would use The MSBuild team published the msbuild assembly in the nuget package Microsoft.Build.Runtime. You can download the latest nuget package using I've also created a new branch To try out this branch in the current state:
The known work to support core looks like:
|
Hi! Thanks for the efforts! My resources have been slightly overallocated. I will try to contribute with actual code, as time allows. I have another build system-related contribution (batch-mode rule support for the NMake generator of CMake) where I finally pinpointed the place where I could insert the required code. |
I just came across psbuild and am very interested in it. However, having recently moved to PowerShell Core for portability reasons, I wanted to give psbuild a spin under PS Core 6.0.0.9-beta.
Trying with the self-installing script:
MSBuild now being able to build on OSX and Linux using .Net Core, it would be nice if psbuild followed the example.
The text was updated successfully, but these errors were encountered: