Skip to content

Commit

Permalink
Add solution files and fix OpenApi references in Startup.cs (#14061)
Browse files Browse the repository at this point in the history
* Add solution files and fix OpenApi references in Startup.cs

* Add solution files
  • Loading branch information
scottaddie committed Aug 28, 2019
1 parent 1e819e5 commit 42f66ca
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 4 deletions.
31 changes: 31 additions & 0 deletions aspnetcore/web-api/action-return-types/samples/WebApiSample.21.sln
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.62
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApiSample.Api.21", "WebApiSample.Api.21\WebApiSample.Api.21.csproj", "{CB07EE6D-EB68-404F-A01D-823CAE6C5329}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApiSample.DataAccess", "WebApiSample.DataAccess\WebApiSample.DataAccess.csproj", "{3FF6FAC0-03C8-44BD-9E75-1A1560744F68}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CB07EE6D-EB68-404F-A01D-823CAE6C5329}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB07EE6D-EB68-404F-A01D-823CAE6C5329}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB07EE6D-EB68-404F-A01D-823CAE6C5329}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB07EE6D-EB68-404F-A01D-823CAE6C5329}.Release|Any CPU.Build.0 = Release|Any CPU
{3FF6FAC0-03C8-44BD-9E75-1A1560744F68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FF6FAC0-03C8-44BD-9E75-1A1560744F68}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FF6FAC0-03C8-44BD-9E75-1A1560744F68}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FF6FAC0-03C8-44BD-9E75-1A1560744F68}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {86BA2C9D-B1DC-4E3E-AF85-D26A951147BF}
EndGlobalSection
EndGlobal
Expand Up @@ -4,7 +4,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;
using Microsoft.OpenApi.Models;
using System;
using System.IO;
using System.Reflection;
Expand Down Expand Up @@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)

services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new Info
c.SwaggerDoc("v1", new OpenApiInfo
{
Version = "v1",
Title = "Products API",
Expand Down
Expand Up @@ -3,7 +3,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;
using Microsoft.OpenApi.Models;
using System;
using System.IO;
using System.Reflection;
Expand Down Expand Up @@ -32,7 +32,7 @@ public void ConfigureServices(IServiceCollection services)

services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new Info
c.SwaggerDoc("v1", new OpenApiInfo
{
Version = "v1",
Title = "Products API",
Expand Down
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.62
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApiSample.Api.Pre21", "WebApiSample.Api.Pre21\WebApiSample.Api.Pre21.csproj", "{B43AAD98-4545-4F0A-99F7-1CA06B53C19E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApiSample.DataAccess", "WebApiSample.DataAccess\WebApiSample.DataAccess.csproj", "{3D2AE7CD-D359-4B12-A25D-09F9E1ED6EA0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B43AAD98-4545-4F0A-99F7-1CA06B53C19E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B43AAD98-4545-4F0A-99F7-1CA06B53C19E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B43AAD98-4545-4F0A-99F7-1CA06B53C19E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B43AAD98-4545-4F0A-99F7-1CA06B53C19E}.Release|Any CPU.Build.0 = Release|Any CPU
{3D2AE7CD-D359-4B12-A25D-09F9E1ED6EA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D2AE7CD-D359-4B12-A25D-09F9E1ED6EA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D2AE7CD-D359-4B12-A25D-09F9E1ED6EA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D2AE7CD-D359-4B12-A25D-09F9E1ED6EA0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DBAD3EED-201A-431B-ACF5-14C724146B8D}
EndGlobalSection
EndGlobal

0 comments on commit 42f66ca

Please sign in to comment.