[CSHARP-2751] Fix build script so that tests can run again Created: 24/Sep/19  Updated: 28/Oct/23  Resolved: 25/Sep/19

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

Type: Bug Priority: Critical - P2
Reporter: Vincent Kam (Inactive) Assignee: Vincent Kam (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

After the release of .NET Core 3.0, tests can no longer be run on evergreen. We see this error:

2019/09/24 00:06:33.685] ========================================
 [2019/09/24 00:06:33.685] Test
 [2019/09/24 00:06:34.380] ========================================
 [2019/09/24 00:06:34.380] Executing task: Test
 [2019/09/24 00:06:34.380] Test run for C:\data\mci\606beaca569b4482f3673e9611661a5b\mongo-csharp-driver\tests\MongoDB.Bson.Tests\bin\Release\netcoreapp2.1\MongoDB.Bson.Tests.dll(.NETCoreApp,Version=v2.1)
 [2019/09/24 00:06:34.465] Microsoft (R) Test Execution Command Line Tool Version 16.3.0
 [2019/09/24 00:06:34.543] Copyright (c) Microsoft Corporation.  All rights reserved.
 [2019/09/24 00:06:34.588] Starting test execution, please wait...
 [2019/09/24 00:06:34.753] Testhost process exited with error: It was not possible to find any compatible framework version
 [2019/09/24 00:06:34.753] The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
 [2019/09/24 00:06:34.753]   - The following frameworks were found:
 [2019/09/24 00:06:34.753]       3.0.0 at [C:\data\mci\606beaca569b4482f3673e9611661a5b\mongo-csharp-driver\.dotnet\shared\Microsoft.NETCore.App]
 [2019/09/24 00:06:34.753]       3.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
 [2019/09/24 00:06:34.753] You can resolve the problem by installing the specified framework and/or SDK.
 [2019/09/24 00:06:34.753] The .NET Core frameworks can be found at:
 [2019/09/24 00:06:34.753]   - https://aka.ms/dotnet-download
 [2019/09/24 00:06:34.753] . Please check the diagnostic logs for more information

My initial hypothesis is that this is due to the way we're downloading the dotnet sdk: it's related to a previous build issue that resulted in us targeting netcoreapp2.1 instead of netcoreapp1.0



 Comments   
Comment by Githook User [ 25/Sep/19 ]

Author:

{'username': 'vincentkam', 'email': 'vincent.kam@10gen.com', 'name': 'vincentkam'}

Message: CSHARP-2751: Fix build script so that tests can run again
Branch: v2.9.x
https://github.com/mongodb/mongo-csharp-driver/commit/7a5a029a5e9053ead34651a69d1690a3f0eb8654

Comment by Githook User [ 25/Sep/19 ]

Author:

{'name': 'vincentkam', 'username': 'vincentkam', 'email': 'vincent.kam@10gen.com'}

Message: CSHARP-2751: Fix build script so that tests can run again
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9a47a7b636a02c68b1dfb8c852db17a9c60f10fe

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