Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Jul 31, 2017
0 parents commit e55071a
Show file tree
Hide file tree
Showing 24 changed files with 684 additions and 0 deletions.
187 changes: 187 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates
*.sln.ide/

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
app.publish/
[Bb]in/
[Oo]bj/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
project.lock.json

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
*.Cache
!Orchard.Environment.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store

# =========================
# Orchard specifics
# =========================

App_Data/
glob:*.user
*.patch
*.hg
build/
/buildazure
/buildtasks
/artifacts
site/
*.sln.cache
log.xml
profiling/
*.orig
.vs/
#.vscode/
.build/
.testPublish/

nuget.exe
.nuget/

#enable all /lib artifacts
!lib/*/*.*

#exclude node modules
node_modules/*

wwwroot
28 changes: 28 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright (c) .NET Foundation. All rights reserved.
BSD 3-Clause License - https://opensource.org/licenses/BSD-3-Clause

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of Orchard nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

43 changes: 43 additions & 0 deletions ModularApplication.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26615.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModularApplication", "ModularApplication\ModularApplication.csproj", "{18306969-7E87-4207-A4F0-36968EF2C580}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Module1", "Module1\Module1.csproj", "{865BB2F1-9F18-4A1F-951B-78FBDC75EA4E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Module2", "Module2\Module2.csproj", "{4BB6F881-9BA8-47D6-BD48-605335FB397A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiTenantApplication", "MultiTenantApplication\MultiTenantApplication.csproj", "{828028EC-CBBD-4BA0-9E95-D49BF72F103F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{18306969-7E87-4207-A4F0-36968EF2C580}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18306969-7E87-4207-A4F0-36968EF2C580}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18306969-7E87-4207-A4F0-36968EF2C580}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18306969-7E87-4207-A4F0-36968EF2C580}.Release|Any CPU.Build.0 = Release|Any CPU
{865BB2F1-9F18-4A1F-951B-78FBDC75EA4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{865BB2F1-9F18-4A1F-951B-78FBDC75EA4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{865BB2F1-9F18-4A1F-951B-78FBDC75EA4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{865BB2F1-9F18-4A1F-951B-78FBDC75EA4E}.Release|Any CPU.Build.0 = Release|Any CPU
{4BB6F881-9BA8-47D6-BD48-605335FB397A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4BB6F881-9BA8-47D6-BD48-605335FB397A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4BB6F881-9BA8-47D6-BD48-605335FB397A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4BB6F881-9BA8-47D6-BD48-605335FB397A}.Release|Any CPU.Build.0 = Release|Any CPU
{828028EC-CBBD-4BA0-9E95-D49BF72F103F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{828028EC-CBBD-4BA0-9E95-D49BF72F103F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{828028EC-CBBD-4BA0-9E95-D49BF72F103F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{828028EC-CBBD-4BA0-9E95-D49BF72F103F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9A8C2285-A6C7-4B4F-8193-B4917A8E81BF}
EndGlobalSection
EndGlobal
22 changes: 22 additions & 0 deletions ModularApplication/ModularApplication.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
<PackageReference Include="OrchardCore.Modules.Mvc" Version="2.0.0-preview-2649" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Module1\Module1.csproj" />
<ProjectReference Include="..\Module2\Module2.csproj" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions ModularApplication/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;

namespace ModularApplication
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseApplicationInsights()
.Build();

host.Run();
}
}
}
27 changes: 27 additions & 0 deletions ModularApplication/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:52995/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ModularApplication": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:52996/"
}
}
}
30 changes: 30 additions & 0 deletions ModularApplication/Startup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace ModularApplication
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddModules();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole();

if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}

app.UseModules();
}
}
}
Loading

0 comments on commit e55071a

Please sign in to comment.