{"id":3200,"date":"2020-04-07T20:03:44","date_gmt":"2020-04-07T18:03:44","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=3200"},"modified":"2020-04-21T11:09:38","modified_gmt":"2020-04-21T09:09:38","slug":"visual-studio-2013-show-folders-with-cs-files-in-the-solution-explorer-after-they-suddenly-disappeard","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=3200","title":{"rendered":"Visual Studio 2013 : Show folders with *.cs files in the solution explorer after they suddenly disappeared \/ hidden"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>Sometimes it happens, that you have created folders in Visual Studio for your application and had put some *.cs C# Source Code files that suddenly disappeard in the solution explorer. <\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Analysis<\/h1>\n\n\n\n<p>I.e. that can happen when you have forgotten to save your Visual Studio application project, berfore you have closed the IDE. <\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Solution<\/h1>\n\n\n\n<p>Use the file explorer and navigate to your Visual Studio solution (alternatively you can right-click a source code file in your folder and select &#8222;Open contained folder&#8220; from the context menu).<br><br>Open the .csproj file in your solution in a text editor of your choice:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"321\" height=\"252\" data-attachment-id=\"3201\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3201\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-3.png?fit=321%2C252&amp;ssl=1\" data-orig-size=\"321,252\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-3.png?fit=321%2C252&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-3.png?resize=321%2C252&#038;ssl=1\" alt=\"\" class=\"wp-image-3201\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-3.png?w=321&amp;ssl=1 321w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-3.png?resize=300%2C236&amp;ssl=1 300w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/><figcaption>.csproj files store the project structure of the solution explorer<\/figcaption><\/figure>\n\n\n\n<p>Go to the section where the &lt;ItemGroup \/&gt; tags are declared and add a new section with the folders and source code files you want to show in your solution like in the screenshot below<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"392\" data-attachment-id=\"3203\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3203\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-5.png?fit=636%2C526&amp;ssl=1\" data-orig-size=\"636,526\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-5.png?fit=474%2C392&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-5.png?resize=474%2C392&#038;ssl=1\" alt=\"\" class=\"wp-image-3203\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-5.png?w=636&amp;ssl=1 636w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-5.png?resize=300%2C248&amp;ssl=1 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><figcaption>My folders Command, ViewModelBase, ViewModel and Model disappeard over night, so i readded the marked group<\/figcaption><\/figure>\n\n\n\n<p>You can add all cs-files with a wildcard star like it is shown in the screenshot above.<\/p>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D3200&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem Sometimes it happens, that you have created folders in Visual Studio for your application and had put some *.cs C# Source Code files that suddenly disappeard in the solution explorer. Analysis I.e. that can happen when you have forgotten to save your Visual Studio application project, berfore you have closed the IDE. Solution Use &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=3200\" class=\"more-link\"><span class=\"screen-reader-text\">Visual Studio 2013 : Show folders with *.cs files in the solution explorer after they suddenly disappeared \/ hidden<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,33,3],"tags":[123,122,121,124,120,119],"class_list":["post-3200","post","type-post","status-publish","format-standard","hentry","category-net","category-c","category-programmierung","tag-folders-disappeared","tag-folders-hidden","tag-project-structure","tag-show-folders","tag-solution-explorer","tag-visual-studio"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-PC","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3200"}],"version-history":[{"count":2,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3200\/revisions"}],"predecessor-version":[{"id":3207,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3200\/revisions\/3207"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}