Skip to content

Commit 4183a08

Browse files
CSHARP-2714: Update minimum .NET & .NET Standard version. (mongodb#599)
1 parent 7dadfdf commit 4183a08

File tree

264 files changed

+201
-1734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+201
-1734
lines changed

Docs/Api/CSharpDriverDocs.shfbproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
<HtmlHelpName>CSharpDriverDocs</HtmlHelpName>
2121
<Language>en-US</Language>
2222
<DocumentationSources>
23-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Bson.dll" />
24-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Bson.xml" />
25-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.Core.dll" />
26-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.Core.XML" />
27-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.dll" />
28-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.xml" />
29-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.GridFS.dll" />
30-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.GridFS.xml" />
31-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.Legacy.dll" />
32-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Driver.Legacy.xml" />
23+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Bson.dll" />
24+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Bson.xml" />
25+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.Core.dll" />
26+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.Core.XML" />
27+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.dll" />
28+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.xml" />
29+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.GridFS.dll" />
30+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.GridFS.xml" />
31+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.Legacy.dll" />
32+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Driver.Legacy.xml" />
3333
</DocumentationSources>
3434
<HelpFileFormat>HtmlHelp1, Website</HelpFileFormat>
3535
<HelpTitle>MongoDB .NET Driver API Documentation</HelpTitle>
@@ -97,7 +97,7 @@
9797
Include namespaces (false by default)
9898
Namespaces comments filename ("Namespaces" if not specified or empty)
9999
Output folder (current folder if not specified or empty) -->
100-
<output includeNamespaces="false" namespacesFile="Namespaces" folder="{@OutputFolder}\..\bin\net452" />
100+
<output includeNamespaces="false" namespacesFile="Namespaces" folder="{@OutputFolder}\..\bin\net472" />
101101
</component>
102102
</ComponentConfig>
103103
</ComponentConfigurations>

Docs/Api/LibMongocryptDocs.shfbproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<HtmlHelpName>LibMongocryptDocs</HtmlHelpName>
1818
<Language>en-US</Language>
1919
<DocumentationSources>
20-
<DocumentationSource sourceFile="..\..\artifacts\bin\net452\MongoDB.Libmongocrypt.dll" />
20+
<DocumentationSource sourceFile="..\..\artifacts\bin\net472\MongoDB.Libmongocrypt.dll" />
2121
</DocumentationSources>
2222
</PropertyGroup>
2323
<!-- There are no properties for these groups. AnyCPU needs to appear in order for Visual Studio to perform

Docs/reference/content/getting_started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title = "Installation"
1111

1212
## System Requirements
1313

14-
The NuGet packages include support for four target framework monikers (TFMs): net452, netstandard1.5, netstandard2.0, and netstandard2.1. The net452 target allows the driver to be used with the full .NET Framework version 4.5.2 and later. The netstandardX.Y TFMs allow the driver to be used with any .NET implementation supporting that TFM. This includes support for various versions of .NET Core as well as .NET 5.0 and above.
14+
The NuGet packages include support for three target framework monikers (TFMs): net472, netstandard2.0, and netstandard2.1. The net472 target allows the driver to be used with the full .NET Framework version 4.7.2 and later. The netstandardX.Y TFMs allow the driver to be used with any .NET implementation supporting that TFM. This includes support for various versions of .NET Core as well as .NET 5.0 and above.
1515

1616
## NuGet Installation
1717

build.cake

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Task("BuildArtifacts")
8585
.IsDependentOn("Build")
8686
.Does(() =>
8787
{
88-
foreach (var targetFramework in new[] { "net452", "netstandard1.5", "netstandard2.0", "netstandard2.1" })
88+
foreach (var targetFramework in new[] { "net472", "netstandard2.0", "netstandard2.1" })
8989
{
9090
var toDirectory = artifactsBinDirectory.Combine(targetFramework);
9191
CleanDirectory(toDirectory);
@@ -103,7 +103,7 @@ Task("BuildArtifacts")
103103
}
104104

105105
// add additional files needed by Sandcastle
106-
if (targetFramework == "net452" && project == "MongoDB.Driver.Core")
106+
if (targetFramework == "net472" && project == "MongoDB.Driver.Core")
107107
{
108108
fileNames.Add("DnsClient.dll");
109109
fileNames.Add("MongoDB.Libmongocrypt.dll");
@@ -167,8 +167,7 @@ Task("Test")
167167
};
168168
switch (target.ToLowerInvariant())
169169
{
170-
case "testnet452": settings.Framework = "net452"; break;
171-
case "testnetstandard15": settings.Framework = "netcoreapp1.1"; break;
170+
case "testnet472": settings.Framework = "net472"; break;
172171
case "testnetstandard20": settings.Framework = "netcoreapp2.1"; break;
173172
case "testnetstandard21": settings.Framework = "netcoreapp3.0"; break;
174173
default: ThrowIfNotDefaultTarget(target); break;
@@ -180,8 +179,7 @@ Task("Test")
180179
})
181180
.DeferOnError();
182181

183-
Task("TestNet452").IsDependentOn("Test");
184-
Task("TestNetStandard15").IsDependentOn("Test");
182+
Task("TestNet472").IsDependentOn("Test");
185183
Task("TestNetStandard20").IsDependentOn("Test");
186184
Task("TestNetStandard21").IsDependentOn("Test");
187185

@@ -335,8 +333,7 @@ Task("TestGssapi")
335333
};
336334
switch (target.ToLowerInvariant())
337335
{
338-
case "testgssapinet452": settings.Framework = "net452"; break;
339-
case "testgssapinetstandard15": settings.Framework = "netcoreapp1.1"; break;
336+
case "testgssapinet472": settings.Framework = "net472"; break;
340337
case "testgssapinetstandard20": settings.Framework = "netcoreapp2.1"; break;
341338
case "testgssapinetstandard21": settings.Framework = "netcoreapp3.0"; break;
342339
default: ThrowIfNotDefaultTarget(target); break;
@@ -347,8 +344,7 @@ Task("TestGssapi")
347344
);
348345
});
349346

