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

Add packages lib folder to PATH for vsxmake project #1311

Closed
SirLynix opened this issue Mar 27, 2021 · 4 comments
Closed

Add packages lib folder to PATH for vsxmake project #1311

SirLynix opened this issue Mar 27, 2021 · 4 comments

Comments

@SirLynix
Copy link
Member

Is your feature request related to a problem? Please describe.

On Windows, when running a xmake project using xmake run, it does append the packages .dll folders to the PATH env.
However, when trying to run using a vsxmake (and probably vs) project, it does not, resulting in a missing dll error on start.

Describe the solution you'd like

The first solution I see here is to configure vs(xmake) projects to includes packages with .dll folders in environment.

I'm thinking of a second solution which would be cool : a rule that copies .dll if necessary (newer) after build (similary to the on install we already have).

Describe alternatives you've considered

Look where the .dll were in xmake package cache and copy them, I need to do it only for newer dependencies but it's a bit frustrating.

@waruqi
Copy link
Member

waruqi commented Mar 30, 2021

The first solution I see here is to configure vs(xmake) projects to includes packages with .dll folders in environment.

I have supported it on dev.

@waruqi waruqi added this to the v2.5.3 milestone Mar 30, 2021
@SirLynix
Copy link
Member Author

It's working great. thank you!

@SirLynix
Copy link
Member Author

Maybe this could be supported on VS projects as well with the same code?

@waruqi
Copy link
Member

waruqi commented Mar 31, 2021

Maybe this could be supported on VS projects as well with the same code?

they are completely different implementation, if I support vs plugins, I need to do more thing. You can open a new issue, but I can’t guarantee that this version will support it

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

No branches or pull requests

2 participants