Skip to content

Commit 25c84ca

Browse files
Centrally manage packages (#214)
* Centrally manage packages * Remove duplicate * Update packages.lock
1 parent 094badd commit 25c84ca

8 files changed

+182
-154
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<EnableNETAnalyzers>true</EnableNETAnalyzers>
55
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
78
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
89
<RestoreLockedMode>true</RestoreLockedMode>
910
</PropertyGroup>

Directory.Packages.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project>
2+
<ItemGroup>
3+
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.3" />
4+
<PackageVersion Include="Microsoft.NET.Sdk.Functions" Version="3.0.13" />
5+
<PackageVersion Include="Microsoft.ApplicationInsights" Version="2.17.0" />
6+
<PackageVersion Include="Microsoft.Azure.WebJobs" Version="3.0.31" />
7+
<PackageVersion Include="Microsoft.Data.SqlClient" Version="3.0.1" />
8+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
9+
<PackageVersion Include="morelinq" Version="3.3.2" />
10+
<PackageVersion Include="System.Runtime.Caching" Version="4.7.0" />
11+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
12+
<PackageVersion Include="Moq" Version="4.14.3" />
13+
<PackageVersion Include="xunit" Version="2.4.0" />
14+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.0" />
15+
</ItemGroup>
16+
</Project>

samples/Microsoft.Azure.WebJobs.Extensions.Sql.Samples.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.3" />
9-
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.13" />
8+
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" />
9+
<PackageReference Include="Microsoft.NET.Sdk.Functions"/>
1010
</ItemGroup>
1111

1212
<ItemGroup>

samples/packages.lock.json

Lines changed: 65 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
".NETCoreApp,Version=v3.1": {
55
"Microsoft.Azure.WebJobs.Extensions.Storage": {
@@ -56,14 +56,6 @@
5656
"System.Threading.Tasks.Extensions": "4.5.2"
5757
}
5858
},
59-
"Microsoft.ApplicationInsights": {
60-
"type": "Transitive",
61-
"resolved": "2.17.0",
62-
"contentHash": "moAOrjhwiCWdg8I4fXPEd+bnnyCSRxo6wmYQ0HuNrWJUctzZEiyVTbJ8QTS6+dBOFTxpI6x+OY5wHPHrgWOk1Q==",
63-
"dependencies": {
64-
"System.Diagnostics.DiagnosticSource": "5.0.0"
65-
}
66-
},
6759
"Microsoft.AspNet.WebApi.Client": {
6860
"type": "Transitive",
6961
"resolved": "5.2.4",
@@ -341,25 +333,6 @@
341333
"NETStandard.Library": "2.0.1"
342334
}
343335
},
344-
"Microsoft.Azure.WebJobs": {
345-
"type": "Transitive",
346-
"resolved": "3.0.31",
347-
"contentHash": "Jn6E7OgT7LkwVB6lCpjXJcoQIvKrbJT+taVLA4CekEpa21pzZv6nQ2sYRSNzPz5ul3FAcYhmrCQgV7v2iopjgA==",
348-
"dependencies": {
349-
"Microsoft.Azure.WebJobs.Core": "3.0.31",
350-
"Microsoft.Extensions.Configuration": "2.1.1",
351-
"Microsoft.Extensions.Configuration.Abstractions": "2.1.1",
352-
"Microsoft.Extensions.Configuration.EnvironmentVariables": "2.1.0",
353-
"Microsoft.Extensions.Configuration.Json": "2.1.0",
354-
"Microsoft.Extensions.Hosting": "2.1.0",
355-
"Microsoft.Extensions.Logging": "2.1.1",
356-
"Microsoft.Extensions.Logging.Abstractions": "2.1.1",
357-
"Microsoft.Extensions.Logging.Configuration": "2.1.0",
358-
"Newtonsoft.Json": "11.0.2",
359-
"System.Memory.Data": "1.0.1",
360-
"System.Threading.Tasks.Dataflow": "4.8.0"
361-
}
362-
},
363336
"Microsoft.Azure.WebJobs.Core": {
364337
"type": "Transitive",
365338
"resolved": "3.0.31",
@@ -419,25 +392,6 @@
419392
"resolved": "4.5.0",
420393
"contentHash": "kaj6Wb4qoMuH3HySFJhxwQfe8R/sJsNJnANrvv8WdFPMoNbKY5htfNscv+LHCu5ipz+49m2e+WQXpLXr9XYemQ=="
421394
},
422-
"Microsoft.Data.SqlClient": {
423-
"type": "Transitive",
424-
"resolved": "3.0.1",
425-
"contentHash": "5Jgcds8yukUeOHvc8S0rGW87rs2uYEM9/YyrYIb/0C+vqzIa2GiqbVPCDVcnApWhs67OSXLTM7lO6jro24v/rA==",
426-
"dependencies": {
427-
"Azure.Identity": "1.3.0",
428-
"Microsoft.Data.SqlClient.SNI.runtime": "3.0.0",
429-
"Microsoft.Identity.Client": "4.22.0",
430-
"Microsoft.IdentityModel.JsonWebTokens": "6.8.0",
431-
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.8.0",
432-
"Microsoft.Win32.Registry": "4.7.0",
433-
"System.Configuration.ConfigurationManager": "4.7.0",
434-
"System.Diagnostics.DiagnosticSource": "4.7.0",
435-
"System.Runtime.Caching": "4.7.0",
436-
"System.Security.Principal.Windows": "4.7.0",
437-
"System.Text.Encoding.CodePages": "4.7.0",
438-
"System.Text.Encodings.Web": "4.7.2"
439-
}
440-
},
441395
"Microsoft.Data.SqlClient.SNI.runtime": {
442396
"type": "Transitive",
443397
"resolved": "3.0.0",
@@ -758,11 +712,6 @@
758712
"Microsoft.NETCore.Platforms": "3.1.0"
759713
}
760714
},
761-
"morelinq": {
762-
"type": "Transitive",
763-
"resolved": "3.3.2",
764-
"contentHash": "MQc8GppZJLmjvcpEdf3EkC6ovsp7gRWt2e5mC7dcIOrgwSc+yjFd3JQ0iRqr3XrUT6rb/phv0IkEmBtbfVA7AQ=="
765-
},
766715
"ncrontab.signed": {
767716
"type": "Transitive",
768717
"resolved": "3.3.0",
@@ -1502,14 +1451,6 @@
15021451
"Microsoft.NETCore.Targets": "1.1.0"
15031452
}
15041453
},
1505-
"System.Runtime.Caching": {
1506-
"type": "Transitive",
1507-
"resolved": "4.7.0",
1508-
"contentHash": "NdvNRjTPxYvIEhXQszT9L9vJhdQoX6AQ0AlhjTU+5NqFQVuacJTfhPVAvtGWNA2OJCqRiR/okBcZgMwI6MqcZg==",
1509-
"dependencies": {
1510-
"System.Configuration.ConfigurationManager": "4.7.0"
1511-
}
1512-
},
15131454
"System.Runtime.CompilerServices.Unsafe": {
15141455
"type": "Transitive",
15151456
"resolved": "4.5.1",
@@ -1899,6 +1840,70 @@
18991840
"System.Runtime.Caching": "4.7.0",
19001841
"morelinq": "3.3.2"
19011842
}
1843+
},
1844+
"Microsoft.ApplicationInsights": {
1845+
"type": "CentralTransitive",
1846+
"requested": "[2.17.0, )",
1847+
"resolved": "2.17.0",
1848+
"contentHash": "moAOrjhwiCWdg8I4fXPEd+bnnyCSRxo6wmYQ0HuNrWJUctzZEiyVTbJ8QTS6+dBOFTxpI6x+OY5wHPHrgWOk1Q==",
1849+
"dependencies": {
1850+
"System.Diagnostics.DiagnosticSource": "5.0.0"
1851+
}
1852+
},
1853+
"Microsoft.Azure.WebJobs": {
1854+
"type": "CentralTransitive",
1855+
"requested": "[3.0.31, )",
1856+
"resolved": "3.0.31",
1857+
"contentHash": "Jn6E7OgT7LkwVB6lCpjXJcoQIvKrbJT+taVLA4CekEpa21pzZv6nQ2sYRSNzPz5ul3FAcYhmrCQgV7v2iopjgA==",
1858+
"dependencies": {
1859+
"Microsoft.Azure.WebJobs.Core": "3.0.31",
1860+
"Microsoft.Extensions.Configuration": "2.1.1",
1861+
"Microsoft.Extensions.Configuration.Abstractions": "2.1.1",
1862+
"Microsoft.Extensions.Configuration.EnvironmentVariables": "2.1.0",
1863+
"Microsoft.Extensions.Configuration.Json": "2.1.0",
1864+
"Microsoft.Extensions.Hosting": "2.1.0",
1865+
"Microsoft.Extensions.Logging": "2.1.1",
1866+
"Microsoft.Extensions.Logging.Abstractions": "2.1.1",
1867+
"Microsoft.Extensions.Logging.Configuration": "2.1.0",
1868+
"Newtonsoft.Json": "11.0.2",
1869+
"System.Memory.Data": "1.0.1",
1870+
"System.Threading.Tasks.Dataflow": "4.8.0"
1871+
}
1872+
},
1873+
"Microsoft.Data.SqlClient": {
1874+
"type": "CentralTransitive",
1875+
"requested": "[3.0.1, )",
1876+
"resolved": "3.0.1",
1877+
"contentHash": "5Jgcds8yukUeOHvc8S0rGW87rs2uYEM9/YyrYIb/0C+vqzIa2GiqbVPCDVcnApWhs67OSXLTM7lO6jro24v/rA==",
1878+
"dependencies": {
1879+
"Azure.Identity": "1.3.0",
1880+
"Microsoft.Data.SqlClient.SNI.runtime": "3.0.0",
1881+
"Microsoft.Identity.Client": "4.22.0",
1882+
"Microsoft.IdentityModel.JsonWebTokens": "6.8.0",
1883+
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.8.0",
1884+
"Microsoft.Win32.Registry": "4.7.0",
1885+
"System.Configuration.ConfigurationManager": "4.7.0",
1886+
"System.Diagnostics.DiagnosticSource": "4.7.0",
1887+
"System.Runtime.Caching": "4.7.0",
1888+
"System.Security.Principal.Windows": "4.7.0",
1889+
"System.Text.Encoding.CodePages": "4.7.0",
1890+
"System.Text.Encodings.Web": "4.7.2"
1891+
}
1892+
},
1893+
"morelinq": {
1894+
"type": "CentralTransitive",
1895+
"requested": "[3.3.2, )",
1896+
"resolved": "3.3.2",
1897+
"contentHash": "MQc8GppZJLmjvcpEdf3EkC6ovsp7gRWt2e5mC7dcIOrgwSc+yjFd3JQ0iRqr3XrUT6rb/phv0IkEmBtbfVA7AQ=="
1898+
},
1899+
"System.Runtime.Caching": {
1900+
"type": "CentralTransitive",
1901+
"requested": "[4.7.0, )",
1902+
"resolved": "4.7.0",
1903+
"contentHash": "NdvNRjTPxYvIEhXQszT9L9vJhdQoX6AQ0AlhjTU+5NqFQVuacJTfhPVAvtGWNA2OJCqRiR/okBcZgMwI6MqcZg==",
1904+
"dependencies": {
1905+
"System.Configuration.ConfigurationManager": "4.7.0"
1906+
}
19021907
}
19031908
}
19041909
}

