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

Support startproject for visual studio solutions. #1249

Closed
Force67 opened this issue Feb 21, 2021 · 1 comment
Closed

Support startproject for visual studio solutions. #1249

Force67 opened this issue Feb 21, 2021 · 1 comment

Comments

@Force67
Copy link

Force67 commented Feb 21, 2021

Add a way to set the 'startproject' for visual studio based solutions. This allows us to directly debug the startproject without having to set it through solution explorer.

Premake5 implementation as reference:
https://github.com/premake/premake-core/blob/master/modules/vstudio/vs2005_solution.lua#L72

@waruqi waruqi added this to the v2.5.2 milestone Feb 21, 2021
@waruqi
Copy link
Member

waruqi commented Feb 22, 2021

I have supported it. you can set default startproject use set_default(true)

target("test")
    set_default(true)

Although the targets without explicitly setting set_default(true) are also the default build targets, they will not be set as the startup project.

If default=true is not set, xmake will give priority to using binary kind as the startup project.

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