Skip to content

Commit 1e8863a

Browse files
committed
init project
1 parent 7ce575e commit 1e8863a

64 files changed

Lines changed: 23502 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎NETCore.MailKit.sln‎

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,43 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.26430.13
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NETCore.MailKit", "NETCore.MailKit\NETCore.MailKit.csproj", "{05B60CE6-E391-4625-8AF0-158A826243EC}"
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{7C024949-45A0-4CBE-A70E-32B93819396B}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "example", "example", "{716AF6BD-9EC2-4489-B4B3-5E6FE59C6A06}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{DA9FC7DA-E56B-4A2E-BC27-89FA74919D08}"
11+
EndProject
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NETCore.MailKit", "src\NETCore.MailKit\NETCore.MailKit.csproj", "{96CC69A4-8F99-4AFD-9534-BE933C8798AC}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NETCore.MailKit.Web", "example\NETCore.MailKit.Web\NETCore.MailKit.Web.csproj", "{060CCE52-A73E-4384-AB4E-A1B546717AEB}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NETCore.MailKit.Tests", "test\NETCore.MailKit.Tests\NETCore.MailKit.Tests.csproj", "{ADEE50A3-4ADF-470F-9F56-071B6351D196}"
717
EndProject
818
Global
919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1020
Debug|Any CPU = Debug|Any CPU
1121
Release|Any CPU = Release|Any CPU
1222
EndGlobalSection
1323
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{05B60CE6-E391-4625-8AF0-158A826243EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{05B60CE6-E391-4625-8AF0-158A826243EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{05B60CE6-E391-4625-8AF0-158A826243EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{05B60CE6-E391-4625-8AF0-158A826243EC}.Release|Any CPU.Build.0 = Release|Any CPU
24+
{96CC69A4-8F99-4AFD-9534-BE933C8798AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{96CC69A4-8F99-4AFD-9534-BE933C8798AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{96CC69A4-8F99-4AFD-9534-BE933C8798AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{96CC69A4-8F99-4AFD-9534-BE933C8798AC}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{060CCE52-A73E-4384-AB4E-A1B546717AEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{060CCE52-A73E-4384-AB4E-A1B546717AEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{060CCE52-A73E-4384-AB4E-A1B546717AEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{060CCE52-A73E-4384-AB4E-A1B546717AEB}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{ADEE50A3-4ADF-470F-9F56-071B6351D196}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{ADEE50A3-4ADF-470F-9F56-071B6351D196}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{ADEE50A3-4ADF-470F-9F56-071B6351D196}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{ADEE50A3-4ADF-470F-9F56-071B6351D196}.Release|Any CPU.Build.0 = Release|Any CPU
1836
EndGlobalSection
1937
GlobalSection(SolutionProperties) = preSolution
2038
HideSolutionNode = FALSE
2139
EndGlobalSection
40+
GlobalSection(NestedProjects) = preSolution
41+
{96CC69A4-8F99-4AFD-9534-BE933C8798AC} = {7C024949-45A0-4CBE-A70E-32B93819396B}
42+
{060CCE52-A73E-4384-AB4E-A1B546717AEB} = {716AF6BD-9EC2-4489-B4B3-5E6FE59C6A06}
43+
{ADEE50A3-4ADF-470F-9F56-071B6351D196} = {DA9FC7DA-E56B-4A2E-BC27-89FA74919D08}
44+
EndGlobalSection
2245
EndGlobal
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "wwwroot/lib"
3+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
7+
namespace NETCore.MailKit.Web.Controllers
8+
{
9+
public class HomeController : Controller
10+
{
11+
public IActionResult Index()
12+
{
13+
return View();
14+
}
15+
16+
public IActionResult About()
17+
{
18+
ViewData["Message"] = "Your application description page.";
19+
20+
return View();
21+
}
22+
23+
public IActionResult Contact()
24+
{
25+
ViewData["Message"] = "Your contact page.";
26+
27+
return View();
28+
}
29+
30+
public IActionResult Error()
31+
{
32+
return View();
33+
}
34+
}
35+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp1.1</TargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup>
8+
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
12+
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
14+
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />
15+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" />
16+
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.2" />
17+
</ItemGroup>
18+
<ItemGroup>
19+
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
20+
</ItemGroup>
21+
22+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore.Hosting;
7+
8+
namespace NETCore.MailKit.Web
9+
{
10+
public class Program
11+
{
12+
public static void Main(string[] args)
13+
{
14+
var host = new WebHostBuilder()
15+
.UseKestrel()
16+
.UseContentRoot(Directory.GetCurrentDirectory())
17+
.UseIISIntegration()
18+
.UseStartup<Startup>()
19+
.UseApplicationInsights()
20+
.Build();
21+
22+
host.Run();
23+
}
24+
}
25+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true,
5+
"iisExpress": {
6+
"applicationUrl": "http://localhost:3272/",
7+
"sslPort": 0
8+
}
9+
},
10+
"profiles": {
11+
"IIS Express": {
12+
"commandName": "IISExpress",
13+
"launchBrowser": true,
14+
"environmentVariables": {
15+
"ASPNETCORE_ENVIRONMENT": "Development"
16+
}
17+
},
18+
"NETCore.MailKit.Web": {
19+
"commandName": "Project",
20+
"launchBrowser": true,
21+
"environmentVariables": {
22+
"ASPNETCORE_ENVIRONMENT": "Development"
23+
},
24+
"applicationUrl": "http://localhost:3273"
25+
}
26+
}
27+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Builder;
6+
using Microsoft.AspNetCore.Hosting;
7+
using Microsoft.Extensions.Configuration;
8+
using Microsoft.Extensions.DependencyInjection;
9+
using Microsoft.Extensions.Logging;
10+
11+
namespace NETCore.MailKit.Web
12+
{
13+
public class Startup
14+
{
15+
public Startup(IHostingEnvironment env)
16+
{
17+
var builder = new ConfigurationBuilder()
18+
.SetBasePath(env.ContentRootPath)
19+
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
20+
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
21+
.AddEnvironmentVariables();
22+
Configuration = builder.Build();
23+
}
24+
25+
public IConfigurationRoot Configuration { get; }
26+
27+
// This method gets called by the runtime. Use this method to add services to the container.
28+
public void ConfigureServices(IServiceCollection services)
29+
{
30+
// Add framework services.
31+
services.AddMvc();
32+
}
33+
34+
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
35+
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
36+
{
37+
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
38+
loggerFactory.AddDebug();
39+
40+
if (env.IsDevelopment())
41+
{
42+
app.UseDeveloperExceptionPage();
43+
app.UseBrowserLink();
44+
}
45+
else
46+
{
47+
app.UseExceptionHandler("/Home/Error");
48+
}
49+
50+
app.UseStaticFiles();
51+
52+
app.UseMvc(routes =>
53+
{
54+
routes.MapRoute(
55+
name: "default",
56+
template: "{controller=Home}/{action=Index}/{id?}");
57+
});
58+
}
59+
}
60+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@{
2+
ViewData["Title"] = "About";
3+
}
4+
<h2>@ViewData["Title"].</h2>
5+
<h3>@ViewData["Message"]</h3>
6+
7+
<p>Use this area to provide additional information.</p>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@{
2+
ViewData["Title"] = "Contact";
3+
}
4+
<h2>@ViewData["Title"].</h2>
5+
<h3>@ViewData["Message"]</h3>
6+
7+
<address>
8+
One Microsoft Way<br />
9+
Redmond, WA 98052-6399<br />
10+
<abbr title="Phone">P:</abbr>
11+
425.555.0100
12+
</address>
13+
14+
<address>
15+
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
16+
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
17+
</address>
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
@{
2+
ViewData["Title"] = "Home Page";
3+
}
4+
5+
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
6+
<ol class="carousel-indicators">
7+
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
8+
<li data-target="#myCarousel" data-slide-to="1"></li>
9+
<li data-target="#myCarousel" data-slide-to="2"></li>
10+
<li data-target="#myCarousel" data-slide-to="3"></li>
11+
</ol>
12+
<div class="carousel-inner" role="listbox">
13+
<div class="item active">
14+
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
15+
<div class="carousel-caption" role="option">
16+
<p>
17+
Learn how to build ASP.NET apps that can run anywhere.
18+
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
19+
Learn More
20+
</a>
21+
</p>
22+
</div>
23+
</div>
24+
<div class="item">
25+
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
26+
<div class="carousel-caption" role="option">
27+
<p>
28+
There are powerful new features in Visual Studio for building modern web apps.
29+
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
30+
Learn More
31+
</a>
32+
</p>
33+
</div>
34+
</div>
35+
<div class="item">
36+
<img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" />
37+
<div class="carousel-caption" role="option">
38+
<p>
39+
Bring in libraries from NuGet, Bower, and npm, and automate tasks using Grunt or Gulp.
40+
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409">
41+
Learn More
42+
</a>
43+
</p>
44+
</div>
45+
</div>
46+
<div class="item">
47+
<img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" />
48+
<div class="carousel-caption" role="option">
49+
<p>
50+
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
51+
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
52+
Learn More
53+
</a>
54+
</p>
55+
</div>
56+
</div>
57+
</div>
58+
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
59+
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
60+
<span class="sr-only">Previous</span>
61+
</a>
62+
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
63+
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
64+
<span class="sr-only">Next</span>
65+
</a>
66+
</div>
67+
68+
<div class="row">
69+
<div class="col-md-3">
70+
<h2>Application uses</h2>
71+
<ul>
72+
<li>Sample pages using ASP.NET Core MVC</li>
73+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518004">Bower</a> for managing client-side libraries</li>
74+
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
75+
</ul>
76+
</div>
77+
<div class="col-md-3">
78+
<h2>How to</h2>
79+
<ul>
80+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
81+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
82+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
83+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
84+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li>
85+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
86+
</ul>
87+
</div>
88+
<div class="col-md-3">
89+
<h2>Overview</h2>
90+
<ul>
91+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
92+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
93+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
94+
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
95+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
96+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
97+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
98+
</ul>
99+
</div>
100+
<div class="col-md-3">
101+
<h2>Run & Deploy</h2>
102+
<ul>
103+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
104+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
105+
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li>
106+
</ul>
107+
</div>
108+
</div>

0 commit comments

Comments
 (0)