-
Notifications
You must be signed in to change notification settings - Fork 62
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
Visual Studio 2017 15.6 problem with files appearing multiple times in a project #50
Comments
FWIW this really is a VS bug. Certainly breaking it in the 15.5 -> 15.6 update is really unfortunate. Perhaps Microsoft will fix some time in the future. In the meantime we can try to work around it. The problem appears when the same file is both a custom input and some kind of file that's built-in to MPC (documentation_files, header_files, etc.). VS2017 (version 15.6 and up) is rejecting these projects the way that MPC is current generating them. I think we need a rule like this (so we couldn't depend on order): use-case a. is a README that's in Documentation_Files and in InstallData_Files It wouldn't be too much of a problem to treat a as if it was b, but we wouldn't want to do the opposite. A special case of b. occurs with Source_Files, this is just plain broken in VS -- not sure what we can do. MPC's template language could be extended with a keyword
|
From a Microsoft representative on the issue
That may be an option for the complex cases like Qt. The easier ones (that we know of) are fixed in the ACE_TAO repo. Would still be good to have a general(-ish) fix in MPC, for full compatibility it must be fixed in Visual Studio. |
This is still a problem in VS2019 |
I chose to go the route of preferring the custom build listing over the built-in listings for simplification. It allowed me to put a check in the foreach loops for template_files, header_files, inline_files, documentation_files, and resource_files to only list files if they are not custom type input files. Fri Jun 28 15:52:37 UTC 2019 Chad Elliott elliottc@objectcomputing.com
|
@ocielliottc should this issue be closed? |
As long as you're not seeing the issue anymore, I believe it can be. |
Updating from 15.5 to 15.6 revealed that VS2017 is interpreting vcxproj files differently now. When we have something like Qt MOC that processes a C++ header, it gets listed as both a regular header and a custom step input. The new VS2017 fails to load the project with "Cannot load project with duplicated project items"
The text was updated successfully, but these errors were encountered: