Skip to content

Paket should import build targets from packages in dependency groups - #1674

Merged
forki merged 1 commit into
fsprojects:masterfrom
sergey-tihon:master
May 10, 2016
Merged

forki merged 1 commit into
fsprojects:masterfrom
sergey-tihon:master

Conversation

@sergey-tihon

Copy link
Copy Markdown
Member

Not sure it is directly related to #1663
But after paket.exe update with version 2.64.2, paket removed by build targets from project file
image

@sergey-tihon sergey-tihon changed the title Paket should import build targets for packages in dependency groups Paket should import build targets from packages in dependency groups May 10, 2016
@inosik

inosik commented May 10, 2016

Copy link
Copy Markdown
Contributor

The problem is the group name "Build". Other names seem to work fine.

Seems to be the same kind of problem as we had with "Lib"-named packages.

@sergey-tihon

sergey-tihon commented May 10, 2016 •

Copy link
Copy Markdown
Member Author

@inosik How group name affects Paket behavior?

@inosik

inosik commented May 10, 2016 •

Copy link
Copy Markdown
Contributor

It expects .targets and .props files to be directly in packages/Foo/build/ or in a framework specific sub-directory.

Now, if a group is named "Build", you get a path like packages/build/Foo/build/Foo.targets. I assume Paket checks only if Foo.targets is in packages/build/ or in packages/build/{framework}/, and if it isn't, it considers it as ignorable.

I tried installing the package from your screenshot and Paket installed it correctly when the group wasn't named "Build". With "Build", it didn't import the .targets file.

@sergey-tihon

Copy link
Copy Markdown
Member Author

Just wonder how it worked before )

@forki

forki commented May 10, 2016 •

Copy link
Copy Markdown
Member

@inosik so it's a string trimming issue, right?

@inosik

inosik commented May 10, 2016

Copy link
Copy Markdown
Contributor

I think so. We had something similar with packages which ended with "Lib", but I can't find the issue right now.

@forki

forki commented May 10, 2016

Copy link
Copy Markdown
Member

@sergey-tihon if we have a repro I will try to fix it

@forki forki closed this May 10, 2016
@forki forki reopened this May 10, 2016
@sergey-tihon

Copy link
Copy Markdown
Member Author

@forki This PR is repro

@forki
forki merged commit c71fab3 into fsprojects:master May 10, 2016
forki added a commit that referenced this pull request May 10, 2016
@sergey-tihon

Copy link
Copy Markdown
Member Author

It works!
Thanks again @forki !

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.

3 participants