MegaBites-AI/Windows-powershell
0308
1PowerShell2==========3 4The `powershell[.exe]` executable for PowerShell is built by5**powershell-unix** and **powershell-windows** projects,6as they are the top dependencies of the graph, and has `emitEntryPoint: true`,7meaning a native executable is produced automatically by CLI (no need to own a8separate native host).9 10This project is a very simple shim that provides a `Main` function for .NET CLI11to produce an app. It initializes PowerShell's custom `AssemblyLoadContext` and12then delegates to the same `Start` function in13`Microsoft.PowerShell.ConsoleHost` that the original native PowerShell host14executes; thus we share the same entry point and the same PowerShell host, but15use a different native host. This lets us take full advantage of .NET CLI's16native host.17 18We use this shim so that the `ConsoleHost` project and the original native host19do not have to be changed. Additionally, until .NET CLI bugs surrounding content20file deployment are solved, this shim allows us to continue with our split21`Modules` folders work-around to deploy the correct versions.22 