Vs 2010 create solution template
The project name in bold is the startup project ; that is, the project that starts when you run the app. You can specify which project is the startup project. While you can construct a project yourself by adding the necessary files to it, Visual Studio offers a selection of project templates to give you a head start. Creating a new project from a template gives you a project with the essentials for that project type, and you can rename the files or add new or existing code and other resources to it as needed.
That being said, solutions and projects are not required to develop apps in Visual Studio. You can also just open code that you have cloned from Git or downloaded elsewhere. For more information, see Develop code in Visual Studio without projects or solutions.
For information about how to select a template to create a new project, see Create a new project in Visual Studio. And, for an example of a project and solution that's created from scratch, complete with step-by-step instructions and sample code, see Introduction to projects and solutions.
In the Create Project from Existing Code Files wizard, select the project type you want in the What type of project would you like to create?
In the wizard, browse to the location of the files and then enter a name for the new project in the Name box. When you are done, select the Finish button. This option works best for a relatively simple collection of files. If you have a file that applies to multiple projects, such as a readme file for the solution, or other files that logically belong at the solution level rather than under a specific project, then you can add them to the solution itself. A solution file is a structure for organizing projects in Visual Studio.
It contains the state of that information in two files: an. Thus, a solution isn't something that should be copied and renamed; instead, it's best to create a new solution and then add existing items to it. When you create a. NET Framework project, you can specify a specific version of the.
These templates are packaged as NuGet packages, so you will need to create a. This NuSpec needs to have the usual id, description, version, as well a package type of template set in the metadata. All the source files for your project need to be added as files. You can see an example I use for my MvvmCross templates below:.
Then if you run dotnet new you should see your template in the list of available templates. You can then create a new project or solution using your template by using:. Once you've verified locally, you can upload your NuGet package to NuGet. From there anyone can install your template using:. Opinions are mine. Expecting someone geekier. Creating Visual Studio project and solution templates - Part 1, dotnet new. Featured Jim Bennett 25 Oct xamarin , Technology ,. Daniel Mohl Daniel Mohl 3 3 bronze badges.
Direct link to MSDN: msdn. I guess this is the direct link to the blog post: bloggemdano. F - eww! Clay Shannon-B. Crow Raven. Hans Passant Hans Passant k gold badges silver badges bronze badges.
If that is true and I am not disputing what you're saying then how does someone create a template like some of the starter kits?
I found this online: msdn. Maybe that is what I'm looking for Yes, looks to me that this ought to be a good start for projects. Bummer on the crummy docs. Robert March 4, at AM. Payoda May 25, at PM. Liran April 16, at AM. Newer Post Older Post Home. Subscribe to: Post Comments Atom.
0コメント