Closed dsikic closed 11 months ago
@apobekiaris if you point me in the right direction, I'm happy to implement this myself in a pull request. Just not sure where the scripts are all stored.
better idea is to disable the scripts once in MacOs cause they do actually nothing. The latest version already has VersionConverter.ps1 disabled
VersionConverter support stopped as we got into this .NetFramework hell, meaning when .net5/.netcore was introduced. CopySymbols copy the symbols from Nuget dir into path, howewver symbols are only working in windows, so tottally of no use.
YOu can add a returbn at the start of the script and test?
Happy to accept a PR if u can test detecting non Windows should be trivial as per c#
note pwsh is c# actually with a different syntax so u could
[System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform([System.Runtime.InteropServices.OSPlatform]::Windows)
$IsWindows
or https://stackoverflow.com/questions/64893785/how-to-detect-linux-or-macos-or-windows-in-powershell
let me know if u require more help
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
๐๐ ๐๐ผ๐๐ฟ ๐ณ๐ฒ๐ฎ๐๐๐ฟ๐ฒ ๐ฟ๐ฒ๐พ๐๐ฒ๐๐ ๐ฟ๐ฒ๐น๐ฎ๐๐ฒ๐ฑ ๐๐ผ ๐ฎ ๐ฝ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ? ๐ฃ๐น๐ฒ๐ฎ๐๐ฒ ๐ฑ๐ฒ๐๐ฐ๐ฟ๐ถ๐ฏ๐ฒ. I understand that very few people have thought about using VS on Mac, so this is quite niche. However, if you find yourself with an M1 (arm) based Mac or MacBook, you'll soon discover that running Visual Studio inside of parallels doesn't perform well. In fact Microsoft gives you a warning when the installer is running.
Visual Studio for Mac is actually a decent experience when Developing XAF Blazor, but it breaks as soon as eXpand NuGet dependencies are introduced. Visual Studio will throw a build error saying it cannot find Powershell.exe and also that running powershell.exe, with a bunch of parameters failed.
To get around this issue you can install PWSH using the following guide. It's quick, just install brew, then use brew, then add to path.
Installing PowerShell on macOS
Once this is done, I experimented with adding a shell alias for powershell.exe, but visual studio doesn't pick it up so that didn't yield any results.
However, once you have PWSH installed if you double click the error in Visual Studio for Mac it will take you to the *.targets file where the following command exists.
`<?xml version="1.0" encoding="utf-8"?>