Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "Miscellaneous Files" inside DTE VS2010 Solution?

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...)

  • What is this item?
  • Should I be concerned about this?
  • Why are there no more constants in ProjectKinds?
like image 545
TDaver Avatar asked Aug 23 '11 11:08

TDaver


People also ask

What are Miscellaneous files?

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.

What is Solution Items folder in Visual Studio?

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.

What is Solution Explorer in Visual Studio?

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.


1 Answers

  • 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.

like image 144
Phil Price Avatar answered Sep 28 '22 07:09

Phil Price