Answered by:
Visual Studio 2017 Disable Start Page

Question
-
Hi all,
Trying out VS2017RC and after setting 'Show empty environment' and unchecking 'Download content every:' in Tools:Options:Environment:Startup
It still displays the Start Page upon Close Solution.
Is there a way to disable the Start Page completely ...
Thank you
-Enjoy
fh : )_~Saturday, January 7, 2017 5:27 PM
Answers
-
I have reproduced the issue. There seems to be no option to disable that behavior.
Either it is a bug introduced by VS 2017 (in VS 2015 it doesn't happen), that you can report to Microsoft, or it is a new "by design" behavior. In the latter case, if this is really important for you, you will need an extension to disable that behavior. One approach is to create a new extension based on this one for VS 2015 that does the opposite, it reopens the Visual Studio start page after closing a solution: Reopen Start Page. You just need to make it compatible with VS 2017 and modify the file VsSolutionEvents.cs changing:
dte.ExecuteCommand("View.StartPage");
by:
const string START_PAGE_OBJECT_KIND = "{387CB18D-6153-4156-9257-9AC3F9207BBE}";
foreach (EnvDTE.Window window in dte.Windows)
{
if (window.ObjectKind == START_PAGE_OBJECT_KIND && window.Visible == true)
{
window.Close();
break;
}
}
My portal and blog about VSX: <a href="http://www.visualstudioextensibility.com"> http://www.visualstudioextensibility.com</a> <br/> Twitter: <a href="https://twitter.com/VSExtensibility">https://twitter.com/VSExtensibility</a> <br/> MZ-Tools productivity extension for Visual Studio: <a href="https://www.mztools.com"> https://www.mztools.com</a>
- Proposed as answer by Carlos J. Quintero Saturday, January 7, 2017 9:40 PM
- Marked as answer by Festus Hagen Saturday, January 7, 2017 10:14 PM
Saturday, January 7, 2017 9:40 PM
All replies
-
Hi!
I selected "Show empty environement" too and the start page doesn't display when my VS 2017 RC is opening.
Have you close your project after choosing this option?
In fact you have to restart VS 2017 RC once you chose the option "Show empty environment"
Hope it wil be useful.
If it's good for you, can you mark this answer as answer of your question please?
Follow me on twitter : https://twitter.com/NordineMhoumadi
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don&amp;amp;amp;#39;t ask several questions in the same thread. SVP utiliser le Marquer comme reponse; sur les reponses qui vous aide car cela permet aux personnes qui peuvent rencontrer le meme probleme que vous, de retrouver rapidement quelle est la reponse qui a resolu leur probleme. De plus, cela encourage aussi la personne qui a repondu a votre question, et de repondre aux suivantes...
Saturday, January 7, 2017 6:45 PM -
Not only have I restarted VS many many times, I have also restarted my system many times ...
I am not talking about when VS is initially ran/started/opened ... That works fine.
I am talking about after vs is running ...
Open Visual Studio 2017 (RC Community if it maters)
With the previously mentioned settings VS opens without Start Page.
Open a Solution.
Now, Select: File:Close Solution
The Start Page pops up ...
Thank you
-Enjoy
fh : )_~
Saturday, January 7, 2017 7:10 PM -
I have reproduced the issue. There seems to be no option to disable that behavior.
Either it is a bug introduced by VS 2017 (in VS 2015 it doesn't happen), that you can report to Microsoft, or it is a new "by design" behavior. In the latter case, if this is really important for you, you will need an extension to disable that behavior. One approach is to create a new extension based on this one for VS 2015 that does the opposite, it reopens the Visual Studio start page after closing a solution: Reopen Start Page. You just need to make it compatible with VS 2017 and modify the file VsSolutionEvents.cs changing:
dte.ExecuteCommand("View.StartPage");
by:
const string START_PAGE_OBJECT_KIND = "{387CB18D-6153-4156-9257-9AC3F9207BBE}";
foreach (EnvDTE.Window window in dte.Windows)
{
if (window.ObjectKind == START_PAGE_OBJECT_KIND && window.Visible == true)
{
window.Close();
break;
}
}
My portal and blog about VSX: <a href="http://www.visualstudioextensibility.com"> http://www.visualstudioextensibility.com</a> <br/> Twitter: <a href="https://twitter.com/VSExtensibility">https://twitter.com/VSExtensibility</a> <br/> MZ-Tools productivity extension for Visual Studio: <a href="https://www.mztools.com"> https://www.mztools.com</a>
- Proposed as answer by Carlos J. Quintero Saturday, January 7, 2017 9:40 PM
- Marked as answer by Festus Hagen Saturday, January 7, 2017 10:14 PM
Saturday, January 7, 2017 9:40 PM -
I have reproduced the issue. There seems to be no option to disable that behavior.
Either it is a bug introduced by VS 2017 (in VS 2015 it doesn't happen), that you can report to Microsoft, or it is a new "by design" behavior. In the latter case, if this is really important for you, you will need an extension to disable that behavior. One approach is to create a new extension based on this one for VS 2015 that does the opposite, it reopens the Visual Studio start page after closing a solution: Reopen Start Page. You just need to make it compatible with VS 2017 and modify the file VsSolutionEvents.cs changing:
dte.ExecuteCommand("View.StartPage");
by:
const string START_PAGE_OBJECT_KIND = "{387CB18D-6153-4156-9257-9AC3F9207BBE}";
foreach (EnvDTE.Window window in dte.Windows)
{
if (window.ObjectKind == START_PAGE_OBJECT_KIND && window.Visible == true)
{
window.Close();
break;
}
}
My portal and blog about VSX: <a href="http://www.visualstudioextensibility.com"> http://www.visualstudioextensibility.com</a> <br/> Twitter: <a href="https://twitter.com/VSExtensibility">https://twitter.com/VSExtensibility</a> <br/> MZ-Tools productivity extension for Visual Studio: <a href="https://www.mztools.com"> https://www.mztools.com</a>
Bah Humbug!
I guess a hack is a solution ... If they don't add the option to opt out, I will do so, for now I'll deal with it.
What can one expect for free ... :)
Thank you
-Enjoy
fh : )_~
Saturday, January 7, 2017 10:13 PM -
This behavior is still in VS 2017 as of Update 2. I dislike this behavior so much that I added an "Auto-close Start Page" option to my free Menees VS Tools 2017 extension for VS 2017. It defaults to false (since I didn't want to change VS's default behavior for everyone using my extension), but I set it to true manually on all my VS installs.Wednesday, May 24, 2017 1:55 PM