350-
Task("TestGssapiNet452").IsDependentOn("TestGssapi");
351-
Task("TestGssapiNetStandard15").IsDependentOn("TestGssapi");
347+
Task("TestGssapiNet472").IsDependentOn("TestGssapi");
352348
Task("TestGssapiNetStandard20").IsDependentOn("TestGssapi");
353349
Task("TestGssapiNetStandard21").IsDependentOn("TestGssapi");
354350

@@ -368,8 +364,7 @@ Task("TestServerless")
368364
};
369365
switch (target.ToLowerInvariant())
370366
{
371-
case "testserverlessnet452": settings.Framework = "net452"; break;
372-
case "testserverlessnetstandard15": settings.Framework = "netcoreapp1.1"; break;
367+
case "testserverlessnet472": settings.Framework = "net472"; break;
373368
case "testserverlessnetstandard20": settings.Framework = "netcoreapp2.1"; break;
374369
case "testserverlessnetstandard21": settings.Framework = "netcoreapp3.0"; break;
375370
default: ThrowIfNotDefaultTarget(target); break;
@@ -380,8 +375,7 @@ Task("TestServerless")
380375
);
381376
});
382377

383-
Task("TestServerlessNet452").IsDependentOn("TestServerless");
384-
Task("TestServerlessNetStandard15").IsDependentOn("TestServerless");
378+
Task("TestServerlessNet472").IsDependentOn("TestServerless");
385379
Task("TestServerlessNetStandard20").IsDependentOn("TestServerless");
386380
Task("TestServerlessNetStandard21").IsDependentOn("TestServerless");
387381

@@ -402,7 +396,6 @@ Task("TestLoadBalanced")
402396

403397
switch (target.ToLowerInvariant())
404398
{
405-
case "testloadbalancednetstandard15": settings.Framework = "netcoreapp1.1"; break;
406399
case "testloadbalancednetstandard20": settings.Framework = "netcoreapp2.1"; break;
407400
case "testloadbalancednetstandard21": settings.Framework = "netcoreapp3.0"; break;
408401
}
@@ -413,7 +406,6 @@ Task("TestLoadBalanced")
413406
);
414407
});
415408

416-
Task("TestLoadBalancedNetStandard15").IsDependentOn("TestLoadBalanced");
417409
Task("TestLoadBalancedNetStandard20").IsDependentOn("TestLoadBalanced");
418410
Task("TestLoadBalancedNetStandard21").IsDependentOn("TestLoadBalanced");
419411

0 commit comments

Comments
 (0)