Skip to content

Pack localized assemblies. - #1807

Merged
forki merged 1 commit into
fsprojects:masterfrom
JohanLarsson:pr_1806
Jul 14, 2016
Merged

forki merged 1 commit into
fsprojects:masterfrom
JohanLarsson:pr_1806

Conversation

@JohanLarsson

Copy link
Copy Markdown
Contributor

An attempt at #1806

Comment thread src/Paket.Core/ProjectFile.fs Outdated
let includeattribute = "Include"
this.ProjectNode
|> getDescendants "EmbeddedResource"
|> List.filter (fun n -> n |> hasAttribute includeattribute)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not point free?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it mean?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

means (fun n -> n |> hasAttribute includeattribute) is the same as (hasAttribute includeattribute)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@JohanLarsson
JohanLarsson force-pushed the pr_1806 branch 3 times, most recently from 16c773d to d935beb Compare July 13, 2016 20:59
@forki

forki commented Jul 13, 2016

Copy link
Copy Markdown
Member

Awesome! Only one important thing left: docs. ;-)

Could you please add a small bit about this auto-packing of satelitte assemblies?

Comment thread src/Paket.Core/PackageMetaData.fs Outdated

let template =
satelliteDlls
|> Seq.fold (fun template dll -> addFile (fst dll).FullName (snd dll) template) template

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could decompose dll here:

 |> Seq.fold (fun template (dllFile, targetDir) -> addFile dllFile.FullName targetDir template) template

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I was stuck on that one for a while, used a fuzzying process.

@JohanLarsson

Copy link
Copy Markdown
Contributor Author

@forki updated with a mention in docs.

@forki
forki merged commit 0c32b9b into fsprojects:master Jul 14, 2016
@forki

forki commented Jul 14, 2016

Copy link
Copy Markdown
Member

mhmm looks like it's broken on mono. can you please take a look?

@forki

forki commented Jul 14, 2016

Copy link
Copy Markdown
Member

we also got a regression, so I reverted that change for now. see #1810

@JohanLarsson

JohanLarsson commented Jul 14, 2016 •

Copy link
Copy Markdown
Contributor Author

I'll be mostly afk for a couple of days. Checking as soon as I can. Maybe outputting a warning is better than throwing if satellite dll is not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants