Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding lanwin's VSTemplate changes

  • Loading branch information...
commit 7486601d4031ecde0a97ad254c75047794a653dc 1 parent b19681e
@flaub authored
Showing with 26,276 additions and 26,276 deletions.
  1. +16 −16 DotWeb.Installer/DotWeb.TemplateConfigurator/ClassLibraryTemplateWizard.cs
  2. +81 −81 DotWeb.Installer/DotWeb.TemplateConfigurator/DotWeb.TemplateConfigurator.csproj
  3. +20 −20 DotWeb.Installer/DotWeb.TemplateConfigurator/DotWeb.TemplateConfigurator.sln
  4. +20 −20 DotWeb.Installer/DotWeb.TemplateConfigurator/MvcTemplateWizard.cs
  5. +35 −35 DotWeb.Installer/DotWeb.TemplateConfigurator/Properties/AssemblyInfo.cs
  6. +39 −39 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/AddBuildDependencyTask.cs
  7. +45 −45 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ChangeOutputPathTask.cs
  8. +31 −31 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ChangeStartupProjectTask.cs
  9. +67 −67 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/FixDotWebInstallationPathTask.cs
  10. +6 −6 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ITasks.cs
  11. +87 −87 DotWeb.Installer/DotWeb.TemplateConfigurator/WizardBase.cs
  12. +25 −25 DotWeb.Installer/VSTemplate/ClassLibrary/AssemblyInfo.cs
  13. +14 −14 DotWeb.Installer/VSTemplate/ClassLibrary/Class1.cs
  14. +55 −55 DotWeb.Installer/VSTemplate/ClassLibrary/ClassLibrary.csproj
  15. +22 −22 DotWeb.Installer/VSTemplate/ClassLibrary/ClassLibrary.vstemplate
  16. +25 −25 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/AssemblyInfo.cs
  17. +14 −14 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/Class1.cs
  18. +55 −55 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/ClassLibrary.csproj
  19. +18 −18 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/ClassLibrary.vstemplate
  20. +317 −317 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Content/Site.css
  21. +296 −296 ...staller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Controllers/AccountController.cs
  22. +24 −24 ....Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Controllers/HomeController.cs
  23. +3 −3 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Default.aspx
  24. +22 −22 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Default.aspx.cs
  25. +1 −1  DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Global.asax
  26. +31 −31 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Global.asax.cs
  27. +134 −134 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/MvcApplication.csproj
  28. +84 −84 ...late/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/MvcWebApplicationProjectTemplate.cs.vstemplate
  29. +35 −35 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Properties/AssemblyInfo.cs
  30. +6,850 −6,850 ...Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/MicrosoftAjax.debug.js
  31. +7 −7 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/MicrosoftAjax.js
  32. +337 −337 ...taller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/MicrosoftMvcAjax.debug.js
  33. +1 −1  ...eb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/MicrosoftMvcAjax.js
  34. +6,255 −6,255 ....Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/jquery-1.3.2-vsdoc.js
  35. +4,410 −4,410 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/jquery-1.3.2.js
  36. +6,255 −6,255 ...taller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/jquery-1.3.2.min-vsdoc.js
  37. +52 −52 ...eb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Scripts/jquery-1.3.2.min.js
  38. +42 −42 ...taller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Account/ChangePassword.aspx
  39. +12 −12 ...VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Account/ChangePasswordSuccess.aspx
  40. +37 −37 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Account/LogOn.aspx
  41. +47 −47 ...eb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Account/Register.aspx
  42. +12 −12 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Home/About.aspx
  43. +12 −12 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Home/Index.aspx
  44. +11 −11 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Shared/Error.aspx
  45. +14 −14 ...aller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Shared/LogOnUserControl.ascx
  46. +41 −41 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Shared/Site.Master
  47. +34 −34 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Views/Web.config
  48. +195 −195 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Web.config
  49. +30 −30 DotWeb.Installer/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.vstemplate
