¿Es posible proporcionar contenido personalizado para la página de inicio de VS2012?
Frecuentes
Visto 1,192 veces
3
Visual Studio 2012 (and 2010, too) has a Start Page that has links and streamed videos. Is it possible for my package to provide content on this page, e.g., create a separate section next to Welcome/Windows 8/etc.?
2 Respuestas
6
I finally got a custom start page working in VS2012 - my issue was I could not install the Start Page Project Template in 2012 as the extension only installs on 2010 (which I don't have access to) and my My Documents folder is mapped to a network drive, so putting the raw XAML file in My Documents/Visual Studio 2012/Startpages didn't work as Visual Studio refused to use this "untrustworthy file".
- Download the Start Page Template from aquí.
- Rename the file to .zip and extract it.
- Copy the "\Solution\CSharp\Extensibility\StartPage.zip" file to your project template folder (by default "My Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#").
- Create a new project using this template.
Siga las instrucciones aquí to upgrade from 2010 to 2012 start page.
- Update the project properties target framework to 4.5.
- Update the project references in the Control project by removing the Microsoft.VisualStudio.Shell.10.0 reference and adding the Microsoft.VisualStudio.Shell.11.0 and Microsoft.VisualStudio.Shell.Immutable.11.0 references.
- Update the namespaces references in the xaml file by replacing the existing ones with the two below.
xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.11.0" xmlns:vsfxim="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.Immutable.11.0"
- Replace the references to
vsfx:VsBrushes
claves paravs:EnvironmentColors
keys, e.g.vsfx:VsBrushes.StartPageBackgroundKey
avs:EnvironmentColors.StartPageTabBackgroundBrushKey
In the VSIX project, make the following changes to the
source.extension.vsixmanifest
file (values depending on if 2010 support is desired, it is not for me):- Add an author, the default empty tag is not allowed:
<Author>Ken</Author>
- Change/add the visual studio support version to 11.0:
<VisualStudio Version="11.0">
- Change the supported runtime edition to include 4.5:
<SupportedFrameworkRuntimeEdition MinVersion="4.5" MaxVersion="4.5" />
- Add an author, the default empty tag is not allowed:
The VSIX solution should now build and spit out a VSIX file in the project bin folder. Install this and you can now choose your Start Page from the drop down list in the visual studio options.
I haven't actually developed my custom start page beyond this, but hopefully it is a helpful to people wanting to get started developing them with VS2012
EDIT: A project which includes a basic 2012 start page, custom control and can be deployed via VSIX: plantilla
Respondido el 27 de junio de 13 a las 09:06
2
Custom Start Pages, via google:
Respondido 28 ago 12, 17:08
It's really helpful to take some of the link's content and post it, even just the title, in case the link goes down. - Sube
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas visual-studio visual-studio-2012 or haz tu propia pregunta.
Ken, can you maybe post somewhere a full example? - Clueless
@Clueless, I have added a link to my post to a sample project - let me know if that works/is useful! - Ken Syme
Thanks a lot for the template ,you should upload it to Visual Studio Gallery! - joancomasfdz