diff --git a/integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs b/integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs index 82bd89dbe2..1de795d6f9 100644 --- a/integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs +++ b/integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs @@ -10,6 +10,17 @@ open System.Diagnostics open Paket open Paket.Domain +[] +let ``#1178 update specific package``() = + paket "update nuget NUnit" "i001178-update-with-regex" |> ignore + let lockFile = LockFile.LoadFrom(Path.Combine(scenarioTempPath "i001178-update-with-regex","paket.lock")) + lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Castle.Windsor"].Version + |> shouldEqual (SemVer.Parse "2.5.1") + lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version + |> shouldBeGreaterThan (SemVer.Parse "2.6.1") + lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version + |> shouldEqual (SemVer.Parse "5.0.1") + [] let ``#1178 update with Mircosoft.* filter``() = paket "update nuget Microsoft.* --filter" "i001178-update-with-regex" |> ignore @@ -30,4 +41,12 @@ let ``#1178 update with [MN].* --filter``() = lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version |> shouldBeGreaterThan (SemVer.Parse "2.6.1") lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version - |> shouldBeGreaterThan (SemVer.Parse "5.0.1") \ No newline at end of file + |> shouldBeGreaterThan (SemVer.Parse "5.0.1") + +[] +let ``#1178 update with [MN].* and without filter should fail``() = + try + paket "update nuget [MN].*" "i001178-update-with-regex" |> ignore + failwithf "Paket command expected to fail" + with + | exn when exn.Message.Contains "Package [MN].* was not found in paket.dependencies in group Main" -> () \ No newline at end of file diff --git a/src/Paket.Bootstrapper/Properties/AssemblyInfo.cs b/src/Paket.Bootstrapper/Properties/AssemblyInfo.cs index 9e42769d45..eef738c0ed 100644 --- a/src/Paket.Bootstrapper/Properties/AssemblyInfo.cs +++ b/src/Paket.Bootstrapper/Properties/AssemblyInfo.cs @@ -4,11 +4,11 @@ [assembly: AssemblyTitleAttribute("Paket.Bootstrapper")] [assembly: AssemblyProductAttribute("Paket")] [assembly: AssemblyDescriptionAttribute("A package dependency manager for .NET with support for NuGet packages and GitHub repositories.")] -[assembly: AssemblyVersionAttribute("2.19.0")] -[assembly: AssemblyFileVersionAttribute("2.19.0")] -[assembly: AssemblyInformationalVersionAttribute("2.19.0")] +[assembly: AssemblyVersionAttribute("2.20.0")] +[assembly: AssemblyFileVersionAttribute("2.20.0")] +[assembly: AssemblyInformationalVersionAttribute("2.20.0")] namespace System { internal static class AssemblyVersionInformation { - internal const string Version = "2.19.0"; + internal const string Version = "2.20.0"; } } diff --git a/src/Paket.Core/AssemblyInfo.fs b/src/Paket.Core/AssemblyInfo.fs index d789eb0308..37ac5ff32c 100644 --- a/src/Paket.Core/AssemblyInfo.fs +++ b/src/Paket.Core/AssemblyInfo.fs @@ -5,10 +5,10 @@ open System.Reflection [] [] [] -[] -[] -[] +[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "2.19.0" + let [] Version = "2.20.0" diff --git a/src/Paket.PowerShell/AssemblyInfo.fs b/src/Paket.PowerShell/AssemblyInfo.fs index ce3bba0ba4..f4b0d3caa3 100644 --- a/src/Paket.PowerShell/AssemblyInfo.fs +++ b/src/Paket.PowerShell/AssemblyInfo.fs @@ -5,10 +5,10 @@ open System.Reflection [] [] [] -[] -[] -[] +[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "2.19.0" + let [] Version = "2.20.0" diff --git a/src/Paket/AssemblyInfo.fs b/src/Paket/AssemblyInfo.fs index 07321e1533..eb0f31b737 100644 --- a/src/Paket/AssemblyInfo.fs +++ b/src/Paket/AssemblyInfo.fs @@ -5,10 +5,10 @@ open System.Reflection [] [] [] -[] -[] -[] +[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "2.19.0" + let [] Version = "2.20.0"