Skip to content

Commit c4bc70a

Browse files
committed
Added NuGet packages
1 parent 1ec14a5 commit c4bc70a

8 files changed

+37
-15
lines changed

Lib/ClientDependency.Core.Mvc.dll

23 KB
Binary file not shown.

Lib/ClientDependency.Core.dll

143 KB
Binary file not shown.

Lib/System.Web.Mvc.dll

553 KB
Binary file not shown.

Lib/System.Web.WebPages.dll

207 KB
Binary file not shown.

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This example shows how that works in most cases.
55

66
Please keep in mind our company has no access to Sitecore, so it's not tested on that platform. In theory it should however work just fine given all the dependencies below are there. Pull requests fixing this issue would be welcome!
77

8+
#NuGet
9+
You can get MvcApp from NuGet, it depends on uCommerce.Binaries.
10+
11+
PM> Install-Package uCommerce.MvcApp
12+
813
#Usage
914
In order to use MvcApp, the only real required step would be registering a Mvc Route.
1015

@@ -36,16 +41,12 @@ From then on, you have multiple ways of utilizing Mvc in your App, please browse
3641
#Notes
3742
- Be sure to adjust the `deploypath` in the App.config before rebuilding.
3843
- The post-build event currently only works for Umbraco.
39-
- The following libraries are required, we use an internal NuGet server for these. However, most can also be retrieved from an Umbraco + uCommerce installation, simply drop them in the Lib-folder and you should be ready to go:
44+
- The required uCommerce Binaries (uCommerce.Binaries) and the MvcApp (uCommerce.MvcApp) itself are retrieved from NuGet.
45+
- The following libraries are required and could be retrieved from NuGet, but we don't really need all the other stuff that comes with it. We got these DLL's straight from an Umbraco and uCommerce installation and include them for convenience:
4046
- ClientDependency.Core.dll
4147
- ClientDependency.Core.Mvc.dll
42-
- MvcApp.dll (Install MvcApp from the uCommerce App Store for this one)
4348
- System.Web.Mvc.dll
4449
- System.Web.WebPages.dll
45-
- UCommerce.dll
46-
- UCommerce.Infrastructure.dll
47-
- UCommerce.Pipelines.dll
48-
- UCommerce.Presentation.dll
4950

5051
#Recommendations
5152
Even though we provide quite a few ways to build apps and extensions with MvcApp, we recommend to do as much as possible client-side (using something like Angular.js). This prevents unnecessary page refreshes giving a smooth experience to the user, while still leveraging the power of Controllers through Ajax calls. A great starting point for this is the `ExampleController`-method, which is a blank page which has all uCommerce dependencies injected (including Angular.js).

Src/MvcAppExample.Web/Web.config

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3+
<runtime>
4+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
5+
<dependentAssembly>
6+
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
7+
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
8+
</dependentAssembly>
9+
</assemblyBinding>
10+
</runtime>
311
</configuration>

Src/MvcAppExample/MvcAppExample.csproj

+17-9
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
<Compile Include="uCommerce\RegisterMvcRouteTask.cs" />
5050
</ItemGroup>
5151
<ItemGroup>
52-
<Reference Include="MvcApp">
53-
<HintPath>..\..\Lib\MvcApp.dll</HintPath>
52+
<Reference Include="MvcApp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
53+
<HintPath>..\..\packages\uCommerce.MvcApp.1.0.0\lib\MvcApp.dll</HintPath>
54+
<Private>True</Private>
5455
</Reference>
5556
<Reference Include="System" />
5657
<Reference Include="System.Web" />
@@ -59,22 +60,29 @@
5960
<HintPath>..\..\Lib\System.Web.Mvc.dll</HintPath>
6061
</Reference>
6162
<Reference Include="UCommerce, Version=6.9.0.15323, Culture=neutral, processorArchitecture=MSIL">
62-
<HintPath>..\..\Lib\UCommerce.dll</HintPath>
63+
<HintPath>..\..\packages\uCommerce.Binaries.7.0.0.0\lib\UCommerce.dll</HintPath>
64+
<Private>True</Private>
65+
</Reference>
66+
<Reference Include="UCommerce.Infrastructure, Version=7.0.0.16029, Culture=neutral, processorArchitecture=MSIL">
67+
<HintPath>..\..\packages\uCommerce.Binaries.7.0.0.0\lib\UCommerce.Infrastructure.dll</HintPath>
6368
<Private>True</Private>
6469
</Reference>
65-
<Reference Include="UCommerce.Infrastructure, Version=6.9.0.15323, Culture=neutral, processorArchitecture=MSIL">
66-
<HintPath>..\..\Lib\UCommerce.Infrastructure.dll</HintPath>
70+
<Reference Include="UCommerce.Pipelines, Version=7.0.0.16029, Culture=neutral, processorArchitecture=MSIL">
71+
<HintPath>..\..\packages\uCommerce.Binaries.7.0.0.0\lib\UCommerce.Pipelines.dll</HintPath>
6772
<Private>True</Private>
6873
</Reference>
69-
<Reference Include="UCommerce.Pipelines, Version=6.9.0.15323, Culture=neutral, processorArchitecture=MSIL">
70-
<HintPath>..\..\Lib\UCommerce.Pipelines.dll</HintPath>
74+
<Reference Include="UCommerce.Presentation, Version=7.0.0.16029, Culture=neutral, processorArchitecture=MSIL">
75+
<HintPath>..\..\packages\uCommerce.Binaries.7.0.0.0\lib\UCommerce.Presentation.dll</HintPath>
7176
<Private>True</Private>
7277
</Reference>
73-
<Reference Include="UCommerce.Presentation, Version=6.9.0.15323, Culture=neutral, processorArchitecture=MSIL">
74-
<HintPath>..\..\Lib\UCommerce.Presentation.dll</HintPath>
78+
<Reference Include="UCommerce.Web.Api, Version=7.0.0.16029, Culture=neutral, processorArchitecture=MSIL">
79+
<HintPath>..\..\packages\uCommerce.Binaries.7.0.0.0\lib\UCommerce.Web.Api.dll</HintPath>
7580
<Private>True</Private>
7681
</Reference>
7782
</ItemGroup>
83+
<ItemGroup>
84+
<None Include="packages.config" />
85+
</ItemGroup>
7886
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7987
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8088
Other similar extension points exist, see Microsoft.Common.targets.

Src/MvcAppExample/packages.config

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="uCommerce.Binaries" version="7.0.0.0" targetFramework="net452" developmentDependency="true" />
4+
<package id="uCommerce.MvcApp" version="1.0.0.1" targetFramework="net452" developmentDependency="true" />
5+
</packages>

0 commit comments

Comments
 (0)