Skip to content

Commit fca8c5f

Browse files
committed
Initial version
1 parent aad84ea commit fca8c5f

File tree

14 files changed

+514
-0
lines changed

14 files changed

+514
-0
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#OS junk files
2+
[Tt]humbs.db
3+
*.DS_Store
4+
5+
#Visual Studio files
6+
*.[Oo]bj
7+
*.user
8+
*.aps
9+
*.pch
10+
*.vspscc
11+
*.vssscc
12+
*_i.c
13+
*_p.c
14+
*.ncb
15+
*.suo
16+
*.tlb
17+
*.tlh
18+
*.bak
19+
*.[Cc]ache
20+
*.ilk
21+
*.log
22+
*.lib
23+
*.sbr
24+
*.sdf
25+
*.opensdf
26+
*.unsuccessfulbuild
27+
ipch/
28+
obj/
29+
[Bb]in
30+
[Dd]ebug*/
31+
[Rr]elease*/
32+
Ankh.NoLoad
33+
34+
#Tooling
35+
_ReSharper*/
36+
*.resharper
37+
[Tt]est[Rr]esult*
38+
39+
#Project files
40+
[Bb]uild/
41+
42+
#Subversion files
43+
.svn
44+
45+
# Office Temp Files
46+
~$*
47+
48+
#NuGet
49+
#packages/

