[CSHARP-3665] The driver solution cannot be built on ubuntu machine Created: 16/May/21  Updated: 27/Oct/23  Resolved: 17/May/21

Status: Closed
Project: C# Driver
Component/s: Linux
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Dmitry Lukyanov (Inactive) Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently if I try to build the driver on ubuntu machine I see this error:

CSC : error CS1617: Invalid option '9' for /langversion. Use '/langversion:?' to list supported values. [/home/ubuntu/mongo_driver/mongo-csharp-driver/src/MongoDB.Bson/MongoDB.Bson.csproj]
CSC : error CS1617: Invalid option '9' for /langversion. Use '/langversion:?' to list supported values. [/home/ubuntu/mongo_driver/mongo-csharp-driver/src/MongoDB.Bson/MongoDB.Bson.csproj]
CSC : error CS1617: Invalid option '9' for /langversion. Use '/langversion:?' to list supported values. [/home/ubuntu/mongo_driver/mongo-csharp-driver/src/MongoDB.Bson/MongoDB.Bson.csproj]
CSC : error CS1617: Invalid option '9' for /langversion. Use '/langversion:?' to list supported values. [/home/ubuntu/mongo_driver/mongo-csharp-driver/tests/SkippableTests/SkippableTests.csproj]



 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 17/May/21 ]

It looks like it's related to the fact that our ubuntu boxes don't have all required dotnet sdks by default (this is why EG patches are not affected). So it's expected behavior and the solution here is to install required dotnet SDK manually or via cake

Generated at Wed Feb 07 21:45:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.