src/Microsoft.Azure.WebJobs.Extensions.Sql.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
</PropertyGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.17.0" />
28-
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.31" />
29-
<PackageReference Include="Microsoft.Data.SqlClient" Version="3.0.1" />
30-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.*" PrivateAssets="All" />
31-
<PackageReference Include="morelinq" Version="3.3.2" />
32-
<PackageReference Include="System.Runtime.Caching" Version="4.7.0" />
27+
<PackageReference Include="Microsoft.ApplicationInsights" />
28+
<PackageReference Include="Microsoft.Azure.WebJobs" />
29+
<PackageReference Include="Microsoft.Data.SqlClient" />
30+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
31+
<PackageReference Include="morelinq" />
32+
<PackageReference Include="System.Runtime.Caching" />
3333
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
3434
<_Parameter1>Microsoft.Azure.WebJobs.Extensions.Sql.Tests</_Parameter1>
3535
</AssemblyAttribute>

src/packages.lock.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
".NETStandard,Version=v2.1": {
55
"Microsoft.ApplicationInsights": {
@@ -55,12 +55,12 @@
5555
},
5656
"Microsoft.SourceLink.GitHub": {
5757
"type": "Direct",
58-
"requested": "[1.0.*, )",
59-
"resolved": "1.0.0",
60-
"contentHash": "aZyGyGg2nFSxix+xMkPmlmZSsnGQ3w+mIG23LTxJZHN+GPwTQ5FpPgDo7RMOq+Kcf5D4hFWfXkGhoGstawX13Q==",
58+
"requested": "[1.1.1, )",
59+
"resolved": "1.1.1",
60+
"contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==",
6161
"dependencies": {
62-
"Microsoft.Build.Tasks.Git": "1.0.0",
63-
"Microsoft.SourceLink.Common": "1.0.0"
62+
"Microsoft.Build.Tasks.Git": "1.1.1",
63+
"Microsoft.SourceLink.Common": "1.1.1"
6464
}
6565
},
6666
"morelinq": {
@@ -125,8 +125,8 @@
125125
},
126126
"Microsoft.Build.Tasks.Git": {
127127
"type": "Transitive",
128-
"resolved": "1.0.0",
129-
"contentHash": "z2fpmmt+1Jfl+ZnBki9nSP08S1/tbEOxFdsK1rSR+LBehIJz1Xv9/6qOOoGNqlwnAGGVGis1Oj6S8Kt9COEYlQ=="
128+
"resolved": "1.1.1",
129+
"contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q=="
130130
},
131131
"Microsoft.CSharp": {
132132
"type": "Transitive",
@@ -383,8 +383,8 @@
383383
},
384384
"Microsoft.SourceLink.Common": {
385385
"type": "Transitive",
386-
"resolved": "1.0.0",
387-
"contentHash": "G8DuQY8/DK5NN+3jm5wcMcd9QYD90UV7MiLmdljSJixi3U/vNaeBKmmXUqI4DJCOeWizIUEh4ALhSt58mR+5eg=="
386+
"resolved": "1.1.1",
387+
"contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg=="
388388
},
389389
"Microsoft.Win32.Primitives": {
390390
"type": "Transitive",

test/Microsoft.Azure.WebJobs.Extensions.Sql.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
9-
<PackageReference Include="Moq" Version="4.14.3" />
10-
<PackageReference Include="xunit" Version="2.4.0" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
12-
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.13" />
8+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
9+
<PackageReference Include="Moq" />
10+
<PackageReference Include="xunit" />
11+
<PackageReference Include="xunit.runner.visualstudio" />
12+
<PackageReference Include="Microsoft.NET.Sdk.Functions" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)