View
32 DotWeb.Installer/DotWeb.TemplateConfigurator/ClassLibraryTemplateWizard.cs
@@ -1,17 +1,17 @@
-using DotWeb.TemplateConfigurator.Tasks;
-
-namespace DotWeb.TemplateConfigurator
-{
- public class ClassLibraryTemplateWizard : WizardBase
- {
- /// <summary>
- /// Runs custom wizard logic when the wizard has completed all tasks.
- /// </summary>
- public override void RunFinished()
- {
- var scriptProject = FindProject(name => name.Equals(ProjectName));
-
- new FixDotWebInstallationPathTask(scriptProject).Execute();
- }
- }
+using DotWeb.TemplateConfigurator.Tasks;
+
+namespace DotWeb.TemplateConfigurator
+{
+ public class ClassLibraryTemplateWizard : WizardBase
+ {
+ /// <summary>
+ /// Runs custom wizard logic when the wizard has completed all tasks.
+ /// </summary>
+ public override void RunFinished()
+ {
+ var scriptProject = FindProject(name => name.Equals(ProjectName));
+
+ new FixDotWebInstallationPathTask(scriptProject).Execute();
+ }
+ }
}
View
162 DotWeb.Installer/DotWeb.TemplateConfigurator/DotWeb.TemplateConfigurator.csproj
@@ -1,82 +1,82 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DotWeb.TemplateConfigurator</RootNamespace>
- <AssemblyName>DotWeb.TemplateConfigurator</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <SignAssembly>true</SignAssembly>
- <AssemblyOriginatorKeyFile>StrongName.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>x86</PlatformTarget>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\EnvDTE.dll</HintPath>
- </Reference>
- <Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="VSLangProj, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\VSLangProj.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ClassLibraryTemplateWizard.cs" />
- <Compile Include="Tasks\AddBuildDependencyTask.cs" />
- <Compile Include="Tasks\ChangeOutputPathTask.cs" />
- <Compile Include="Tasks\ChangeStartupProjectTask.cs" />
- <Compile Include="Tasks\FixDotWebInstallationPathTask.cs" />
- <Compile Include="Tasks\ITasks.cs" />
- <Compile Include="MvcTemplateWizard.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="WizardBase.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="StrongName.snk" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>DotWeb.TemplateConfigurator</RootNamespace>
+ <AssemblyName>DotWeb.TemplateConfigurator</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>StrongName.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\EnvDTE.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="VSLangProj, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\VSLangProj.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ClassLibraryTemplateWizard.cs" />
+ <Compile Include="Tasks\AddBuildDependencyTask.cs" />
+ <Compile Include="Tasks\ChangeOutputPathTask.cs" />
+ <Compile Include="Tasks\ChangeStartupProjectTask.cs" />
+ <Compile Include="Tasks\FixDotWebInstallationPathTask.cs" />
+ <Compile Include="Tasks\ITasks.cs" />
+ <Compile Include="MvcTemplateWizard.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="WizardBase.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="StrongName.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
40 DotWeb.Installer/DotWeb.TemplateConfigurator/DotWeb.TemplateConfigurator.sln
@@ -1,20 +1,20 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotWeb.TemplateConfigurator", "DotWeb.TemplateConfigurator.csproj", "{605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotWeb.TemplateConfigurator", "DotWeb.TemplateConfigurator.csproj", "{605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {605DAB6C-352C-4F59-9DD1-D9EBCD738BF3}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
40 DotWeb.Installer/DotWeb.TemplateConfigurator/MvcTemplateWizard.cs
@@ -1,21 +1,21 @@
-using DotWeb.TemplateConfigurator.Tasks;
-
-namespace DotWeb.TemplateConfigurator
-{
- public class MvcTemplateWizard : WizardBase
- {
- /// <summary>
- /// Runs custom wizard logic when the wizard has completed all tasks.
- /// </summary>
- public override void RunFinished()
- {
- var scriptProject = FindProject(name => name.Equals(ProjectName + ".Script"));
- var mvcProject = FindProject(name => name.Equals(ProjectName));
-
- new FixDotWebInstallationPathTask(scriptProject).Execute();
- new ChangeStartupProjectTask(mvcProject).Execute();
- new AddBuildDependencyTask(mvcProject, scriptProject).Execute();
- new ChangeOutputPathTask(scriptProject,mvcProject).Execute();
- }
- }
+using DotWeb.TemplateConfigurator.Tasks;
+
+namespace DotWeb.TemplateConfigurator
+{
+ public class MvcTemplateWizard : WizardBase
+ {
+ /// <summary>
+ /// Runs custom wizard logic when the wizard has completed all tasks.
+ /// </summary>
+ public override void RunFinished()
+ {
+ var scriptProject = FindProject(name => name.Equals(ProjectName + ".Script"));
+ var mvcProject = FindProject(name => name.Equals(ProjectName));
+
+ new FixDotWebInstallationPathTask(scriptProject).Execute();
+ new ChangeStartupProjectTask(mvcProject).Execute();
+ new AddBuildDependencyTask(mvcProject, scriptProject).Execute();
+ new ChangeOutputPathTask(scriptProject,mvcProject).Execute();
+ }
+ }
}
View
70 DotWeb.Installer/DotWeb.TemplateConfigurator/Properties/AssemblyInfo.cs
@@ -1,35 +1,35 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("DotWebTemplateWizard")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("DotWebTemplateWizard")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6cca0f7a-dd12-4702-b3aa-4ed50b476d1a")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DotWebTemplateWizard")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DotWebTemplateWizard")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("6cca0f7a-dd12-4702-b3aa-4ed50b476d1a")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
78 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/AddBuildDependencyTask.cs
@@ -1,40 +1,40 @@
-using System;
-using EnvDTE;
-
-namespace DotWeb.TemplateConfigurator.Tasks
-{
- public class AddBuildDependencyTask : ITasks
- {
- private readonly Project _project1;
- private readonly Project _project2;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="AddBuildDependencyTask"/> class.
- /// </summary>
- /// <param name="project1">The project1.</param>
- /// <param name="project2">The project2.</param>
- public AddBuildDependencyTask(Project project1,Project project2)
- {
- if(project1 == null)
- throw new ArgumentNullException("project1");
- if(project2 == null)
- throw new ArgumentNullException("project2");
-
- _project1 = project1;
- _project2 = project2;
- }
-
- /// <summary>
- /// Executes this instance.
- /// </summary>
- public void Execute()
- {
- var dte = _project1.DTE;
- var solutionBuild = dte.Solution.SolutionBuild;
- var dependencies = solutionBuild.BuildDependencies;
-
- var mvcDependencys = dependencies.Item(_project1.UniqueName);
- mvcDependencys.AddProject(_project2.UniqueName);
- }
- }
+using System;
+using EnvDTE;
+
+namespace DotWeb.TemplateConfigurator.Tasks
+{
+ public class AddBuildDependencyTask : ITasks
+ {
+ private readonly Project _project1;
+ private readonly Project _project2;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="AddBuildDependencyTask"/> class.
+ /// </summary>
+ /// <param name="project1">The project1.</param>
+ /// <param name="project2">The project2.</param>
+ public AddBuildDependencyTask(Project project1,Project project2)
+ {
+ if(project1 == null)
+ throw new ArgumentNullException("project1");
+ if(project2 == null)
+ throw new ArgumentNullException("project2");
+
+ _project1 = project1;
+ _project2 = project2;
+ }
+
+ /// <summary>
+ /// Executes this instance.
+ /// </summary>
+ public void Execute()
+ {
+ var dte = _project1.DTE;
+ var solutionBuild = dte.Solution.SolutionBuild;
+ var dependencies = solutionBuild.BuildDependencies;
+
+ var mvcDependencys = dependencies.Item(_project1.UniqueName);
+ mvcDependencys.AddProject(_project2.UniqueName);
+ }
+ }
}
View
90 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ChangeOutputPathTask.cs
@@ -1,46 +1,46 @@
-using System;
-using System.IO;
-using EnvDTE;
-
-namespace DotWeb.TemplateConfigurator.Tasks
-{
- public class ChangeOutputPathTask : ITasks
- {
- private readonly Project _projectSource;
- private readonly Project _projectTarget;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ChangeOutputPathTask"/> class.
- /// </summary>
- /// <param name="projectSource">The project source.</param>
- /// <param name="projectTarget">The project target.</param>
- public ChangeOutputPathTask(Project projectSource,Project projectTarget)
- {
- if(projectSource == null)
- throw new ArgumentNullException("projectSource");
- if(projectTarget == null)
- throw new ArgumentNullException("projectTarget");
-
- _projectSource = projectSource;
- _projectTarget = projectTarget;
- }
-
- /// <summary>
- /// Executes this instance.
- /// </summary>
- public void Execute()
- {
- var targetOutputPath = _projectTarget.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath");
- var sourceOutputPath = _projectSource.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath");
-
- var targetProjectFileInfo = new FileInfo(_projectTarget.FileName);
-
- var targetDirectory = targetProjectFileInfo.Directory;
-
- if(targetDirectory == null)
- return;
-
- sourceOutputPath.Value = Path.Combine(@"..\" + targetDirectory.Name, Convert.ToString(targetOutputPath.Value));
- }
- }
+using System;
+using System.IO;
+using EnvDTE;
+
+namespace DotWeb.TemplateConfigurator.Tasks
+{
+ public class ChangeOutputPathTask : ITasks
+ {
+ private readonly Project _projectSource;
+ private readonly Project _projectTarget;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ChangeOutputPathTask"/> class.
+ /// </summary>
+ /// <param name="projectSource">The project source.</param>
+ /// <param name="projectTarget">The project target.</param>
+ public ChangeOutputPathTask(Project projectSource,Project projectTarget)
+ {
+ if(projectSource == null)
+ throw new ArgumentNullException("projectSource");
+ if(projectTarget == null)
+ throw new ArgumentNullException("projectTarget");
+
+ _projectSource = projectSource;
+ _projectTarget = projectTarget;
+ }
+
+ /// <summary>
+ /// Executes this instance.
+ /// </summary>
+ public void Execute()
+ {
+ var targetOutputPath = _projectTarget.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath");
+ var sourceOutputPath = _projectSource.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath");
+
+ var targetProjectFileInfo = new FileInfo(_projectTarget.FileName);
+
+ var targetDirectory = targetProjectFileInfo.Directory;
+
+ if(targetDirectory == null)
+ return;
+
+ sourceOutputPath.Value = Path.Combine(@"..\" + targetDirectory.Name, Convert.ToString(targetOutputPath.Value));
+ }
+ }
}
View
62 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ChangeStartupProjectTask.cs
@@ -1,32 +1,32 @@
-using System;
-using EnvDTE;
-
-namespace DotWeb.TemplateConfigurator.Tasks
-{
- public class ChangeStartupProjectTask : ITasks
- {
- private readonly Project _project;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ChangeStartupProjectTask"/> class.
- /// </summary>
- /// <param name="project">The project.</param>
- public ChangeStartupProjectTask(Project project)
- {
- if(project == null)
- throw new ArgumentNullException("project");
-
- _project = project;
- }
-
- /// <summary>
- /// Executes this instance.
- /// </summary>
- public void Execute()
- {
- var solutionBuild = _project.DTE.Solution.SolutionBuild;
-
- solutionBuild.StartupProjects = _project.FileName;
- }
- }
+using System;
+using EnvDTE;
+
+namespace DotWeb.TemplateConfigurator.Tasks
+{
+ public class ChangeStartupProjectTask : ITasks
+ {
+ private readonly Project _project;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ChangeStartupProjectTask"/> class.
+ /// </summary>
+ /// <param name="project">The project.</param>
+ public ChangeStartupProjectTask(Project project)
+ {
+ if(project == null)
+ throw new ArgumentNullException("project");
+
+ _project = project;
+ }
+
+ /// <summary>
+ /// Executes this instance.
+ /// </summary>
+ public void Execute()
+ {
+ var solutionBuild = _project.DTE.Solution.SolutionBuild;
+
+ solutionBuild.StartupProjects = _project.FileName;
+ }
+ }
}
View
134 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/FixDotWebInstallationPathTask.cs
@@ -1,68 +1,68 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using EnvDTE;
-using VSLangProj;
-
-namespace DotWeb.TemplateConfigurator.Tasks
-{
- public class FixDotWebInstallationPathTask : ITasks
- {
- private readonly VSProject _project;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="FixDotWebInstallationPathTask"/> class.
- /// </summary>
- /// <param name="project">The project.</param>
- public FixDotWebInstallationPathTask(Project project)
- {
- if(project == null)
- throw new ArgumentNullException("project");
-
- _project = (VSProject)project.Object;
- }
-
- /// <summary>
- /// Gets the installation path from registry.
- /// </summary>
- /// <returns></returns>
- private static string GetInstallationPathFromRegistry()
- {
- // put registry loading code here
- return null;
- }
-
- /// <summary>
- /// Gets the dot web references.
- /// </summary>
- /// <returns></returns>
- private IEnumerable<Reference> GetDotWebReferences()
- {
- foreach(Reference reference in _project.References)
- if(reference.Path.Contains(@"\DotWeb\"))
- yield return reference;
- }
-
- /// <summary>
- /// Executes this instance.
- /// </summary>
- public void Execute()
- {
- var dotWebPath = GetInstallationPathFromRegistry();
-
- if(dotWebPath == null) // no registry entry provided, leave default
- return;
-
- foreach(var reference in GetDotWebReferences())
- {
- var oldPath = reference.Path;
- var referenceFileName = Path.GetFileName(oldPath);
- var newPath = Path.Combine(dotWebPath, referenceFileName);
-
- reference.Remove();
- var newReference = _project.References.Add(newPath);
- newReference.CopyLocal = true;
- }
- }
- }
+using System;
+using System.Collections.Generic;
+using System.IO;
+using EnvDTE;
+using VSLangProj;
+
+namespace DotWeb.TemplateConfigurator.Tasks
+{
+ public class FixDotWebInstallationPathTask : ITasks
+ {
+ private readonly VSProject _project;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FixDotWebInstallationPathTask"/> class.
+ /// </summary>
+ /// <param name="project">The project.</param>
+ public FixDotWebInstallationPathTask(Project project)
+ {
+ if(project == null)
+ throw new ArgumentNullException("project");
+
+ _project = (VSProject)project.Object;
+ }
+
+ /// <summary>
+ /// Gets the installation path from registry.
+ /// </summary>
+ /// <returns></returns>
+ private static string GetInstallationPathFromRegistry()
+ {
+ // put registry loading code here
+ return null;
+ }
+
+ /// <summary>
+ /// Gets the dot web references.
+ /// </summary>
+ /// <returns></returns>
+ private IEnumerable<Reference> GetDotWebReferences()
+ {
+ foreach(Reference reference in _project.References)
+ if(reference.Path.Contains(@"\DotWeb\"))
+ yield return reference;
+ }
+
+ /// <summary>
+ /// Executes this instance.
+ /// </summary>
+ public void Execute()
+ {
+ var dotWebPath = GetInstallationPathFromRegistry();
+
+ if(dotWebPath == null) // no registry entry provided, leave default
+ return;
+
+ foreach(var reference in GetDotWebReferences())
+ {
+ var oldPath = reference.Path;
+ var referenceFileName = Path.GetFileName(oldPath);
+ var newPath = Path.Combine(dotWebPath, referenceFileName);
+
+ reference.Remove();
+ var newReference = _project.References.Add(newPath);
+ newReference.CopyLocal = true;
+ }
+ }
+ }
}
View
12 DotWeb.Installer/DotWeb.TemplateConfigurator/Tasks/ITasks.cs
@@ -1,7 +1,7 @@
-namespace DotWeb.TemplateConfigurator.Tasks
-{
- public interface ITasks
- {
- void Execute();
- }
+namespace DotWeb.TemplateConfigurator.Tasks
+{
+ public interface ITasks
+ {
+ void Execute();
+ }
}
View
174 DotWeb.Installer/DotWeb.TemplateConfigurator/WizardBase.cs
@@ -1,88 +1,88 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using EnvDTE;
-using Microsoft.VisualStudio.TemplateWizard;
-
-namespace DotWeb.TemplateConfigurator
-{
- public abstract class WizardBase : IWizard
- {
- protected string ProjectName { get; private set; }
-
- protected _DTE Dte { get; private set; }
-
- /// <summary>
- /// Runs custom wizard logic at the beginning of a template wizard run.
- /// </summary>
- /// <param name="automationObject">The automation object being used by the template wizard.</param>
- /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
- /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind"/> indicating the type of wizard run.</param>
- /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
- public virtual void RunStarted(object automationObject,
- Dictionary<string, string> replacementsDictionary,
- WizardRunKind runKind,
- object[] customParams)
- {
- Dte = ( (_DTE)automationObject );
- ProjectName = replacementsDictionary.First(e => e.Key == "$projectname$").Value;
- }
-
- /// <summary>
- /// Runs custom wizard logic when a project has finished generating.
- /// </summary>
- /// <param name="project">The project that finished generating.</param>
- public virtual void ProjectFinishedGenerating(Project project)
- {
- }
-
- /// <summary>
- /// Runs custom wizard logic when a project item has finished generating.
- /// </summary>
- /// <param name="projectItem">The project item that finished generating.</param>
- public virtual void ProjectItemFinishedGenerating(ProjectItem projectItem)
- {
- }
-
- /// <summary>
- /// Indicates whether the specified project item should be added to the project.
- /// </summary>
- /// <param name="filePath">The path to the project item.</param>
- /// <returns>
- /// true if the project item should be added to the project; otherwise, false.
- /// </returns>
- public virtual bool ShouldAddProjectItem(string filePath)
- {
- return true;
- }
-
- /// <summary>
- /// Runs custom wizard logic before opening an item in the template.
- /// </summary>
- /// <param name="projectItem">The project item that will be opened.</param>
- public virtual void BeforeOpeningFile(ProjectItem projectItem)
- {
- }
-
- /// <summary>
- /// Runs custom wizard logic when the wizard has completed all tasks.
- /// </summary>
- public virtual void RunFinished()
- {
- }
-
- /// <summary>
- /// Finds the project.
- /// </summary>
- /// <param name="filter">The filter.</param>
- /// <returns></returns>
- protected Project FindProject(Predicate<string> filter)
- {
- foreach(Project project in Dte.Solution.Projects)
- if(filter(project.Name))
- return project;
-
- return null;
- }
- }
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using EnvDTE;
+using Microsoft.VisualStudio.TemplateWizard;
+
+namespace DotWeb.TemplateConfigurator
+{
+ public abstract class WizardBase : IWizard
+ {
+ protected string ProjectName { get; private set; }
+
+ protected _DTE Dte { get; private set; }
+
+ /// <summary>
+ /// Runs custom wizard logic at the beginning of a template wizard run.
+ /// </summary>
+ /// <param name="automationObject">The automation object being used by the template wizard.</param>
+ /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
+ /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind"/> indicating the type of wizard run.</param>
+ /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
+ public virtual void RunStarted(object automationObject,
+ Dictionary<string, string> replacementsDictionary,
+ WizardRunKind runKind,
+ object[] customParams)
+ {
+ Dte = ( (_DTE)automationObject );
+ ProjectName = replacementsDictionary.First(e => e.Key == "$projectname$").Value;
+ }
+
+ /// <summary>
+ /// Runs custom wizard logic when a project has finished generating.
+ /// </summary>
+ /// <param name="project">The project that finished generating.</param>
+ public virtual void ProjectFinishedGenerating(Project project)
+ {
+ }
+
+ /// <summary>
+ /// Runs custom wizard logic when a project item has finished generating.
+ /// </summary>
+ /// <param name="projectItem">The project item that finished generating.</param>
+ public virtual void ProjectItemFinishedGenerating(ProjectItem projectItem)
+ {
+ }
+
+ /// <summary>
+ /// Indicates whether the specified project item should be added to the project.
+ /// </summary>
+ /// <param name="filePath">The path to the project item.</param>
+ /// <returns>
+ /// true if the project item should be added to the project; otherwise, false.
+ /// </returns>
+ public virtual bool ShouldAddProjectItem(string filePath)
+ {
+ return true;
+ }
+
+ /// <summary>
+ /// Runs custom wizard logic before opening an item in the template.
+ /// </summary>
+ /// <param name="projectItem">The project item that will be opened.</param>
+ public virtual void BeforeOpeningFile(ProjectItem projectItem)
+ {
+ }
+
+ /// <summary>
+ /// Runs custom wizard logic when the wizard has completed all tasks.
+ /// </summary>
+ public virtual void RunFinished()
+ {
+ }
+
+ /// <summary>
+ /// Finds the project.
+ /// </summary>
+ /// <param name="filter">The filter.</param>
+ /// <returns></returns>
+ protected Project FindProject(Predicate<string> filter)
+ {
+ foreach(Project project in Dte.Solution.Projects)
+ if(filter(project.Name))
+ return project;
+
+ return null;
+ }
+ }
}
View
50 DotWeb.Installer/VSTemplate/ClassLibrary/AssemblyInfo.cs
@@ -1,25 +1,25 @@
-using System;
-using System.Reflection;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("$projectname$")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("$registeredorganization$")]
-[assembly: AssemblyProduct("$projectname$")]
-[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Version information for an assembly consists of the following four values:
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System;
+using System.Reflection;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("$projectname$")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("$registeredorganization$")]
+[assembly: AssemblyProduct("$projectname$")]
+[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Version information for an assembly consists of the following four values:
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
28 DotWeb.Installer/VSTemplate/ClassLibrary/Class1.cs
@@ -1,14 +1,14 @@
-using System;
-using DotWeb.Client;
-using DotWeb.Client.Dom;
-
-namespace $safeprojectname$
-{
- public class Class1
- {
- public Class1()
- {
- Global.Window.alert("Hello World!");
- }
- }
-}
+using System;
+using DotWeb.Client;
+using DotWeb.Client.Dom;
+
+namespace $safeprojectname$
+{
+ public class Class1
+ {
+ public Class1()
+ {
+ Global.Window.alert("Hello World!");
+ }
+ }
+}
View
110 DotWeb.Installer/VSTemplate/ClassLibrary/ClassLibrary.csproj
@@ -1,56 +1,56 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>$guid1$</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>$safeprojectname$</RootNamespace>
- <AssemblyName>$safeprojectname$</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <NoStdLib>true</NoStdLib>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="Class1.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Reference Include="DotWeb.Client, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(ProgramFiles)\DotWeb\DotWeb.Client.dll</HintPath>
- </Reference>
- <Reference Include="DotWeb.System, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(ProgramFiles)\DotWeb\DotWeb.System.dll</HintPath>
- </Reference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>$guid1$</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>$safeprojectname$</RootNamespace>
+ <AssemblyName>$safeprojectname$</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <NoStdLib>true</NoStdLib>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Class1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="DotWeb.Client, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(ProgramFiles)\DotWeb\DotWeb.Client.dll</HintPath>
+ </Reference>
+ <Reference Include="DotWeb.System, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(ProgramFiles)\DotWeb\DotWeb.System.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
44 DotWeb.Installer/VSTemplate/ClassLibrary/ClassLibrary.vstemplate
@@ -1,22 +1,22 @@
-<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
- <TemplateData>
- <Name>Class Library</Name>
- <Description>Text</Description>
- <Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4547" />
- <ProjectType>CSharp</ProjectType>
- <SortOrder>20</SortOrder>
- <CreateNewFolder>true</CreateNewFolder>
- <DefaultName>ClassLibrary</DefaultName>
- <ProvideDefaultName>true</ProvideDefaultName>
- </TemplateData>
- <TemplateContent>
- <Project File="ClassLibrary.csproj" ReplaceParameters="true">
- <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>
- </Project>
- </TemplateContent>
- <WizardExtension>
- <Assembly>DotWeb.TemplateConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2be05ab7c49c9035</Assembly>
- <FullClassName>DotWeb.TemplateConfigurator.ClassLibraryTemplateWizard</FullClassName>
- </WizardExtension>
-</VSTemplate>
+<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
+ <TemplateData>
+ <Name>Class Library</Name>
+ <Description>Text</Description>
+ <Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4547" />
+ <ProjectType>CSharp</ProjectType>
+ <SortOrder>20</SortOrder>
+ <CreateNewFolder>true</CreateNewFolder>
+ <DefaultName>ClassLibrary</DefaultName>
+ <ProvideDefaultName>true</ProvideDefaultName>
+ </TemplateData>
+ <TemplateContent>
+ <Project File="ClassLibrary.csproj" ReplaceParameters="true">
+ <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>
+ </Project>
+ </TemplateContent>
+ <WizardExtension>
+ <Assembly>DotWeb.TemplateConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2be05ab7c49c9035</Assembly>
+ <FullClassName>DotWeb.TemplateConfigurator.ClassLibraryTemplateWizard</FullClassName>
+ </WizardExtension>
+</VSTemplate>
View
50 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/AssemblyInfo.cs
@@ -1,25 +1,25 @@
-using System;
-using System.Reflection;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("$projectname$")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("$registeredorganization$")]
-[assembly: AssemblyProduct("$projectname$")]
-[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Version information for an assembly consists of the following four values:
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System;
+using System.Reflection;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("$projectname$")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("$registeredorganization$")]
+[assembly: AssemblyProduct("$projectname$")]
+[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Version information for an assembly consists of the following four values:
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
28 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/Class1.cs
@@ -1,14 +1,14 @@
-using System;
-using DotWeb.Client;
-using DotWeb.Client.Dom;
-
-namespace $safeprojectname$
-{
- public class Class1
- {
- public Class1()
- {
- Global.Window.alert("Hello World!");
- }
- }
-}
+using System;
+using DotWeb.Client;
+using DotWeb.Client.Dom;
+
+namespace $safeprojectname$
+{
+ public class Class1
+ {
+ public Class1()
+ {
+ Global.Window.alert("Hello World!");
+ }
+ }
+}
View
110 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/ClassLibrary.csproj
@@ -1,56 +1,56 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>$guid1$</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>$safeprojectname$</RootNamespace>
- <AssemblyName>$safeprojectname$</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <NoStdLib>true</NoStdLib>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="Class1.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Reference Include="DotWeb.Client, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(ProgramFiles)\DotWeb\DotWeb.Client.dll</HintPath>
- </Reference>
- <Reference Include="DotWeb.System, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(ProgramFiles)\DotWeb\DotWeb.System.dll</HintPath>
- </Reference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>$guid1$</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>$safeprojectname$</RootNamespace>
+ <AssemblyName>$safeprojectname$</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <NoStdLib>true</NoStdLib>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Class1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="DotWeb.Client, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(ProgramFiles)\DotWeb\DotWeb.Client.dll</HintPath>
+ </Reference>
+ <Reference Include="DotWeb.System, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(ProgramFiles)\DotWeb\DotWeb.System.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
36 DotWeb.Installer/VSTemplate/MvcWebApplication/ClassLibrary/ClassLibrary.vstemplate
@@ -1,18 +1,18 @@
-<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
- <TemplateData>
- <Name>Class Library</Name>
- <Description>Text</Description>
- <Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4547" />
- <ProjectType>CSharp</ProjectType>
- <SortOrder>20</SortOrder>
- <CreateNewFolder>true</CreateNewFolder>
- <DefaultName>ClassLibrary</DefaultName>
- <ProvideDefaultName>true</ProvideDefaultName>
- </TemplateData>
- <TemplateContent>
- <Project File="ClassLibrary.csproj" ReplaceParameters="true">
- <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>
- </Project>
- </TemplateContent>
-</VSTemplate>
+<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
+ <TemplateData>
+ <Name>Class Library</Name>
+ <Description>Text</Description>
+ <Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4547" />
+ <ProjectType>CSharp</ProjectType>
+ <SortOrder>20</SortOrder>
+ <CreateNewFolder>true</CreateNewFolder>
+ <DefaultName>ClassLibrary</DefaultName>
+ <ProvideDefaultName>true</ProvideDefaultName>
+ </TemplateData>
+ <TemplateContent>
+ <Project File="ClassLibrary.csproj" ReplaceParameters="true">
+ <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>
+ </Project>
+ </TemplateContent>
+</VSTemplate>
View
634 ...aller/VSTemplate/MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Content/Site.css
@@ -1,317 +1,317 @@
-/*----------------------------------------------------------
-The base color for this template is #5c87b2. If you'd like
-to use a different color start by replacing all instances of
-#5c87b2 with your new color.
-----------------------------------------------------------*/
-body
-{
- background-color: #5c87b2;
- font-size: .75em;
- font-family: Verdana, Helvetica, Sans-Serif;
- margin: 0;
- padding: 0;
- color: #696969;
-}
-
-a:link
-{
- color: #034af3;
- text-decoration: underline;
-}
-a:visited
-{
- color: #505abc;
-}
-a:hover
-{
- color: #1d60ff;
- text-decoration: none;
-}
-a:active
-{
- color: #12eb87;
-}
-
-p, ul
-{
- margin-bottom: 20px;
- line-height: 1.6em;
-}
-
-/* HEADINGS
-----------------------------------------------------------*/
-h1, h2, h3, h4, h5, h6
-{
- font-size: 1.5em;
- color: #000;
- font-family: Arial, Helvetica, sans-serif;
-}
-
-h1
-{
- font-size: 2em;
- padding-bottom: 0;
- margin-bottom: 0;
-}
-h2
-{
- padding: 0 0 10px 0;
-}
-h3
-{
- font-size: 1.2em;
-}
-h4
-{
- font-size: 1.1em;
-}
-h5, h6
-{
- font-size: 1em;
-}
-
-/* this rule styles <h2> tags that are the
-first child of the left and right table columns */
-.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
-{
- margin-top: 0;
-}
-
-/* PRIMARY LAYOUT ELEMENTS
-----------------------------------------------------------*/
-
-/* you can specify a greater or lesser percentage for the
-page width. Or, you can specify an exact pixel width. */
-.page
-{
- width: 90%;
- margin-left: auto;
- margin-right: auto;
-}
-
-#header
-{
- position: relative;
- margin-bottom: 0px;
- color: #000;
- padding: 0;
-}
-
-#header h1
-{
- font-weight: bold;
- padding: 5px 0;
- margin: 0;
- color: #fff;
- border: none;
- line-height: 2em;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 32px !important;
-}
-
-#main
-{
- padding: 30px 30px 15px 30px;
- background-color: #fff;
- margin-bottom: 30px;
- _height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
-}
-
-#footer
-{
- color: #999;
- padding: 10px 0;
- text-align: center;
- line-height: normal;
- margin: 0;
- font-size: .9em;
-}
-
-/* TAB MENU
-----------------------------------------------------------*/
-ul#menu
-{
- border-bottom: 1px #5C87B2 solid;
- padding: 0 0 2px;
- position: relative;
- margin: 0;
- text-align: right;
-}
-
-ul#menu li
-{
- display: inline;
- list-style: none;
-}
-
-ul#menu li#greeting
-{
- padding: 10px 20px;
- font-weight: bold;
- text-decoration: none;
- line-height: 2.8em;
- color: #fff;
-}
-
-ul#menu li a
-{
- padding: 10px 20px;
- font-weight: bold;
- text-decoration: none;
- line-height: 2.8em;
- background-color: #e8eef4;
- color: #034af3;
-}
-
-ul#menu li a:hover
-{
- background-color: #fff;
- text-decoration: none;
-}
-
-ul#menu li a:active
-{
- background-color: #a6e2a6;
- text-decoration: none;
-}
-
-ul#menu li.selected a
-{
- background-color: #fff;
- color: #000;
-}
-
-/* FORM LAYOUT ELEMENTS
-----------------------------------------------------------*/
-
-fieldset
-{
- margin: 1em 0;
- padding: 1em;
- border: 1px solid #CCC;
-}
-
-fieldset p
-{
- margin: 2px 12px 10px 10px;
-}
-
-fieldset label
-{
- display: block;
-}
-
-fieldset label.inline
-{
- display: inline;
-}
-
-legend
-{
- font-size: 1.1em;
- font-weight: 600;
- padding: 2px 4px 8px 4px;
-}
-
-input[type="text"]
-{
- width: 200px;
- border: 1px solid #CCC;
-}
-
-input[type="password"]
-{
- width: 200px;
- border: 1px solid #CCC;
-}
-
-/* TABLE
-----------------------------------------------------------*/
-
-table
-{
- border: solid 1px #e8eef4;
- border-collapse: collapse;
-}
-
-table td
-{
- padding: 5px;
- border: solid 1px #e8eef4;
-}
-
-table th
-{
- padding: 6px 5px;
- text-align: left;
- background-color: #e8eef4;
- border: solid 1px #e8eef4;
-}
-
-/* MISC
-----------------------------------------------------------*/
-.clear
-{
- clear: both;
-}
-
-.error
-{
- color:Red;
-}
-
-#menucontainer
-{
- margin-top:40px;
-}
-
-div#title
-{
- display:block;
- float:left;
- text-align:left;
-}
-
-#logindisplay
-{
- font-size:1.1em;
- display:block;
- text-align:right;
- margin:10px;
- color:White;
-}
-
-#logindisplay a:link
-{
- color: white;
- text-decoration: underline;
-}
-
-#logindisplay a:visited
-{
- color: white;
- text-decoration: underline;
-}
-
-#logindisplay a:hover
-{
- color: white;
- text-decoration: none;
-}
-
-.field-validation-error
-{
- color: #ff0000;
-}
-
-.input-validation-error
-{
- border: 1px solid #ff0000;
- background-color: #ffeeee;
-}
-
-.validation-summary-errors
-{
- font-weight: bold;
- color: #ff0000;
-}
+/*----------------------------------------------------------
+The base color for this template is #5c87b2. If you'd like
+to use a different color start by replacing all instances of
+#5c87b2 with your new color.
+----------------------------------------------------------*/
+body
+{
+ background-color: #5c87b2;
+ font-size: .75em;
+ font-family: Verdana, Helvetica, Sans-Serif;
+ margin: 0;
+ padding: 0;
+ color: #696969;
+}
+
+a:link
+{
+ color: #034af3;
+ text-decoration: underline;
+}
+a:visited
+{
+ color: #505abc;
+}
+a:hover
+{
+ color: #1d60ff;
+ text-decoration: none;
+}
+a:active
+{
+ color: #12eb87;
+}
+
+p, ul
+{
+ margin-bottom: 20px;
+ line-height: 1.6em;
+}
+
+/* HEADINGS
+----------------------------------------------------------*/
+h1, h2, h3, h4, h5, h6
+{
+ font-size: 1.5em;
+ color: #000;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+h1
+{
+ font-size: 2em;
+ padding-bottom: 0;
+ margin-bottom: 0;
+}
+h2
+{
+ padding: 0 0 10px 0;
+}
+h3
+{
+ font-size: 1.2em;
+}
+h4
+{
+ font-size: 1.1em;
+}
+h5, h6
+{
+ font-size: 1em;
+}
+
+/* this rule styles <h2> tags that are the
+first child of the left and right table columns */
+.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
+{
+ margin-top: 0;
+}
+
+/* PRIMARY LAYOUT ELEMENTS
+----------------------------------------------------------*/
+
+/* you can specify a greater or lesser percentage for the
+page width. Or, you can specify an exact pixel width. */
+.page
+{
+ width: 90%;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+#header
+{
+ position: relative;
+ margin-bottom: 0px;
+ color: #000;
+ padding: 0;
+}
+
+#header h1
+{
+ font-weight: bold;
+ padding: 5px 0;
+ margin: 0;
+ color: #fff;
+ border: none;
+ line-height: 2em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 32px !important;
+}
+
+#main
+{
+ padding: 30px 30px 15px 30px;
+ background-color: #fff;
+ margin-bottom: 30px;
+ _height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
+}
+
+#footer
+{
+ color: #999;
+ padding: 10px 0;
+ text-align: center;
+ line-height: normal;
+ margin: 0;
+ font-size: .9em;
+}
+
+/* TAB MENU
+----------------------------------------------------------*/
+ul#menu
+{
+ border-bottom: 1px #5C87B2 solid;
+ padding: 0 0 2px;
+ position: relative;
+ margin: 0;
+ text-align: right;
+}
+
+ul#menu li
+{
+ display: inline;
+ list-style: none;
+}
+
+ul#menu li#greeting
+{
+ padding: 10px 20px;
+ font-weight: bold;
+ text-decoration: none;
+ line-height: 2.8em;
+ color: #fff;
+}
+
+ul#menu li a
+{
+ padding: 10px 20px;
+ font-weight: bold;
+ text-decoration: none;
+ line-height: 2.8em;
+ background-color: #e8eef4;
+ color: #034af3;
+}
+
+ul#menu li a:hover
+{
+ background-color: #fff;
+ text-decoration: none;
+}
+
+ul#menu li a:active
+{
+ background-color: #a6e2a6;
+ text-decoration: none;
+}
+
+ul#menu li.selected a
+{
+ background-color: #fff;
+ color: #000;
+}
+
+/* FORM LAYOUT ELEMENTS
+----------------------------------------------------------*/
+
+fieldset
+{
+ margin: 1em 0;
+ padding: 1em;
+ border: 1px solid #CCC;
+}
+
+fieldset p
+{
+ margin: 2px 12px 10px 10px;
+}
+
+fieldset label
+{
+ display: block;
+}
+
+fieldset label.inline
+{
+ display: inline;
+}
+
+legend
+{
+ font-size: 1.1em;
+ font-weight: 600;
+ padding: 2px 4px 8px 4px;
+}
+
+input[type="text"]
+{
+ width: 200px;
+ border: 1px solid #CCC;
+}
+
+input[type="password"]
+{
+ width: 200px;
+ border: 1px solid #CCC;
+}
+
+/* TABLE
+----------------------------------------------------------*/
+
+table
+{
+ border: solid 1px #e8eef4;
+ border-collapse: collapse;
+}
+
+table td
+{
+ padding: 5px;
+ border: solid 1px #e8eef4;
+}
+
+table th
+{
+ padding: 6px 5px;
+ text-align: left;
+ background-color: #e8eef4;
+ border: solid 1px #e8eef4;
+}
+
+/* MISC
+----------------------------------------------------------*/
+.clear
+{
+ clear: both;
+}
+
+.error
+{
+ color:Red;
+}
+
+#menucontainer
+{
+ margin-top:40px;
+}
+
+div#title
+{
+ display:block;
+ float:left;
+ text-align:left;
+}
+
+#logindisplay
+{
+ font-size:1.1em;
+ display:block;
+ text-align:right;
+ margin:10px;
+ color:White;
+}
+
+#logindisplay a:link
+{
+ color: white;
+ text-decoration: underline;
+}
+
+#logindisplay a:visited
+{
+ color: white;
+ text-decoration: underline;
+}
+
+#logindisplay a:hover
+{
+ color: white;
+ text-decoration: none;
+}
+
+.field-validation-error
+{
+ color: #ff0000;
+}
+
+.input-validation-error
+{
+ border: 1px solid #ff0000;
+ background-color: #ffeeee;
+}
+
+.validation-summary-errors
+{
+ font-weight: bold;
+ color: #ff0000;
+}
View
592 .../MvcWebApplication/MvcWebApplicationProjectTemplatev1.cs/Controllers/AccountController.cs
@@ -1,296 +1,296 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Security.Principal;
-using System.Web;
-using System.Web.Mvc;
-using System.Web.Security;
-using System.Web.UI;
-
-namespace $safeprojectname$.Controllers {
-
- [HandleError]
- public class AccountController : Controller {
-
- // This constructor is used by the MVC framework to instantiate the controller using
- // the default forms authentication and membership providers.
-
- public AccountController()
- : this(null, null) {
- }
-
- // This constructor is not used by the MVC framework but is instead provided for ease
- // of unit testing this type. See the comments at the end of this file for more
- // information.
- public AccountController(IFormsAuthentication formsAuth, IMembershipService service) {
- FormsAuth = formsAuth ?? new FormsAuthenticationService();
- MembershipService = service ?? new AccountMembershipService();
- }
-
- public IFormsAuthentication FormsAuth {
- get;
- private set;
- }
-
- public IMembershipService MembershipService {
- get;
- private set;
- }
-
- public ActionResult LogOn() {
-
- return View();
- }
-
- [AcceptVerbs(HttpVerbs.Post)]
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",
- Justification = "Needs to take same parameter type as Controller.Redirect()")]
- public ActionResult LogOn(string userName, string password, bool rememberMe, string returnUrl) {
-
- if (!ValidateLogOn(userName, password)) {
- return View();
- }
-
- FormsAuth.SignIn(userName, rememberMe);
- if (!String.IsNullOrEmpty(returnUrl)) {
- return Redirect(returnUrl);
- }
- else {
- return RedirectToAction("Index", "Home");
- }
- }
-
- public ActionResult LogOff() {
-
- FormsAuth.SignOut();
-
- return RedirectToAction("Index", "Home");
- }
-
- public ActionResult Register() {
-
- ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
-
- return View();
- }
-
- [AcceptVerbs(HttpVerbs.Post)]
- public ActionResult Register(string userName, string email, string password, string confirmPassword) {
-
- ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
-
- if (ValidateRegistration(userName, email, password, confirmPassword)) {
- // Attempt to register the user
- MembershipCreateStatus createStatus = MembershipService.CreateUser(userName, password, email);
-
- if (createStatus == MembershipCreateStatus.Success) {
- FormsAuth.SignIn(userName, false /* createPersistentCookie */);
- return RedirectToAction("Index", "Home");
- }
- else {
- ModelState.AddModelError("_FORM", ErrorCodeToString(createStatus));
- }
- }
-
- // If we got this far, something failed, redisplay form
- return View();
- }
-
- [Authorize]
- public ActionResult ChangePassword() {
-
- ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
-
- return View();
- }
-
- [Authorize]
- [AcceptVerbs(HttpVerbs.Post)]
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
- Justification = "Exceptions result in password not being changed.")]
- public ActionResult ChangePassword(string currentPassword, string newPassword, string confirmPassword) {
-
- ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
-
- if (!ValidateChangePassword(currentPassword, newPassword, confirmPassword)) {
- return View();
- }
-
- try {
- if (MembershipService.ChangePassword(User.Identity.Name, currentPassword, newPassword)) {
- return RedirectToAction("ChangePasswordSuccess");
- }
- else {
- ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid.");
- return View();
- }
- }
- catch {
- ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid.");
- return View();
- }
- }
-
- public ActionResult ChangePasswordSuccess() {
-
- return View();
- }
-
- protected override void OnActionExecuting(ActionExecutingContext filterContext) {
- if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
- throw new InvalidOperationException("Windows authentication is not supported.");
- }
- }
-
- #region Validation Methods
-
- private bool ValidateChangePassword(string currentPassword, string newPassword, string confirmPassword) {
- if (String.IsNullOrEmpty(currentPassword)) {
- ModelState.AddModelError("currentPassword", "You must specify a current password.");
- }
- if (newPassword == null || newPassword.Length < MembershipService.MinPasswordLength) {
- ModelState.AddModelError("newPassword",
- String.Format(CultureInfo.CurrentCulture,
- "You must specify a new password of {0} or more characters.",
- MembershipService.MinPasswordLength));
- }
-
- if (!String.Equals(newPassword, confirmPassword, StringComparison.Ordinal)) {
- ModelState.AddModelError("_FORM", "The new password and confirmation password do not match.");
- }
-
- return ModelState.IsValid;
- }
-
- private bool ValidateLogOn(string userName, string password) {
- if (String.IsNullOrEmpty(userName)) {
- ModelState.AddModelError("username", "You must specify a username.");
- }
- if (String.IsNullOrEmpty(password)) {
- ModelState.AddModelError("password", "You must specify a password.");
- }
- if (!MembershipService.ValidateUser(userName, password)) {
- ModelState.AddModelError("_FORM", "The username or password provided is incorrect.");
- }
-
- return ModelState.IsValid;
- }
-
- private bool ValidateRegistration(string userName, string email, string password, string confirmPassword) {
- if (String.IsNullOrEmpty(userName)) {
- ModelState.AddModelError("username", "You must specify a username.");
- }
- if (String.IsNullOrEmpty(email)) {
- ModelState.AddModelError("email", "You must specify an email address.");
- }
- if (password == null || password.Length < MembershipService.MinPasswordLength) {
- ModelState.AddModelError("password",
- String.Format(CultureInfo.CurrentCulture,
- "You must specify a password of {0} or more characters.",
- MembershipService.MinPasswordLength));
- }
- if (!String.Equals(password, confirmPassword, StringComparison.Ordinal)) {
- ModelState.AddModelError("_FORM", "The new password and confirmation password do not match.");
- }
- return ModelState.IsValid;
- }
-
- private static string ErrorCodeToString(MembershipCreateStatus createStatus) {
- // See http://msdn.microsoft.com/en-us/library/system.web.security.membershipcreatestatus.aspx for
- // a full list of status codes.
- switch (createStatus) {
- case MembershipCreateStatus.DuplicateUserName:
- return "Username already exists. Please enter a different user name.";
-
- case MembershipCreateStatus.DuplicateEmail:
- return "A username for that e-mail address already exists. Please enter a different e-mail address.";
-
- case MembershipCreateStatus.InvalidPassword:
- return "The password provided is invalid. Please enter a valid password value.";
-
- case MembershipCreateStatus.InvalidEmail:
- return "The e-mail address provided is invalid. Please check the value and try again.";
-
- case MembershipCreateStatus.InvalidAnswer:
- return "The password retrieval answer provided is invalid. Please check the value and try again.";
-
- case MembershipCreateStatus.InvalidQuestion:
- return "The password retrieval question provided is invalid. Please check the value and try again.";
-
- case MembershipCreateStatus.InvalidUserName:
- return "The user name provided is invalid. Please check the value and try again.";
-
- case MembershipCreateStatus.ProviderError:
- return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
-
- case MembershipCreateStatus.UserRejected:
- return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
-
- default:
- return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
- }
- }
- #endregion
- }
-
- // The FormsAuthentication type is sealed and contains static members, so it is difficult to
- // unit test code that calls its members. The interface and helper class below demonstrate
- // how to create an abstract wrapper around such a type in order to make the AccountController
- // code unit testable.
-
- public interface IFormsAuthentication {
- void SignIn(string userName, bool createPersistentCookie);
- void SignOut();
- }
-
- public class FormsAuthenticationService : IFormsAuthentication {
- public void SignIn(string userName, bool createPersistentCookie) {
- FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
- }
- public void SignOut() {
- FormsAuthentication.SignOut();
- }
- }
-
- public interface IMembershipService {
- int MinPasswordLength { get; }
-
- bool ValidateUser(string userName, string password);
- MembershipCreateStatus CreateUser(string userName, string password, string email);
- bool ChangePassword(string userName, string oldPassword, string newPassword);
- }
-
- public class AccountMembershipService : IMembershipService {
- private MembershipProvider _provider;
-
- public AccountMembershipService()
- : this(null) {
- }
-
- public AccountMembershipService(MembershipProvider provider) {
- _provider = provider ?? Membership.Provider;
- }
-
- public int MinPasswordLength {
- get {
- return _provider.MinRequiredPasswordLength;
- }
- }
-
- public bool ValidateUser(string userName, string password) {
- return _provider.ValidateUser(userName, password);
- }
-
- public MembershipCreateStatus CreateUser(string userName, string password, string email) {
- MembershipCreateStatus status;
- _provider.CreateUser(userName, password, email, null, null, true, null, out status);
- return status;
- }
-
- public bool ChangePassword(string userName, string oldPassword, string newPassword) {
- MembershipUser currentUser = _provider.GetUser(userName, true /* userIsOnline */);
- return currentUser.ChangePassword(oldPassword, newPassword