Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack localized assemblies. #1807

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Pack localized assemblies. #1807

merged 1 commit into from
Jul 14, 2016

Conversation

JohanLarsson
Copy link
Contributor

An attempt at #1806

let includeattribute = "Include"
this.ProjectNode
|> getDescendants "EmbeddedResource"
|> List.filter (fun n -> n |> hasAttribute includeattribute)
Copy link
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
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
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
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
Copy link
Member

forki commented Jul 13, 2016

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

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


let template =
satelliteDlls
|> Seq.fold (fun template dll -> addFile (fst dll).FullName (snd dll) template) template
Copy link
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
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
Contributor Author

@forki updated with a mention in docs.

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

forki commented Jul 14, 2016

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

@forki
Copy link
Member

forki commented Jul 14, 2016

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

@JohanLarsson
Copy link
Contributor Author

JohanLarsson commented Jul 14, 2016

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.

None yet

5 participants