Skip to content

Commit

Permalink
Merge branch 'master' into core3
Browse files Browse the repository at this point in the history
# Conflicts:
#	RELEASE_NOTES.md
#	src/Paket.Bootstrapper/Properties/AssemblyInfo.cs
#	src/Paket.Core/AssemblyInfo.fs
#	src/Paket.PowerShell/AssemblyInfo.fs
#	src/Paket/AssemblyInfo.fs
  • Loading branch information
forki committed Dec 20, 2016
2 parents 2793973 + 101e841 commit 48d70da
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 26 deletions.
5 changes: 4 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#### 4.0.0-alpha037 - 20.12.2016
#### 4.0.0-alpha038 - 20.12.2016
* Make Paket compatible with DotNet SDK preview3
* Tail Recursive Package Resolution - https://github.com/fsprojects/Paket/pull/2066
* Reorganized resolver - https://github.com/fsprojects/Paket/pull/2039
* USABILITY: Added option to have paket restore fail on check failure - https://github.com/fsprojects/Paket/pull/1963

#### 3.31.6 - 20.12.2016
* BUGFIX: If we have ref and lib files then we prefer lib

#### 3.31.5 - 19.12.2016
* BUGFIX: Don't remove group with only remote files - https://github.com/fsprojects/Paket/pull/2089
* BUGFI: Fix displayed package name for packages found in another group - https://github.com/fsprojects/Paket/pull/2088
Expand Down
12 changes: 6 additions & 6 deletions src/Paket.Bootstrapper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
[assembly: AssemblyTitleAttribute("Paket.Bootstrapper")]
[assembly: AssemblyProductAttribute("Paket")]
[assembly: AssemblyDescriptionAttribute("A dependency manager for .NET with support for NuGet packages and git repositories.")]
[assembly: AssemblyVersionAttribute("4.0.0")]
[assembly: AssemblyFileVersionAttribute("4.0.0")]
[assembly: AssemblyInformationalVersionAttribute("4.0.0-alpha037")]
[assembly: AssemblyVersionAttribute("3.31.6")]
[assembly: AssemblyFileVersionAttribute("3.31.6")]
[assembly: AssemblyInformationalVersionAttribute("3.31.6")]
namespace System {
internal static class AssemblyVersionInformation {
internal const System.String AssemblyTitle = "Paket.Bootstrapper";
internal const System.String AssemblyProduct = "Paket";
internal const System.String AssemblyDescription = "A dependency manager for .NET with support for NuGet packages and git repositories.";
internal const System.String AssemblyVersion = "4.0.0";
internal const System.String AssemblyFileVersion = "4.0.0";
internal const System.String AssemblyInformationalVersion = "4.0.0-alpha037";
internal const System.String AssemblyVersion = "3.31.6";
internal const System.String AssemblyFileVersion = "3.31.6";
internal const System.String AssemblyInformationalVersion = "3.31.6";
}
}
16 changes: 9 additions & 7 deletions src/Paket.Core/InstallModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ module InstallModel =
Analyzers = []
LicenseUrl = None }

let getReferenceFolders (installModel: InstallModel) =
if installModel.NewReferenceFileFolders.IsEmpty then
installModel.LegacyReferenceFileFolders
else installModel.NewReferenceFileFolders
let getReferenceFolders (installModel: InstallModel) =
installModel.LegacyReferenceFileFolders @
(installModel.NewReferenceFileFolders
|> List.choose (fun r ->
match installModel.LegacyReferenceFileFolders |> List.tryFind (fun r2 -> r2.Targets = r.Targets) with
| None -> Some r
| _ -> None))


let extractRefFolder packageName (path:string) =
let path = path.Replace("\\", "/").ToLower()
Expand Down Expand Up @@ -420,7 +424,7 @@ type InstallModel with

static member EmptyModel (packageName, packageVersion) = InstallModel.emptyModel packageName packageVersion

member this.GetReferenceFolders () = InstallModel.getReferenceFolders this
member this.GetReferenceFolders() = InstallModel.getReferenceFolders this

member this.MapFolders mapfn = InstallModel.mapFolders mapfn this

Expand Down Expand Up @@ -449,8 +453,6 @@ type InstallModel with
member this.AddTargetsFile(path, file) = InstallModel.addTargetsFile path file this

member this.AddTargetsFiles targetsFiles = InstallModel.addTargetsFiles targetsFiles this

//member this.AddPackageFile (path, file, references) = InstallModel.addPackageFile path file references this

member this.AddFrameworkAssemblyReference reference = InstallModel.addFrameworkAssemblyReference this reference

Expand Down
4 changes: 2 additions & 2 deletions src/Paket.Core/PlatformMatching.fs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ let platformsSupport =


let findBestMatch =
let rec findBestMatch (paths : string list,targetProfile : TargetProfile) =
let rec findBestMatch (paths : string list, targetProfile : TargetProfile) =
let requiredPlatforms =
match targetProfile with
| PortableProfile(_, platforms) -> platforms
Expand Down Expand Up @@ -140,7 +140,7 @@ let findBestMatch =
None
| _ -> None)
|> List.distinct
|> List.sortBy (fun (x, pen) -> pen, (extractPlatforms x).Length) // prefer portable platform whith less platforms
|> List.sortBy (fun (x, pen) -> pen, (extractPlatforms x).Length) // prefer portable platform with less platforms
|> List.map fst
|> List.tryHead
| path -> path
Expand Down
2 changes: 2 additions & 0 deletions src/Paket/Paket.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
<StartWorkingDirectory>D:\temp\IconPacksTestApp\src</StartWorkingDirectory>
<StartArguments>update</StartArguments>
<StartWorkingDirectory>D:\temp\unlisted</StartWorkingDirectory>
<StartArguments>install</StartArguments>
<StartWorkingDirectory>D:\temp\PaketWithProblem1</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
Expand Down
8 changes: 4 additions & 4 deletions tests/Paket.Tests/InstallModel/ProcessingSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ let ``should understand reference folder``() =

let refs = model.GetLibReferences(SinglePlatform (DotNetStandard DotNetStandardVersion.V1_6))
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\runtimes\win\lib\net46\System.Security.Cryptography.Algorithms.dll"
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\lib\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldContain @"..\System.Security.Cryptography.Algorithms\ref\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldContain @"..\System.Security.Cryptography.Algorithms\lib\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\ref\netstandard1.6\System.Security.Cryptography.Algorithms.dll"

let refs = model.GetLibReferences(SinglePlatform (DotNetFramework FrameworkVersion.V4_6_3))
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\runtimes\win\lib\net46\System.Security.Cryptography.Algorithms.dll"
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\lib\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldContain @"..\System.Security.Cryptography.Algorithms\ref\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldContain @"..\System.Security.Cryptography.Algorithms\lib\netstandard1.6\System.Security.Cryptography.Algorithms.dll"
refs |> shouldNotContain @"..\System.Security.Cryptography.Algorithms\ref\netstandard1.6\System.Security.Cryptography.Algorithms.dll"

[<Test>]
let ``should understand aot in runtimes``() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ let expected = """
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.6'">
<ItemGroup>
<Reference Include="System.Security.Cryptography.Algorithms">
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\ref\net46\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\lib\net46\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2')">
<ItemGroup>
<Reference Include="System.Security.Cryptography.Algorithms">
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\ref\net461\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\lib\net461\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.6.3'">
<ItemGroup>
<Reference Include="System.Security.Cryptography.Algorithms">
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\ref\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\..\System.Security.Cryptography.Algorithms\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
Expand Down

0 comments on commit 48d70da

Please sign in to comment.