Repository navigation
Too many targets - #2388
Too many targets#2388
Conversation
|
Can someone please tell me why my commit fails with
but the following code works in fsi: open System
[<System.Diagnostics.DebuggerDisplay("{ToString()}")>]
[<CustomEquality;CustomComparison>]
type PackageName =
| PackageName of string * string
member this.GetCompareString() =
match this with
| PackageName(_,id) -> id
override this.ToString() =
match this with
| PackageName(name,_) -> name
override this.Equals(that) =
match that with
| :? PackageName as that -> this.GetCompareString() = that.GetCompareString()
| _ -> false
override this.GetHashCode() = hash (this.GetCompareString())
interface System.IComparable with
member this.CompareTo that =
match that with
| :? PackageName as that -> StringComparer.Ordinal.Compare(this.GetCompareString(), that.GetCompareString())
| _ -> invalidArg "that" "cannot compare value of different types"
let GetTargetsFiles(targetFolder, (pkg : PackageName)) =
let (PackageName(packageName, packageId)) = pkg
0;;
?
|
|
Maybe we should do this in installmodel? |
|
Feel free, I'm going to sleep. =) |
|
;) |
|
I made some changes in a file nugetv2.fs. Anything I additionally need to change for v3? @matthid |
|
@0x53A No I don't think so. The names are a bit confusing there... Could probably need some refactoring |
No description provided.