Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/domdom/Paket
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Dec 11, 2017
2 parents 4fe7b54 + cda98c3 commit c5a8aec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Paket.Core/PaketConfigFiles/InstallModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ type MsBuildFile = {
module MsBuildFile =
let ofFile (f:FrameworkDependentFile) =
let fi = FileInfo(normalizePath f.File.FullPath)
let name = fi.Name.Replace(fi.Extension, "")
let name =
let ext = fi.Extension
if String.IsNullOrEmpty ext then fi.Name
else fi.Name.Replace(ext, "")
{ Name = name; Path = f.File.FullPath }

type FrameworkReference = {
Expand Down Expand Up @@ -924,4 +927,4 @@ type InstallModel with

[<Obsolete "use CreateFromContent instead">]
static member CreateFromLibs(packageName, packageVersion, frameworkRestriction:FrameworkRestriction, libs : UnparsedPackageFile seq, targetsFiles, analyzerFiles, nuspec : Nuspec) =
InstallModel.createFromLibs packageName packageVersion frameworkRestriction libs targetsFiles analyzerFiles nuspec
InstallModel.createFromLibs packageName packageVersion frameworkRestriction libs targetsFiles analyzerFiles nuspec

0 comments on commit c5a8aec

Please sign in to comment.