dotnet build fails #7

Closed
opened 2024-06-10 09:36:49 +00:00 by dstepanov-yadro · 1 comment

dotnet build fails:

dotnet build /home/dstepanov/src/frostfs-sdk-csharp/FrostFS.SDK.sln /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="Any CPU" 
MSBuild version 17.4.8+6918b863a for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
CSC : error CS1617: Invalid option '12.0' for /langversion. Use '/langversion:?' to list supported values. [/home/dstepanov/src/frostfs-sdk-csharp/src/FrostFS.SDK.Cryptography/FrostFS.SDK.Cryptography.csproj]
CSC : error CS1617: Invalid option '12.0' for /langversion. Use '/langversion:?' to list supported values. [/home/dstepanov/src/frostfs-sdk-csharp/src/FrostFS.SDK.ProtosV2/FrostFS.SDK.ProtosV2.csproj]

According https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-versioning#defaults for netstandard 2.0 it must be 7.3 language version.

`dotnet build` fails: ``` dotnet build /home/dstepanov/src/frostfs-sdk-csharp/FrostFS.SDK.sln /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="Any CPU" MSBuild version 17.4.8+6918b863a for .NET Determining projects to restore... All projects are up-to-date for restore. CSC : error CS1617: Invalid option '12.0' for /langversion. Use '/langversion:?' to list supported values. [/home/dstepanov/src/frostfs-sdk-csharp/src/FrostFS.SDK.Cryptography/FrostFS.SDK.Cryptography.csproj] CSC : error CS1617: Invalid option '12.0' for /langversion. Use '/langversion:?' to list supported values. [/home/dstepanov/src/frostfs-sdk-csharp/src/FrostFS.SDK.ProtosV2/FrostFS.SDK.ProtosV2.csproj] ``` According https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-versioning#defaults for `netstandard 2.0` it must be 7.3 language version.
dstepanov-yadro added the
bug
label 2024-06-10 09:36:59 +00:00
Author
Member

My bad: need to update compiler :(

My bad: need to update compiler :(
Sign in to join this conversation.
No description provided.