Page 1 of 1

Path to CSC.exe not found

Posted: Thu Aug 04, 2022 11:27 pm
by Mystery_Man_01
Product, version and build: Primalscript 8.0.169
Operating system: Win 10
PowerShell version(s): 5.1.19041.1682

I'm brand new to C# and compiled languages. When I started Primalscript for the first time I got the error "Unable to find CSC.exe" or something like that. I found and gave a path to CSC.exe and I can now compile and run Hello World - yay.

I found I am unable to use String Interpolation. I suspect this is because I gave the path to an old version of CSC.exe - where can I update the path to a newer version. Is this stored within Primalscript somewhere?

Re: Path to CSC.exe not found

Posted: Fri Aug 05, 2022 7:44 am
by brittneyr
String Interpolation was introduced in C# 10 with .NET 6. Mostly like the CSC.exe you found was for .NET Framework which has an older version of C#.
I will check with the development team to see if .NET 6 is supported and someone will get back to you.

Re: Path to CSC.exe not found

Posted: Fri Aug 05, 2022 8:55 am
by Alexander Riedel
Specify the path to the compiler you would like to use here:
2022-08-05_8-53-35.png (58.9 KiB) Viewed 4021 times

Re: Path to CSC.exe not found

Posted: Tue Aug 09, 2022 3:32 pm
by brittneyr
For C# 10, you will need to download .NET 6: