From c55924db07c4b7de862ceedc662354204c97392c Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Fri, 20 Aug 2021 21:35:20 +1000 Subject: [PATCH] 7.1.1 Creating the Visual Studio Solution and Projects --- SportsStoreNew/SportsStore.Domain/Class1.cs | 12 ++ .../Properties/AssemblyInfo.cs | 36 ++++ .../SportsStore.Domain.csproj | 54 ++++++ .../Properties/AssemblyInfo.cs | 20 +++ .../SportsStore.UnitTests.csproj | 68 ++++++++ .../SportsStore.UnitTests/UnitTest1.cs | 14 ++ .../SportsStore.UnitTests/packages.config | 5 + .../App_Start/RouteConfig.cs | 23 +++ SportsStoreNew/SportsStore.WebUI/Global.asax | 1 + .../SportsStore.WebUI/Global.asax.cs | 18 ++ .../Properties/AssemblyInfo.cs | 35 ++++ .../SportsStore.WebUI.csproj | 154 ++++++++++++++++++ .../SportsStore.WebUI/Views/web.config | 42 +++++ .../SportsStore.WebUI/Web.Debug.config | 30 ++++ .../SportsStore.WebUI/Web.Release.config | 31 ++++ SportsStoreNew/SportsStore.WebUI/Web.config | 39 +++++ .../SportsStore.WebUI/packages.config | 8 + SportsStoreNew/SportsStoreNew.sln | 13 ++ 18 files changed, 603 insertions(+) create mode 100644 SportsStoreNew/SportsStore.Domain/Class1.cs create mode 100644 SportsStoreNew/SportsStore.Domain/Properties/AssemblyInfo.cs create mode 100644 SportsStoreNew/SportsStore.Domain/SportsStore.Domain.csproj create mode 100644 SportsStoreNew/SportsStore.UnitTests/Properties/AssemblyInfo.cs create mode 100644 SportsStoreNew/SportsStore.UnitTests/SportsStore.UnitTests.csproj create mode 100644 SportsStoreNew/SportsStore.UnitTests/UnitTest1.cs create mode 100644 SportsStoreNew/SportsStore.UnitTests/packages.config create mode 100644 SportsStoreNew/SportsStore.WebUI/App_Start/RouteConfig.cs create mode 100644 SportsStoreNew/SportsStore.WebUI/Global.asax create mode 100644 SportsStoreNew/SportsStore.WebUI/Global.asax.cs create mode 100644 SportsStoreNew/SportsStore.WebUI/Properties/AssemblyInfo.cs create mode 100644 SportsStoreNew/SportsStore.WebUI/SportsStore.WebUI.csproj create mode 100644 SportsStoreNew/SportsStore.WebUI/Views/web.config create mode 100644 SportsStoreNew/SportsStore.WebUI/Web.Debug.config create mode 100644 SportsStoreNew/SportsStore.WebUI/Web.Release.config create mode 100644 SportsStoreNew/SportsStore.WebUI/Web.config create mode 100644 SportsStoreNew/SportsStore.WebUI/packages.config create mode 100644 SportsStoreNew/SportsStoreNew.sln diff --git a/SportsStoreNew/SportsStore.Domain/Class1.cs b/SportsStoreNew/SportsStore.Domain/Class1.cs new file mode 100644 index 0000000..ca99c64 --- /dev/null +++ b/SportsStoreNew/SportsStore.Domain/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SportsStore.Domain +{ + public class Class1 + { + } +} diff --git a/SportsStoreNew/SportsStore.Domain/Properties/AssemblyInfo.cs b/SportsStoreNew/SportsStore.Domain/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d6dde8a --- /dev/null +++ b/SportsStoreNew/SportsStore.Domain/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("SportsStore.Domain")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SportsStore.Domain")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[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("5c118d13-3482-499b-867d-4dd41c54c496")] + +// 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")] diff --git a/SportsStoreNew/SportsStore.Domain/SportsStore.Domain.csproj b/SportsStoreNew/SportsStore.Domain/SportsStore.Domain.csproj new file mode 100644 index 0000000..33bdd35 --- /dev/null +++ b/SportsStoreNew/SportsStore.Domain/SportsStore.Domain.csproj @@ -0,0 +1,54 @@ + + + + + Debug + AnyCPU + 5c118d13-3482-499b-867d-4dd41c54c496 + Library + Properties + SportsStore.Domain + SportsStore.Domain + v4.5 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SportsStoreNew/SportsStore.UnitTests/Properties/AssemblyInfo.cs b/SportsStoreNew/SportsStore.UnitTests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b57f376 --- /dev/null +++ b/SportsStoreNew/SportsStore.UnitTests/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("SportsStore.UnitTests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SportsStore.UnitTests")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("52e45b10-7d95-4312-8ed7-c289cec8f2b0")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SportsStoreNew/SportsStore.UnitTests/SportsStore.UnitTests.csproj b/SportsStoreNew/SportsStore.UnitTests/SportsStore.UnitTests.csproj new file mode 100644 index 0000000..09ea8f0 --- /dev/null +++ b/SportsStoreNew/SportsStore.UnitTests/SportsStore.UnitTests.csproj @@ -0,0 +1,68 @@ + + + + + + Debug + AnyCPU + {52E45B10-7D95-4312-8ED7-C289CEC8F2B0} + Library + Properties + SportsStore.UnitTests + SportsStore.UnitTests + v4.5 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.UnitTests/UnitTest1.cs b/SportsStoreNew/SportsStore.UnitTests/UnitTest1.cs new file mode 100644 index 0000000..ef6f907 --- /dev/null +++ b/SportsStoreNew/SportsStore.UnitTests/UnitTest1.cs @@ -0,0 +1,14 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; + +namespace SportsStore.UnitTests +{ + [TestClass] + public class UnitTest1 + { + [TestMethod] + public void TestMethod1() + { + } + } +} diff --git a/SportsStoreNew/SportsStore.UnitTests/packages.config b/SportsStoreNew/SportsStore.UnitTests/packages.config new file mode 100644 index 0000000..558481c --- /dev/null +++ b/SportsStoreNew/SportsStore.UnitTests/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.WebUI/App_Start/RouteConfig.cs b/SportsStoreNew/SportsStore.WebUI/App_Start/RouteConfig.cs new file mode 100644 index 0000000..2f301d8 --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/App_Start/RouteConfig.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace SportsStore.WebUI +{ + public class RouteConfig + { + public static void RegisterRoutes(RouteCollection routes) + { + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + } + } +} diff --git a/SportsStoreNew/SportsStore.WebUI/Global.asax b/SportsStoreNew/SportsStore.WebUI/Global.asax new file mode 100644 index 0000000..d5409ee --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="SportsStore.WebUI.MvcApplication" Language="C#" %> diff --git a/SportsStoreNew/SportsStore.WebUI/Global.asax.cs b/SportsStoreNew/SportsStore.WebUI/Global.asax.cs new file mode 100644 index 0000000..b79bc4d --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Global.asax.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace SportsStore.WebUI +{ + public class MvcApplication : System.Web.HttpApplication + { + protected void Application_Start() + { + AreaRegistration.RegisterAllAreas(); + RouteConfig.RegisterRoutes(RouteTable.Routes); + } + } +} diff --git a/SportsStoreNew/SportsStore.WebUI/Properties/AssemblyInfo.cs b/SportsStoreNew/SportsStore.WebUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..599cbb1 --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("SportsStore.WebUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SportsStore.WebUI")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[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("141be559-749c-42d5-b27a-ccacb3338a86")] + +// 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")] diff --git a/SportsStoreNew/SportsStore.WebUI/SportsStore.WebUI.csproj b/SportsStoreNew/SportsStore.WebUI/SportsStore.WebUI.csproj new file mode 100644 index 0000000..889cac9 --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/SportsStore.WebUI.csproj @@ -0,0 +1,154 @@ + + + + + Debug + AnyCPU + + + 2.0 + {141BE559-749C-42D5-B27A-CCACB3338A86} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + SportsStore.WebUI + SportsStore.WebUI + v4.5 + true + + + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + true + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + ..\packages\Microsoft.AspNet.Razor.3.2.7\lib\net45\System.Web.Razor.dll + + + ..\packages\Microsoft.AspNet.Webpages.3.2.7\lib\net45\System.Web.Webpages.dll + + + ..\packages\Microsoft.AspNet.Webpages.3.2.7\lib\net45\System.Web.Webpages.Deployment.dll + + + ..\packages\Microsoft.AspNet.Webpages.3.2.7\lib\net45\System.Web.Webpages.Razor.dll + + + ..\packages\Microsoft.AspNet.Webpages.3.2.7\lib\net45\System.Web.Helpers.dll + + + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + ..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll + + + ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + + + + + + + + + Global.asax + + + + + + + + Web.config + + + Web.config + + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + True + True + 55746 + / + http://localhost:56846/ + False + False + + + False + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.WebUI/Views/web.config b/SportsStoreNew/SportsStore.WebUI/Views/web.config new file mode 100644 index 0000000..427fcaf --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Views/web.config @@ -0,0 +1,42 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SportsStoreNew/SportsStore.WebUI/Web.Debug.config b/SportsStoreNew/SportsStore.WebUI/Web.Debug.config new file mode 100644 index 0000000..fae9cfe --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.WebUI/Web.Release.config b/SportsStoreNew/SportsStore.WebUI/Web.Release.config new file mode 100644 index 0000000..da6e960 --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.WebUI/Web.config b/SportsStoreNew/SportsStore.WebUI/Web.config new file mode 100644 index 0000000..46cd0ec --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/Web.config @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStore.WebUI/packages.config b/SportsStoreNew/SportsStore.WebUI/packages.config new file mode 100644 index 0000000..554b0fa --- /dev/null +++ b/SportsStoreNew/SportsStore.WebUI/packages.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/SportsStoreNew/SportsStoreNew.sln b/SportsStoreNew/SportsStoreNew.sln new file mode 100644 index 0000000..5ecd04e --- /dev/null +++ b/SportsStoreNew/SportsStoreNew.sln @@ -0,0 +1,13 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31410.357 +MinimumVisualStudioVersion = 10.0.40219.1 +Global + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {05608085-3DD8-4E55-AC13-40126E619242} + EndGlobalSection +EndGlobal