Skip to content

Commit 283237e

Browse files
committed
Fix build error.
1 parent 3d8a8fa commit 283237e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎example/NETCore.MailKit.Web/NETCore.MailKit.Web.csproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<ItemGroup>
1414
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" />
1515
</ItemGroup>
16+
<ItemGroup>
17+
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.14.0" />
18+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.14.0" />
19+
</ItemGroup>
1620
<ItemGroup>
1721
<ProjectReference Include="..\..\src\NETCore.MailKit\NETCore.MailKit.csproj" />
1822
</ItemGroup>

‎example/NETCore.MailKit.Web/Startup.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ public Startup(IHostEnvironment env)
3838
// This method gets called by the runtime. Use this method to add services to the container.
3939
public void ConfigureServices(IServiceCollection services)
4040
{
41+
services.AddLogging(loggingBuilder =>
42+
{
43+
loggingBuilder.AddConsole();
44+
loggingBuilder.AddDebug();
45+
});
46+
4147
// Add framework services.
42-
services.AddMvc();
48+
services.AddMvc(x => x.EnableEndpointRouting = false);
4349

4450
//Add MailKit
4551
services.AddMailKit(optionBuilder =>

0 commit comments

Comments
 (0)