Nicoder
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Using
Using
mcs
throws a whole bunch of compiler errors since it doesn't support C# 11 syntax yet.
error CS1525: Unexpected symbol `)', expecting `(' or `type'
error CS1010: Newline in constant
error CS1525: Unexpected symbol `-'
error CS1525: Unexpected symbol `-'
error CS1012: Too many characters in character literal
error CS1525: Unexpected symbol `-'
error CS1525: Unexpected symbol `Multiple'
error CS1010: Newline in constant
error CS1001: Unexpected symbol `.', expecting identifier
error CS1001: Unexpected symbol `]', expecting identifier
error CS1525: Unexpected symbol `?'
error CS1525: Unexpected symbol `:', expecting `,' or `;'
error CS1525: Unexpected symbol `//', expecting `,' or `;'
error CS1525: Unexpected symbol `?'
error CS1525: Unexpected symbol `:', expecting `,' or `;'
error CS1525: Unexpected symbol `//', expecting `,' or `;'
error CS1525: Unexpected symbol `)', expecting `(' or `type'
error CS1525: Unexpected symbol `)', expecting `(' or `type'
error CS1010: Newline in constant
error CS1525: Unexpected symbol `-'
error CS1525: Unexpected symbol `-'
error CS1012: Too many characters in character literal
error CS1525: Unexpected symbol `-'
error CS1525: Unexpected symbol `Multiple'
error CS1010: Newline in constant
error CS1001: Unexpected symbol `.', expecting identifier
error CS1001: Unexpected symbol `]', expecting identifier
error CS1525: Unexpected symbol `?'
error CS1525: Unexpected symbol `:', expecting `,' or `;'
error CS1525: Unexpected symbol `//', expecting `,' or `;'
error CS1525: Unexpected symbol `?'
error CS1525: Unexpected symbol `:', expecting `,' or `;'
error CS1525: Unexpected symbol `//', expecting `,' or `;'
error CS1525: Unexpected symbol `)', expecting `(' or `type'
dotnet build
results in this error:
getcwd() failed: Operation not permitted
MSBuild version 17.9.6+a4ecab324 for .NET
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.UnauthorizedAccessException: Access to the path is denied.
---> System.IO.IOException: Operation not permitted
getcwd() failed: Operation not permitted
MSBuild version 17.9.6+a4ecab324 for .NET
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.UnauthorizedAccessException: Access to the path is denied.
---> System.IO.IOException: Operation not permitted
72 replies