Visual Studio - Create -> New Project Dialog without ProjectTemplate - c#

I'm working a bit on CodeGeneration and Visual Studio integration- -> And I need some help...
Since I`m working on it, most of the time I used Visual Studios vsix-projects and ProjectTemplates to create new ProjectTemplates as Visual Studio Extension.
But know I'm wondering if it's possible to create a "Add new Project" Dialog without using a ProjectTemplates in the vsix. Cause I don't want to a have a"standard" project in my solution which is automatically created from the template. I just want to call a Wizard which simply implements the IWizard interface and does all the solution creation process.
So, is there a possibility to create a "New Project" entry without having a ProjectTemplate ?
Hope you can guess what I'm trying to say ;-)
Thanks for your help :-)
[Edit-----------------------------------------------------------------------------------------------------------------]
To make my explanation easier to understand.. Sorry guys...
This is the normal ProjectTemplate process with a wizard (IWizard)
What I'm trying to do is something like this

If you are willing to create blank solutions try this -
New Project >> Other Project Types >> Visual Studio Solutions >> Blank Solution
The solution will be blank -

Related

Custom behavior of "Start button" for custom project type

I write an visual studio 2015 extension to integrate the programming language Haskell.
I've already implemented the language service, syntax highlighting and a new project type - so you can create a Haskell-project which contains a *.hsproj file and a Main.hs file.
Now I need to override the behavior of the start button because I want to load all Haskell modules into the GHCi-Interpreter (the interpreter is also already integrated in visual studio as a new window).
The problem is that at the moment visual studio runs the msbuild process - but all I wanna do is to send programatically a command to my integrated interpreter ( :l Main.hs ) when the developer clicks on "start" or presses F5 - but only for my project type named "HaskellProject"!
If possible I want to replace the default build process for my project type - I do not need msbuild, I only want to load the files into ghci.
Has anyone any idea what I can do ?
Thank you and sorry for my english ;-)
Launching a project via the F5 or Start menu, is done through your project system's IVsDebuggableProjectCfg implementation.
I haven't dug into the new CPS project system, but if your project type is based off of CPS, the Python Tools for VS repository, might provide you with a good start.

Add programmatically Visual Studio Solution and Projects

I am trying to generate a Visual Studio 2010 solution and add VS 2010 projects from custom templates!
My requirement:
1. Generate a VisualStudio Solution 2010, Save it to a folder, add VisualSTudio Project from my own templates (I have 3 different templates: ClassLibrary,WinForms ,WCFService)
My issue:
I implemented something that is working half a way!
Solution is created correctly but the content of the ".sln" file is very poor! No project reference is added >
In the root folder, it creates a Solution also for the C# Project, which I do not want. I want only the MainSolution file. (In my case "TestSolution.sln"). How can I stop creating a solutionfile for each project created?
Below the source code I use:
//for The solution:
//adding a project
Am I using the wrong interfaces?
Why the vs2010Solution.AddFromTemplate(..) returns null after the call, but no exception is thrown? Also the Project is created correctly in the folderstructure! But at runtime I can't check the list of projects "vs2010Solution.Projects" as it is null! (After correctly adding a project). I need the Project added because I need to add some references programmatically, which I try to do in the next line, but it doesn't work because vs2010Project is null).
So I am trying to wrap the VisualStudio 2010 automation model, to create a solution and add projects! But is not really working! Do I need to cast EnvDTE.Project to "VSLangProj.Project" at some point? I want to create a clean wrapper for VS2010, after that one for VS 2012!
Any help is much appreciated.
See the several articles of the section "Articles about automating project creation" on my web site:
http://www.visualstudioextensibility.com/articles/add-ins/
They explain why AddFromTemplate method returns null, how to create a solution, a project, a project inside a solution folder, a project item, etc.

Prevent Visual Studio from naming classes automatically?

Silly question: I am looking through the options in VS for something that will allow me to prevent VS from automatically creating (or at least automatically naming) the starting files when you create a new project. When I create a new Windows Form application, for example, and I name both the project and the solution "ExampleForm," VS will create the project but add a default Form1.cs file. I would think it would at least name the first file after the project/solution.
Is there any setting for this?
I think you will have to define your own Visual studio template

Using Codeplex templates in WPF

I had created a basic application using Visual studio 2010. To modify the existing look and for improving GUI, I tried browsing for templates and found Codeplex. And then downloaded an exe & installed it.
No clue regarding what should be done after that! checked out the visual studio project settings. Nothing regarding templates.
I am new to WPF. Any ideas how to proceed ? There are many articles around stating that the themes can be found in codeplex but none about how 2 use it.
Do you mean the WPF Themes?
Please check the link
http://wpf.codeplex.com/wikipage?title=WPF%20Themes
OK Guys, Lets take this one step at a time. After crunching hours, I did apply the Codeplex template to my project.
(This may sound simple for others.(anyways for the sake of beginners like me!)
First,
1) Right click the references tab (found under the solution explorer of your project).
2) Click "Add Reference" and navigate to the 'Browse' tab and choose WPFToolkit.dll
3) This is the trickiest part. For this, download the WPFToolKit.msi from codeplex 1 Link.
4) You will need .net 3.5 sp1 framework for this.Refer to my answer at 1 Warning here
5) After successful installation, you will be shown nothing except the installation status.
6) So now, for the WPFTookKit.dll browse your program files. For me, it was found in "C:\Program Files\WPF Toolkit\v3.5.50211.1"
7) After this has been done, follow the next step of adding the xaml file to your project.
8) As Oleg said, right-click on the project in the Solution Explorer, choose Add --> Existing File and select the appropriate .xaml file (In my case I used a expression dark template from here )
9)Now double click the App.XAML file and under add the following entry [] without '[' and ']'.
10) Refresh MAINWINDOW.XAML and by this time, your theme should have been applied.

Blank Solution in Visual Studio gets overwritten when I create a child project

Ok,
I must have done this a thousand times, but today it has stopped working.
I create a new blank solution. Then I right click on that Add > New Project I select C# class library. Every time I have done this in the past it has created a nested child project. However, now it seems to decide to change it so that I am now in the project I just created so I have no way of creating any siblings.
I have not made any configurations changes that I can recall, and projects that I have previously created work as expected and I can create child projects in those.
This is really stumped me so any help will be greatly appreciated.
Check this checkbox: Tools -> Options -> Projects and Solutions -> Always show solution
In Visual Studio Tools/Options / Projects and Solutions - make sure 'Always show solution' is checked.

Categories

Resources