{"id":20985,"date":"2019-01-24T07:30:31","date_gmt":"2019-01-24T15:30:31","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/dotnet\/?p=20985"},"modified":"2019-02-19T18:15:46","modified_gmt":"2019-02-20T01:15:46","slug":"net-core-tooling-update-for-visual-studio-2019-preview-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/net-core-tooling-update-for-visual-studio-2019-preview-2\/","title":{"rendered":".NET Core tooling update for Visual Studio 2019 Preview 2"},"content":{"rendered":"<p>Another preview of Visual Studio 2019, another update on the cool stuff going into it!<\/p>\n<p>We&#8217;re pleased to announce some updates to the .NET Core tools for Visual Studio 2019. You can try these changes out starting with Preview 2. We&#8217;d love for you to try out these new features and give us feedback. <\/p>\n<h2>Debugging console apps will use the new Integrated Console<\/h2>\n<p>Console apps that target .NET Core (or .NET Framework via the .NET SDK) will default to using the new Integrated Console experience when pressing <em>f5<\/em> or <em>ctrl+f5<\/em>:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/integrated-console.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/integrated-console.png\" alt=\"\" width=\"731\" height=\"352\" class=\"alignnone size-full wp-image-21015\" \/><\/a><\/p>\n<p>This should prevent the need to add <em>Console.Read()<\/em> calls to console apps to prevent the console window from closing immediately after the program has finished executing. The launched console window is also re-used for subsequent runs, so if you&#8217;re used to using <em>ctrl+f5<\/em>, you won&#8217;t have lots of console windows to close after you&#8217;ve launched your application a few times.<\/p>\n<p>If you&#8217;d like to turn this off, you can do so under <em>Tools &gt; Options &gt; Automatically close the console when debugging stops<\/em>.<\/p>\n<h2>Project files are easier to use<\/h2>\n<p>We&#8217;ve also done a lot of work to make working with project files easier. A lot of users have started to use project files directly now that they are much more human-readable, but tooling support for doing so in Visual Studio has lagged behind.<\/p>\n<p>First, we&#8217;ve made project files significantly easier to open. Single-click on a project node will open the file in a Preview tab. Double-click will open the file in a normal file tab:<\/p>\n<p><iframe title=\"project file clicks\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/dmsSzaEqoFw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Project files will now show up in Go to All results (ctrl+T):<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/projfilectrlT.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/projfilectrlT.png\" alt=\"\" width=\"461\" height=\"412\" class=\"alignnone size-full wp-image-20995\" \/><\/a><\/p>\n<p>MSBuild elements in project files now show up in Find in Files results:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/searchprojectnodes.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/10\/2019\/02\/searchprojectnodes.png\" alt=\"\" width=\"612\" height=\"369\" class=\"alignnone size-full wp-image-21005\" \/><\/a><\/p>\n<p>Finally, if a project is misauthored and an error is caused, you can open the project file by double-clicking an error from the error list.<\/p>\n<h2>Wrapping up<\/h2>\n<p>We&#8217;d love to hear your feedback on these features when you try them out! And if you encounter a problem, please don&#8217;t hesitate to file and issue with the <em>Report A Problem<\/em> tool in Visual Studio 2019.<\/p>\n<p>Happy hacking!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another preview of Visual Studio 2019, another update on the cool stuff going into it! We&#8217;re pleased to announce some updates to the .NET Core tools for Visual Studio 2019. You can try these changes out starting with Preview 2. We&#8217;d love for you to try out these new features and give us feedback. Debugging [&hellip;]<\/p>\n","protected":false},"author":678,"featured_media":21785,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[196,646],"tags":[9,147],"class_list":["post-20985","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet-core","category-visual-studio","tag-net-core","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Another preview of Visual Studio 2019, another update on the cool stuff going into it! We&#8217;re pleased to announce some updates to the .NET Core tools for Visual Studio 2019. You can try these changes out starting with Preview 2. We&#8217;d love for you to try out these new features and give us feedback. Debugging [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/20985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/678"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=20985"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/20985\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/21785"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=20985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=20985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=20985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}