[CSHARP-2044] Migrate .NET Core build away from project.json Created: 26/Sep/17  Updated: 28/Oct/23  Resolved: 27/Nov/17

Status: Closed
Project: C# Driver
Component/s: Build
Affects Version/s: 2.4.4
Fix Version/s: 2.5

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Vincent Kam (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We have separate projects for our .NET Framework and our .NET Core builds. Also, the .NET Core build is still using project.json which has been deprecated.

It is possible that with the latest version of Visual Studio we could use a single project to multi-target both frameworks. At the very least we need to migrate away from using project.json.



 Comments   
Comment by Githook User [ 27/Nov/17 ]

Author:

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

Message: CSHARP-2044: Migrate project.json files to .csproj

.NET core build uses project.json which has been deprecated. This commit
migrates project.json files to .csproj files.

  • Replace project.json files with Visual Studio 2017's auto-migrated
    .csproj files.
  • Pin assembly info to a static version instead of using auto-increment
    to satisfy the new default of deterministic mode.
  • Update CAKE .NET Core build process to target individual .csproj files
    since file globbing no longer seems to work.
  • Update CAKE .NET Core build processes so that NuGet package restoration
    for the test projects occurs when targeting TestNetStandard15 instead of
    during BuildNetStandard15.
  • Update build process to copy test certificate file (step missed by
    auto-migration).
  • Unify expected location of the test certificate between .NET Framework
    tests and .NET Standard tests.
  • Re-enable .NET Standard builds for the default build target in CAKE.
  • Update internals class visibility for test helpers.
  • Re-enable .NET Standard tests when targeting "TestWindows" target.
    Branch: master
    https://github.com/mongodb/mongo-csharp-driver/commit/9f558dfcc9f01a5dfab639c53ae8178a020a6c1e
Generated at Wed Feb 07 21:41:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.