Skip to content

Commit 9edaa09

Browse files
committed
Example cleanup
1 parent 8a2456d commit 9edaa09

15 files changed

+24
-44
lines changed

Examples/AspDotNet/AspDotNet.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.28803.452
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KY.Generator.Examples.AspDotNet", "WebApi\KY.Generator.Examples.AspDotNet.csproj", "{0ED8BA63-AE0A-4368-98D2-B4CA0364E514}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KY.Generator.Examples.AspDotNet.WebApi", "WebApi\KY.Generator.Examples.AspDotNet.WebApi.csproj", "{0ED8BA63-AE0A-4368-98D2-B4CA0364E514}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KY.Generator.Examples.AspDotNetCore", "CoreApi\KY.Generator.Examples.AspDotNetCore.csproj", "{4CDB873A-0125-4759-85CC-A8FF0D860D58}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KY.Generator.Examples.AspDotNet.WebApi.Core", "WebApi.Core\KY.Generator.Examples.AspDotNet.WebApi.Core.csproj", "{EFCEEBDD-7750-4F2C-B102-E1517DFEF599}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -17,10 +17,10 @@ Global
1717
{0ED8BA63-AE0A-4368-98D2-B4CA0364E514}.Debug|Any CPU.Build.0 = Debug|Any CPU
1818
{0ED8BA63-AE0A-4368-98D2-B4CA0364E514}.Release|Any CPU.ActiveCfg = Release|Any CPU
1919
{0ED8BA63-AE0A-4368-98D2-B4CA0364E514}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{4CDB873A-0125-4759-85CC-A8FF0D860D58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{4CDB873A-0125-4759-85CC-A8FF0D860D58}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{4CDB873A-0125-4759-85CC-A8FF0D860D58}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{4CDB873A-0125-4759-85CC-A8FF0D860D58}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{EFCEEBDD-7750-4F2C-B102-E1517DFEF599}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{EFCEEBDD-7750-4F2C-B102-E1517DFEF599}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{EFCEEBDD-7750-4F2C-B102-E1517DFEF599}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{EFCEEBDD-7750-4F2C-B102-E1517DFEF599}.Release|Any CPU.Build.0 = Release|Any CPU
2424
EndGlobalSection
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE

Examples/AspDotNet/CoreApi/Controllers/ValuesController.cs renamed to Examples/AspDotNet/WebApi.Core/Controllers/ValuesController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System.Collections.Generic;
2-
using KY.Generator.Examples.AspDotNetCore.Models;
2+
using KY.Generator.Examples.AspDotNet.Models;
33
using Microsoft.AspNetCore.Mvc;
44

5-
namespace KY.Generator.Examples.AspDotNetCore.Controllers
5+
namespace KY.Generator.Examples.AspDotNet.Controllers
66
{
77
[Route("api/[controller]")]
88
[ApiController]

Examples/AspDotNet/CoreApi/KY.Generator.Examples.AspDotNetCore.csproj renamed to Examples/AspDotNet/WebApi.Core/KY.Generator.Examples.AspDotNet.WebApi.Core.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
<TypeScriptToolsVersion>3.3</TypeScriptToolsVersion>
7+
<AssemblyName>KY.Generator.Examples.AspDotNet</AssemblyName>
8+
<RootNamespace>KY.Generator.Examples.AspDotNet</RootNamespace>
79
</PropertyGroup>
810

911
<ItemGroup>
10-
<PackageReference Include="KY.Generator.CLI.Core" Version="3.4.1" />
12+
<PackageReference Include="KY.Generator.CLI.Core" Version="4.0.0-rc.2" />
1113
<PackageReference Include="Microsoft.AspNetCore.App" />
1214
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
1315
</ItemGroup>

Examples/AspDotNet/CoreApi/Models/Value.cs renamed to Examples/AspDotNet/WebApi.Core/Models/Value.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace KY.Generator.Examples.AspDotNetCore.Models
1+
namespace KY.Generator.Examples.AspDotNet.Models
22
{
33
public class Value
44
{

Examples/AspDotNet/CoreApi/Program.cs renamed to Examples/AspDotNet/WebApi.Core/Program.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
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;
1+
using Microsoft.AspNetCore;
72
using Microsoft.AspNetCore.Hosting;
8-
using Microsoft.Extensions.Configuration;
9-
using Microsoft.Extensions.Logging;
103

11-
namespace KY.Generator.Examples.AspDotNetCore
4+
namespace KY.Generator.Examples.AspDotNet
125
{
136
public class Program
147
{
File renamed without changes.
File renamed without changes.

Examples/AspDotNet/CoreApi/Startup.cs renamed to Examples/AspDotNet/WebApi.Core/Startup.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.AspNetCore.Builder;
1+
using Microsoft.AspNetCore.Builder;
62
using Microsoft.AspNetCore.Hosting;
7-
using Microsoft.AspNetCore.HttpsPolicy;
83
using Microsoft.AspNetCore.Mvc;
94
using Microsoft.Extensions.Configuration;
105
using Microsoft.Extensions.DependencyInjection;
11-
using Microsoft.Extensions.Logging;
12-
using Microsoft.Extensions.Options;
136

14-
namespace KY.Generator.Examples.AspDotNetCore
7+
namespace KY.Generator.Examples.AspDotNet
158
{
169
public class Startup
1710
{
1811
public Startup(IConfiguration configuration)
1912
{
20-
Configuration = configuration;
13+
this.Configuration = configuration;
2114
}
2215

2316
public IConfiguration Configuration { get; }
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)