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

startproject ignored if workspace is set to the same name as another project within the workspace #2220

Open
1 of 13 tasks
danieldownes opened this issue Jun 24, 2024 · 2 comments
Labels

Comments

@danieldownes
Copy link

What seems to be the problem?
We have a workspace called "OurEngine", with a project also titled "OurEngine" that compliles to a lib.
We have another project called "Sandbox" that compiles to a ConsoleApp.
Naturally we want the start project to be "Sandbox".

However the solution always sets the start project to "OurEngine" in the generated VS 2022 sollution.

If we change the workspace xor project name to "OurCoolEngine", so that the names are different, then the start project is set correctly.

What did you expect to happen?
A clear and concise description of what you expected to happen.
Allow the startproject to point to a different project, if the workspace and a project whos name matches the workspace project.

What have you tried so far?
Describe any steps you've taken to try to solve or workaround the bug.

How can we reproduce this?

  • Visual Studio 2022 (vs2022)
  • Visual Studio 2019 (vs2019)
  • Visual Studio 2017 (vs2017)
  • Visual Studio 2015 (vs2015)
  • Visual Studio 2012 (vs2012)
  • Visual Studio 2010 (vs2010)
  • Visual Studio 2008 (vs2008)
  • Visual Studio 2005 (vs2005)
  • GNU Makefile (gmake)
  • GNU Makefile 2 (gmake2)
  • XCode (xcode)
  • Codelite
  • Other (Please list below)

What version of Premake are you using?
premake5 (Premake Build Script Generator) 5.0.0-beta2

Anything else we should know?
Add any other context about the problem here.

(You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to issues like these!)

@danieldownes danieldownes changed the title startproject ignored if workspace is set to the same name startproject ignored if workspace is set to the same name as another project within the workspace Jun 24, 2024
@danieldownes
Copy link
Author

It appears this may be a caching issue with VS. But I am unsure, if I set the start project manually in VS, delete all the VS files, then regenerate it does indeed retain the intended start project.

@samsinsane
Copy link
Member

It appears this may be a caching issue with VS.

This is correct, the cache is in the .vs folder beside the .sln file. If you delete that folder, you should see the start up project change. I'm not sure there's much we can do to resolve the issue though, I'm fairly certain those files are opened exclusively by VS and are in some binary format.

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

No branches or pull requests

2 participants