Skip to content

Commit d8537f1

Browse files
Updating NuGet packages to latest minor/patch versions (#8856)
1 parent ca70a5c commit d8537f1

File tree

267 files changed

+5813
-7423
lines changed

Some content is hidden

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

267 files changed

+5813
-7423
lines changed

.github/workflows/specflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- dev
9+
- task/nuget-updates
910
schedule:
1011
- cron: '0 0 * * 1' # Every Monday midnight.
1112

src/.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ trim_trailing_whitespace = true
88

99
[*.cs]
1010
csharp_new_line_before_open_brace = none
11-
dotnet_sort_system_directives_first = true
11+
dotnet_sort_system_directives_first = true
12+
13+
[*.config]
14+
indent_size = 2

src/Libraries/NHibernate/NHibernate.Linq/NHibernate.Linq.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
<Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
4646
<HintPath>..\..\..\packages\Antlr3.Runtime.3.5.1\lib\net40-client\Antlr3.Runtime.dll</HintPath>
4747
</Reference>
48-
<Reference Include="Iesi.Collections, Version=4.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
49-
<HintPath>..\..\..\packages\Iesi.Collections.4.0.4\lib\net461\Iesi.Collections.dll</HintPath>
48+
<Reference Include="Iesi.Collections, Version=4.1.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
49+
<HintPath>..\..\..\packages\Iesi.Collections.4.1.1\lib\net462\Iesi.Collections.dll</HintPath>
5050
</Reference>
5151
<Reference Include="Microsoft.CSharp" />
52-
<Reference Include="NHibernate, Version=5.5.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
53-
<HintPath>..\..\..\packages\NHibernate.5.5.2\lib\net48\NHibernate.dll</HintPath>
52+
<Reference Include="NHibernate, Version=5.6.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
53+
<HintPath>..\..\..\packages\NHibernate.5.6.0\lib\net48\NHibernate.dll</HintPath>
5454
</Reference>
5555
<Reference Include="Remotion.Linq, Version=2.2.0.0, Culture=neutral, PublicKeyToken=fee00910d6e5f53b, processorArchitecture=MSIL">
5656
<HintPath>..\..\..\packages\Remotion.Linq.2.2.0\lib\net45\Remotion.Linq.dll</HintPath>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Antlr3.Runtime" version="3.5.1" targetFramework="net48" />
4-
<package id="Iesi.Collections" version="4.0.4" targetFramework="net48" />
5-
<package id="NHibernate" version="5.5.2" targetFramework="net48" />
4+
<package id="Iesi.Collections" version="4.1.1" targetFramework="net48" />
5+
<package id="NHibernate" version="5.6.0" targetFramework="net48" />
66
<package id="Remotion.Linq" version="2.2.0" targetFramework="net48" />
77
<package id="Remotion.Linq.EagerFetching" version="2.2.0" targetFramework="net48" />
88
</packages>

src/Orchard.Azure.Tests/App.config

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<appSettings>
4-
<add key="AzureSDK" value="C:\Program Files (x86)\Microsoft SDKs\Azure\" />
5-
64
<add key="Orchard.Azure.Settings.StorageConnectionString" value="UseDevelopmentStorage=true" />
75
<add key="Orchard.Azure.Media.StorageConnectionString" value="UseDevelopmentStorage=true" />
86
</appSettings>
97
<startup>
108
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
119
</startup>
12-
<runtime>
13-
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
14-
<dependentAssembly>
15-
<assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" publicKeyToken="31bf3856ad364e35" culture="neutral" />
16-
<bindingRedirect oldVersion="0.0.0.0-2.7.0.0" newVersion="2.7.0.0" />
17-
</dependentAssembly>
18-
<dependentAssembly>
19-
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
20-
<bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="3.5.0.0" />
21-
</dependentAssembly>
22-
<dependentAssembly>
23-
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
24-
<bindingRedirect oldVersion="0.0.0.0-5.3.0.0" newVersion="5.3.0.0" />
25-
</dependentAssembly>
26-
<dependentAssembly>
27-
<assemblyIdentity name="Iesi.Collections" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
28-
<bindingRedirect oldVersion="0.0.0.0-4.0.0.4000" newVersion="4.0.0.4000" />
29-
</dependentAssembly>
30-
<dependentAssembly>
31-
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
32-
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
33-
</dependentAssembly>
34-
<dependentAssembly>
35-
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
36-
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
37-
</dependentAssembly>
38-
<dependentAssembly>
39-
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
40-
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
41-
</dependentAssembly>
42-
<dependentAssembly>
43-
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
44-
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
45-
</dependentAssembly>
46-
</assemblyBinding>
47-
</runtime>
4810
</configuration>

src/Orchard.Azure.Tests/AzureVirtualEnvironmentTest.cs

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,49 @@
1-
using System;
2-
using System.Configuration;
3-
using System.Diagnostics;
4-
using System.IO;
5-
using System.Linq;
6-
using Microsoft.WindowsAzure.Storage;
1+
using Microsoft.WindowsAzure.Storage;
72
using Microsoft.WindowsAzure.Storage.Blob;
83
using NUnit.Framework;
4+
using Orchard.Azure.Services.Environment.Configuration;
95

106
namespace Orchard.Azure.Tests {
117
public abstract class AzureVirtualEnvironmentTest {
12-
private Process _storageEmulator;
8+
protected IPlatformConfigurationAccessor PlatformConfigurationAccessor = new DefaultPlatformConfigurationAccessor();
9+
protected abstract string StorageConnectionStringName { get; }
10+
protected CloudStorageAccount DevAccount { get; private set; }
1311

1412
protected abstract void OnInit();
1513

16-
1714
[OneTimeSetUp]
1815
public void FixtureSetup() {
19-
if (!Process.GetProcessesByName("AzureStorageEmulator").Any()) {
20-
var azureSDKPath = ConfigurationManager.AppSettings["AzureSDK"];
21-
var storageEmulatorRelativePath = "Storage Emulator\\AzureStorageEmulator.exe";
16+
var connectionString = PlatformConfigurationAccessor.GetSetting(StorageConnectionStringName, "default", "");
2217

23-
if (String.IsNullOrEmpty(azureSDKPath)) {
24-
throw new ConfigurationErrorsException("Could not find the AppSetting \"AzureSDK\" that indicates the path to the Azure SDK on the local file system.");
25-
}
26-
27-
var storageEmulatorAbsolutePath = Path.Combine(azureSDKPath, storageEmulatorRelativePath);
28-
29-
if (!File.Exists(storageEmulatorAbsolutePath)) {
30-
throw new ConfigurationErrorsException("Could not find the executable to start the Azure Storage Emulator.");
31-
}
32-
33-
var storageEmulatorStartInfo = new ProcessStartInfo {
34-
Arguments = "start",
35-
FileName = storageEmulatorAbsolutePath
36-
};
37-
38-
_storageEmulator = new Process { StartInfo = storageEmulatorStartInfo };
39-
_storageEmulator.Start();
40-
_storageEmulator.WaitForExit();
41-
}
18+
CloudStorageAccount.TryParse(connectionString, out CloudStorageAccount devAccount);
19+
DevAccount = devAccount;
4220

4321
OnInit();
4422
}
4523

46-
[OneTimeTearDown]
47-
public void FixtureTearDown() {
48-
if (_storageEmulator != null)
49-
_storageEmulator.Close();
50-
}
51-
5224
protected void DeleteAllBlobs(string containerName, CloudStorageAccount account) {
5325
var blobClient = account.CreateCloudBlobClient();
5426
var container = blobClient.GetContainerReference(containerName);
5527

5628
foreach (var blob in container.ListBlobs()) {
57-
if (blob is CloudBlob) {
58-
((CloudBlob)blob).DeleteIfExists();
29+
if (blob is CloudBlob blobLeaf) {
30+
blobLeaf.DeleteIfExists();
5931
}
6032

61-
if (blob is CloudBlobDirectory) {
62-
DeleteAllBlobs((CloudBlobDirectory)blob);
33+
if (blob is CloudBlobDirectory directory) {
34+
DeleteAllBlobs(directory);
6335
}
6436
}
6537
}
6638

6739
private static void DeleteAllBlobs(CloudBlobDirectory cloudBlobDirectory) {
6840
foreach (var blob in cloudBlobDirectory.ListBlobs()) {
69-
if (blob is CloudBlob) {
70-
((CloudBlob)blob).DeleteIfExists();
41+
if (blob is CloudBlob blobLeaf) {
42+
blobLeaf.DeleteIfExists();
7143
}
7244

73-
if (blob is CloudBlobDirectory) {
74-
DeleteAllBlobs((CloudBlobDirectory)blob);
45+
if (blob is CloudBlobDirectory directory) {
46+
DeleteAllBlobs(directory);
7547
}
7648
}
7749
}

src/Orchard.Azure.Tests/Environment/Configuration/AzureShellSettingsManagerTests.cs

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Linq;
2-
using Microsoft.WindowsAzure.Storage;
32
using NUnit.Framework;
43
using Orchard.Azure.Services.Environment.Configuration;
54
using Orchard.Environment.Configuration;
@@ -8,14 +7,14 @@
87
namespace Orchard.Azure.Tests.Environment.Configuration {
98
[TestFixture]
109
public class AzureShellSettingsManagerTests : AzureVirtualEnvironmentTest {
10+
private IShellSettingsManager _shellSettingsManager;
1111

12-
protected CloudStorageAccount DevAccount;
13-
protected IShellSettingsManager ShellSettingsManager;
12+
protected override string StorageConnectionStringName { get; } = Constants.ShellSettingsStorageConnectionStringSettingName;
1413

1514
protected override void OnInit() {
16-
17-
CloudStorageAccount.TryParse("UseDevelopmentStorage=true", out DevAccount);
18-
ShellSettingsManager = new AzureBlobShellSettingsManager(new Moq.Mock<IMimeTypeProvider>().Object, new Moq.Mock<IShellSettingsManagerEventHandler>().Object);
15+
_shellSettingsManager = new AzureBlobShellSettingsManager(
16+
new Moq.Mock<IMimeTypeProvider>().Object,
17+
new Moq.Mock<IShellSettingsManagerEventHandler>().Object);
1918
}
2019

2120
[SetUp]
@@ -33,9 +32,9 @@ public void TearDown() {
3332
[Test]
3433
public void SingleSettingsFileShouldComeBackAsExpected() {
3534

36-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
35+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
3736

38-
var settings = ShellSettingsManager.LoadSettings().Single();
37+
var settings = _shellSettingsManager.LoadSettings().Single();
3938
Assert.That(settings, Is.Not.Null);
4039
Assert.That(settings.Name, Is.EqualTo("Default"));
4140
Assert.That(settings.DataProvider, Is.EqualTo("SQLCe"));
@@ -44,10 +43,10 @@ public void SingleSettingsFileShouldComeBackAsExpected() {
4443

4544
[Test]
4645
public void SettingsShouldBeOverwritable() {
47-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
48-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe2", DataConnectionString = "something else2" });
46+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
47+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe2", DataConnectionString = "something else2" });
4948

50-
var settings = ShellSettingsManager.LoadSettings().Single();
49+
var settings = _shellSettingsManager.LoadSettings().Single();
5150
Assert.That(settings, Is.Not.Null);
5251
Assert.That(settings.Name, Is.EqualTo("Default"));
5352
Assert.That(settings.DataProvider, Is.EqualTo("SQLCe2"));
@@ -57,10 +56,10 @@ public void SettingsShouldBeOverwritable() {
5756
[Test]
5857
public void MultipleFilesCanBeDetected() {
5958

60-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
61-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Another", DataProvider = "SQLCe2", DataConnectionString = "something else2" });
59+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLCe", DataConnectionString = "something else" });
60+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Another", DataProvider = "SQLCe2", DataConnectionString = "something else2" });
6261

63-
var settings = ShellSettingsManager.LoadSettings();
62+
var settings = _shellSettingsManager.LoadSettings();
6463
Assert.That(settings.Count(), Is.EqualTo(2));
6564

6665
var def = settings.Single(x => x.Name == "Default");
@@ -76,25 +75,25 @@ public void MultipleFilesCanBeDetected() {
7675

7776
[Test]
7877
public void NewSettingsCanBeStored() {
79-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLite", DataConnectionString = "something else" });
78+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLite", DataConnectionString = "something else" });
8079

8180
var foo = new ShellSettings { Name = "Foo", DataProvider = "Bar", DataConnectionString = "Quux" };
8281

83-
Assert.That(ShellSettingsManager.LoadSettings().Count(), Is.EqualTo(1));
84-
ShellSettingsManager.SaveSettings(foo);
85-
Assert.That(ShellSettingsManager.LoadSettings().Count(), Is.EqualTo(2));
82+
Assert.That(_shellSettingsManager.LoadSettings().Count(), Is.EqualTo(1));
83+
_shellSettingsManager.SaveSettings(foo);
84+
Assert.That(_shellSettingsManager.LoadSettings().Count(), Is.EqualTo(2));
8685

87-
foo = ShellSettingsManager.LoadSettings().Where(s => s.Name == "Foo").Single();
86+
foo = _shellSettingsManager.LoadSettings().Where(s => s.Name == "Foo").Single();
8887
Assert.That(foo.Name, Does.Contain("Foo"));
8988
Assert.That(foo.DataProvider, Does.Contain("Bar"));
9089
Assert.That(foo.DataConnectionString, Does.Contain("Quux"));
9190
}
9291

9392
[Test]
9493
public void SettingsCanContainSeparatorChar() {
95-
ShellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLite", DataConnectionString = "Server=tcp:tjyptm5sfc.database.windows.net;Database=orchard;User ID=foo@bar;Password=foo;Trusted_Connection=False;Encrypt=True;" });
94+
_shellSettingsManager.SaveSettings(new ShellSettings { Name = "Default", DataProvider = "SQLite", DataConnectionString = "Server=tcp:tjyptm5sfc.database.windows.net;Database=orchard;User ID=foo@bar;Password=foo;Trusted_Connection=False;Encrypt=True;" });
9695

97-
var settings = ShellSettingsManager.LoadSettings().Where(s => s.Name == "Default").Single();
96+
var settings = _shellSettingsManager.LoadSettings().Where(s => s.Name == "Default").Single();
9897
Assert.That(settings.DataConnectionString, Is.EqualTo("Server=tcp:tjyptm5sfc.database.windows.net;Database=orchard;User ID=foo@bar;Password=foo;Trusted_Connection=False;Encrypt=True;"));
9998
}
10099
}

0 commit comments

Comments
 (0)