6/19/2023 0 Comments Visual studio code latest version![]() I would, however, like to get all the modern features of C# 9. ![]() So the csc.exe I was referring and have set as an environment variable path is outdated. '?' for /langversion must be ISO-1, ISO-2, 3, 4, 5 or Default" Warning CS2008: No source files specified error CS1617: Invalid option For compilers that support newer versions of the C# NET Framework,īut only supports language versions up to C# 5, which is no longer the This compiler is provided as part of the Microsoft (R). 0 for C# 5Ĭopyright (C) Microsoft Corporation. Microsoft (R) Visual C# Compiler version. I now try again in Visual Studio Code: csc -langversion:? The only csc.exe files I find are located in the directory:Ĭ:\Windows\Microsoft.NET\Framework64\v x.x.xxxxx with the latest being version being 9.Īll the instructions I could find suggested using this folder to be set as an environment variable path. I should locate the csc.exe file and set it as an environment variable path.NET SDK and compiler and uses it automatically. Visual Studio apparently contains the necessary. ![]() ![]() When using Visual Studio, this problem doesn't even occur.Having searched intensely, I have found out this: My previous attempts in solving the problem Name, or if a path was included, verify that the path is correct and I'm not able to find and use the latest version of C# compiler with Visual Studio Code.Įnquiring enquiring my compiler version with the Visual Studio Code terminal command csc -langversion:? brings up the following error message:Ĭsc : The term 'csc' is not recognized as the name of cmdlet,įunction, script file, or operable program. I'm setting up Visual Studio Code to write and learn C#. ![]()
0 Comments
Leave a Reply. |