Skip to content

Commit 93ff276

Browse files
Updates for 7.0.0 rc.1 (#21)
* Update for 7.0.0-rc.1 - Centralize & update package versions - Update global.json - Update code where nullability annotations have changed - Change to an inline error handling request delegate - Update to use new problem details service in 7.0 - Add WithOpenApi() & infer swagger doc servers - Added IFormFileCollection example
1 parent 2175718 commit 93ff276

15 files changed

+411
-285
lines changed

Directory.Packages.props

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0-rc.1.22427.2" />
7+
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.0-rc.1.22427.2" />
8+
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0-rc.1.22427.2" />
9+
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="7.0.0-rc.1.22427.2" />
10+
<PackageVersion Include="Microsoft.Extensions.ApiDescription.Server" Version="7.0.0-rc.1.22427.2" />
11+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0-rc.1.22426.7" />
12+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0-rc.1.22426.7" />
13+
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0-rc.1.22426.7" />
14+
<PackageVersion Include="Microsoft.Data.Sqlite" Version="7.0.0-rc.1.22426.7" />
15+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
16+
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.4.0" />
17+
<PackageVersion Include="MinimalApis.Extensions" Version="0.7.2-pre.20220906.32" />
18+
<PackageVersion Include="Dapper" Version="2.0.123" />
19+
<PackageVersion Include="xunit" Version="2.4.2" />
20+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
21+
<PackageVersion Include="coverlet.collector" Version="3.1.2" />
22+
</ItemGroup>
23+
</Project>

MinimalApiPlayground.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ VisualStudioVersion = 17.0.31421.11
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{36DE0A39-6238-45C0-8931-3BB3039789DF}"
77
ProjectSection(SolutionItems) = preProject
8+
Directory.Packages.props = Directory.Packages.props
89
global.json = global.json
910
nuget.config = nuget.config
1011
EndProjectSection
@@ -26,7 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
2627
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
2728
EndProjectSection
2829
EndProject
29-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalApiPlayground.Tests", "tests\MinimalApiPlayground.Tests\MinimalApiPlayground.Tests.csproj", "{1643B8F9-E75F-4A9D-BF0B-4321C289D023}"
30+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MinimalApiPlayground.Tests", "tests\MinimalApiPlayground.Tests\MinimalApiPlayground.Tests.csproj", "{1643B8F9-E75F-4A9D-BF0B-4321C289D023}"
3031
EndProject
3132
Global
3233
GlobalSection(SolutionConfigurationPlatforms) = preSolution

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.100-preview.6.22352.1",
3+
"version": "7.0.100-rc.1.22431.12",
44
"rollForward": "feature",
55
"allowPrerelease": true
66
}

nuget.config

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3+
34
<packageSources>
45
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
56
<clear />
6-
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
7-
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
7+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
8+
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
89
</packageSources>
10+
11+
<packageSourceMapping>
12+
<!-- key value for <packageSource> should match key values from <packageSources> element -->
13+
<packageSource key="nuget.org">
14+
<package pattern="*" />
15+
<package pattern="System.*" />
16+
<package pattern="Microsoft.*" />
17+
</packageSource>
18+
<packageSource key="dotnet7">
19+
<package pattern="System.*" />
20+
<package pattern="Microsoft.*" />
21+
</packageSource>
22+
</packageSourceMapping>
23+
24+
<disabledPackageSources>
25+
<add key="dotnet7" value="true" />
26+
</disabledPackageSources>
927
</configuration>

src/MinimalApiPlayground/MinimalApiPlayground.csproj

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<LangVersion>preview</LangVersion>
7+
<UserSecretsId>bad95a80-c6a0-428a-b37c-f899792fa8d3</UserSecretsId>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0-preview.6.22329.4" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0-preview.6.22329.4">
11+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
12+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">
1315
<PrivateAssets>all</PrivateAssets>
1416
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1517
</PackageReference>
16-
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.0-preview.6.22330.3" />
17-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
18-
<PackageReference Include="MinimalApis.Extensions" Version="0.7.1-pre.20220712.30" />
18+
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" />
19+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" />
20+
<PackageReference Include="Swashbuckle.AspNetCore" />
21+
<PackageReference Include="MinimalApis.Extensions" />
1922
</ItemGroup>
2023

2124
<ItemGroup>

0 commit comments

Comments
 (0)