FoundryWeb.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FoundryWeb", "FoundryWeb\FoundryWeb.csproj", "{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
7+
namespace FoundryWeb.Controllers
8+
{
9+
public class HomeController : Controller
10+
{
11+
public ActionResult Index()
12+
{
13+
return View();
14+
}
15+
}
16+
}

FoundryWeb/FoundryWeb.csproj

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>
7+
</ProductVersion>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<ProjectGuid>{5FD0AE89-51BB-4BD0-B461-C188D73B2E34}</ProjectGuid>
10+
<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
11+
<OutputType>Library</OutputType>
12+
<AppDesignerFolder>Properties</AppDesignerFolder>
13+
<RootNamespace>FoundryWeb</RootNamespace>
14+
<AssemblyName>FoundryWeb</AssemblyName>
15+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
16+
<MvcBuildViews>false</MvcBuildViews>
17+
<UseIISExpress>false</UseIISExpress>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="Microsoft.CSharp" />
38+
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
39+
<Reference Include="System.Web.WebPages" />
40+
<Reference Include="System.Web.Helpers" />
41+
<Reference Include="System" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Drawing" />
44+
<Reference Include="System.Web.DynamicData" />
45+
<Reference Include="System.Web.Entity" />
46+
<Reference Include="System.Web.ApplicationServices" />
47+
<Reference Include="System.ComponentModel.DataAnnotations" />
48+
<Reference Include="System.Core" />
49+
<Reference Include="System.Data.DataSetExtensions" />
50+
<Reference Include="System.Xml.Linq" />
51+
<Reference Include="System.Web" />
52+
<Reference Include="System.Web.Extensions" />
53+
<Reference Include="System.Web.Abstractions" />
54+
<Reference Include="System.Web.Routing" />
55+
<Reference Include="System.Xml" />
56+
<Reference Include="System.Configuration" />
57+
<Reference Include="System.Web.Services" />
58+
<Reference Include="System.EnterpriseServices" />
59+
</ItemGroup>
60+
<ItemGroup>
61+
<Compile Include="Controllers\HomeController.cs" />
62+
<Compile Include="Global.asax.cs">
63+
<DependentUpon>Global.asax</DependentUpon>
64+
</Compile>
65+
<Compile Include="Properties\AssemblyInfo.cs" />
66+
</ItemGroup>
67+
<ItemGroup>
68+
<Content Include="Global.asax" />
69+
<Content Include="Web.config" />
70+
<Content Include="Web.Debug.config">
71+
<DependentUpon>Web.config</DependentUpon>
72+
</Content>
73+
<Content Include="Web.Release.config">
74+
<DependentUpon>Web.config</DependentUpon>
75+
</Content>
76+
<Content Include="Views\_ViewStart.cshtml" />
77+
<Content Include="Views\Account\ChangePassword.cshtml" />
78+
<Content Include="Views\Account\ChangePasswordSuccess.cshtml" />
79+
<Content Include="Views\Account\LogOn.cshtml" />
80+
<Content Include="Views\Account\Register.cshtml" />
81+
<Content Include="Views\Home\About.cshtml" />
82+
<Content Include="Views\Home\Index.cshtml" />
83+
<Content Include="Views\Shared\_Layout.cshtml" />
84+
<Content Include="Views\Web.config" />
85+
</ItemGroup>
86+
<ItemGroup />
87+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
88+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
89+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
90+
Other similar extension points exist, see Microsoft.Common.targets.
91+
<Target Name="BeforeBuild">
92+
</Target>
93+
<Target Name="AfterBuild">
94+
</Target> -->
95+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
96+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
97+
</Target>
98+
<ProjectExtensions>
99+
<VisualStudio>
100+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
101+
<WebProjectProperties>
102+
<UseIIS>False</UseIIS>
103+
<AutoAssignPort>True</AutoAssignPort>
104+
<DevelopmentServerPort>57610</DevelopmentServerPort>
105+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
106+
<IISUrl>
107+
</IISUrl>
108+
<NTLMAuthentication>False</NTLMAuthentication>
109+
<UseCustomServer>False</UseCustomServer>
110+
<CustomServerUrl>
111+
</CustomServerUrl>
112+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
113+
</WebProjectProperties>
114+
</FlavorProperties>
115+
</VisualStudio>
116+
</ProjectExtensions>
117+
</Project>

FoundryWeb/Global.asax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="FoundryWeb.MvcApplication" Language="C#" %>

FoundryWeb/Global.asax.cs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace FoundryWeb
9+
{
10+
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
11+
// visit http://go.microsoft.com/?LinkId=9394801
12+
13+
public class MvcApplication : System.Web.HttpApplication
14+
{
15+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
16+
{
17+
filters.Add(new HandleErrorAttribute());
18+
}
19+
20+
public static void RegisterRoutes(RouteCollection routes)
21+
{
22+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
23+
24+
routes.MapRoute(
25+
"Default", // Route name
26+
"{controller}/{action}/{id}", // URL with parameters
27+
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
28+
);
29+
30+
}
31+
32+
protected void Application_Start()
33+
{
34+
AreaRegistration.RegisterAllAreas();
35+
36+
RegisterGlobalFilters(GlobalFilters.Filters);
37+
RegisterRoutes(RouteTable.Routes);
38+
}
39+
}
40+
}

FoundryWeb/Properties/AssemblyInfo.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("FoundryWeb")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("FoundryWeb")]
13+
[assembly: AssemblyCopyright("Copyright © 2012")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("8e7559ce-623f-4508-850d-c6ece0842b4b")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

FoundryWeb/Views/Home/Index.cshtml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@{
2+
ViewBag.Title = "Foundry 57";
3+
}
4+
5+
<h2>@ViewBag.Message</h2>
6+
<p>
7+
Foundry 57
8+
</p>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>@ViewBag.Title</title>
5+
</head>
6+
7+
<body>
8+
<div class="page">
9+
<div id="header">
10+
<div id="title">
11+
<h1>Foundry 57</h1>
12+
</div>
13+
</div>
14+
15+
<div id="main">
16+
@RenderBody()
17+
<div id="footer">
18+
</div>
19+
</div>
20+
</div>
21+
</body>
22+
</html>

FoundryWeb/Views/Web.config

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0"?>
2+
3+
<configuration>
4+
<configSections>
5+
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6+
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
7+
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
8+
</sectionGroup>
9+
</configSections>
10+
11+
<system.web.webPages.razor>
12+
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
13+
<pages pageBaseType="System.Web.Mvc.WebViewPage">
14+
<namespaces>
15+
<add namespace="System.Web.Mvc" />
16+
<add namespace="System.Web.Mvc.Ajax" />
17+
<add namespace="System.Web.Mvc.Html" />
18+
<add namespace="System.Web.Routing" />
19+
</namespaces>
20+
</pages>
21+
</system.web.webPages.razor>
22+
23+
<appSettings>
24+
<add key="webpages:Enabled" value="false" />
25+
</appSettings>
26+
27+
<system.web>
28+
<httpHandlers>
29+
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
30+
</httpHandlers>
31+
32+
<!--
33+
Enabling request validation in view pages would cause validation to occur
34+
after the input has already been processed by the controller. By default
35+
MVC performs request validation before a controller processes the input.
36+
To change this behavior apply the ValidateInputAttribute to a
37+
controller or action.
38+
-->
39+
<pages
40+
validateRequest="false"
41+
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
42+
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
43+
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
44+
<controls>
45+
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
46+
</controls>
47+
</pages>
48+
</system.web>
49+
50+
<system.webServer>
51+
<validation validateIntegratedModeConfiguration="false" />
52+
53+
<handlers>
54+
<remove name="BlockViewHandler"/>
55+
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
56+
</handlers>
57+
</system.webServer>
58+
</configuration>

FoundryWeb/Views/_ViewStart.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@{
2+
Layout = "~/Views/Shared/_Layout.cshtml";
3+
}

0 commit comments

Comments
 (0)