Web application Project Template
Hello, I am new with the use of gat.
I have a consultation with respect to templates.
I wanted to construct to a Web application project in template, but I do not find the form to specify the type of project.
That values can take the ProjectType attribute?, in addition to Web or CSharp.
One of the type Web Application exists, that does not use filesystem or iis.
You have some example, or place where it shows like creating it
Thanks
Hi Leandro, you could try this:
1- Open a new instance of Visual Studio
2- Create an empty web application project.
3- Go to File-> Export template and follow the wizard.
At this time you should have exported a template for the empty web project. Go to the folder where the template was exported (probably %USERPROFILE%\My Documents\Visual Studio 2005\My Exported Templates), unzip the template and take a look at the .vstemplate file.
This sample could also be useful if you want to create a large template with many files, folders. Instead of writing the template from scratch, you could create the project in VS, add the files, folder and finally export the template.
HTH
-Adrian
Adrian, many thanks.
I did not find the option to export, because this was not in the menu, but it adds it from the options of customize in the bar of tools.
I am going to prove it to see as it works in guidance.
Thanks
Adrian, thanks for the help.
Do you know that attribute indicates to template that is webapplication?
In the Type attribute it indicates that it is of the type project, and tag ProjectType that is of the CSharp type.
Where it identifies that it is a project Web?
You have to specify that in the .csproj that you are including in the .vstemplate. For example this is a code fragment from the .csproj of the same project I exported:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{26CE7707-D4DB-4A54-ADB5-EB4F7C53149E}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>$safeprojectname$</RootNamespace>
<AssemblyName>$safeprojectname$</AssemblyName>
</PropertyGroup>
...
</Project>
Note that the second guid is the C# project type guid so the first one should be the web app type guid
. Anyway you should use both in your template.