This repository was archived by the owner on Nov 6, 2023. It is now read-only.
File tree 3 files changed +23
-11
lines changed
3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp2.2</TargetFramework >
5
-
4
+ <TargetFramework >netcoreapp3.0</TargetFramework >
6
5
<IsPackable >false</IsPackable >
7
-
8
6
<RootNamespace >VueCliMiddleware</RootNamespace >
9
7
</PropertyGroup >
10
8
11
9
<ItemGroup >
12
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9.0 " />
10
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.1.1 " />
13
11
<PackageReference Include =" MSTest.TestAdapter" Version =" 1.4.0" />
14
12
<PackageReference Include =" MSTest.TestFramework" Version =" 1.4.0" />
15
13
</ItemGroup >
Original file line number Diff line number Diff line change 13
13
using System . IO ;
14
14
using System . Text ;
15
15
using System . Text . RegularExpressions ;
16
+ using System . Threading . Tasks ;
17
+ using Microsoft . AspNetCore . Builder ;
18
+ using Microsoft . Extensions . DependencyInjection ;
19
+ using Microsoft . Extensions . Logging ;
16
20
17
21
18
22
[ assembly: System . Runtime . CompilerServices . InternalsVisibleTo ( "VueCliMiddleware.Tests" ) ]
@@ -26,10 +30,15 @@ public static ILogger GetOrCreateLogger(
26
30
{
27
31
// If the DI system gives us a logger, use it. Otherwise, set up a default one.
28
32
var loggerFactory = appBuilder . ApplicationServices . GetService < ILoggerFactory > ( ) ;
29
- var logger = loggerFactory != null
30
- ? loggerFactory . CreateLogger ( logCategoryName )
31
- : new ConsoleLogger ( logCategoryName , null , false ) ;
32
- return logger ;
33
+ if ( loggerFactory == null )
34
+ {
35
+ loggerFactory = LoggerFactory . Create ( builder =>
36
+ {
37
+ builder . AddConsole ( ) ;
38
+ } ) ;
39
+ }
40
+
41
+ return loggerFactory . CreateLogger ( logCategoryName ) ;
33
42
}
34
43
}
35
44
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<Description >Helpers for building single-page applications on ASP.NET MVC Core using Vue Cli.</Description >
5
- <TargetFramework >netstandard2 .0</TargetFramework >
5
+ <TargetFramework >netcoreapp3 .0</TargetFramework >
6
6
7
7
<Title >VueCliMiddleware</Title >
8
- <VersionPrefix >2.2.1</VersionPrefix >
8
+ <VersionPrefix >3.0.0</VersionPrefix >
9
+ <VersionSuffix >preview6</VersionSuffix >
9
10
<LangVersion >Latest</LangVersion >
10
11
<Authors >EEParker</Authors >
11
12
<RepositoryUrl >https://github.com/EEParker/aspnetcore-vueclimiddleware.git</RepositoryUrl >
14
15
</PropertyGroup >
15
16
16
17
<ItemGroup >
17
- <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.2.0" />
18
+ <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 3.0.0-preview6.19307.2" />
19
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.0.0-preview6.19304.6" />
20
+ </ItemGroup >
21
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.0' " >
22
+ <FrameworkReference Include =" Microsoft.AspNetCore.App" />
18
23
</ItemGroup >
19
24
20
25
</Project >
You can’t perform that action at this time.
0 commit comments