Following up on my previous question:
VS2010 DTE Addin: project inside solution folder is not "Project"
I successfully found all my projects in the solution. However, the code also founds an extra item named "Miscellaneous Files". It's Kind
is different to the solution folders and the projects as well, but there are no more constant kinds fixed in the ProjectKinds
class (for that matter there isn't one for "Projects" either...)
ProjectKinds
?
MISC files are binary files that contain data used by the Android operating system. They're associated with various functions, including location services, app updates, and messaging. MISC files can be found on both internal and external storage.
Solution items can be any type of file. They are linked to the solution, rather than a project. The files can be stored anywhere but it is commonplace to place them within the solution's folder structure, making it easier to add them to repositories of revision control systems.
The Visual Studio Solution Explorer panel is like home for Visual Studio users. It presents all projects, source files and items thanks to a treeview layout. This panel is quite sophisticated and it is likely that you don't use all the power of this great tool.
The "Miscellaneous Files" node is used to contain open files that are not associated with the current project contents within the solution. For example, open a solution from C:\Foo\MySolution\ then open a 'loose' file from C:\SomeOtherPath\MyFile.cs, you'll notice that it stored under "Miscellaneous files". This information is persisted if the solution is saved whilst these files are open, it is removed from "Miscellaneous files" once the solution is closed.
If you wish to "see" the contents of "Miscellaneous Files" in Solution Explorer you need to enable it in Tools > Options > Environment > Documents > Show miscellaneous files in Solution Explorer
See more about miscellaneous files at https://docs.microsoft.com/en-us/visualstudio/ide/reference/miscellaneous-files
It depends what your tooling (addin, macro) wants to do.
You can use EnvDTE.Constants.vsProjectKindMisc
to identify miscellaneous files projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With