Skip to content

Commit caccd85

Browse files
authored
Merge pull request #306 from microsoft/feature/net7
- upgrades to dotnet 7
2 parents d1c860a + 5de5ad6 commit caccd85

File tree

15 files changed

+24
-56
lines changed

15 files changed

+24
-56
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ stages:
3333
steps:
3434

3535
- task: UseDotNet@2
36-
displayName: 'Use .NET 6'
36+
displayName: 'Use .NET 2' # needed for ESRP signing
3737
inputs:
38-
version: 6.x
38+
version: 2.x
39+
40+
- task: UseDotNet@2
41+
displayName: 'Use .NET 7'
42+
inputs:
43+
version: 7.x
3944

4045
- task: PoliCheck@1
4146
displayName: 'Run PoliCheck "/src"'

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/[email protected]
1818
with:
19-
dotnet-version: 6.0.x
19+
dotnet-version: 7.0.x
2020

2121
- name: Data gatherer
2222
id: data_gatherer

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup .NET
4545
uses: actions/[email protected]
4646
with:
47-
dotnet-version: 6.0.x
47+
dotnet-version: 7.0.x
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "build",
9-
"program": "${workspaceFolder}/tool/UpdateDocs/bin/Debug/net6.0/UpdateDocs.dll",
10-
"cwd": "${workspaceFolder}/tool/UpdateDocs/bin/Debug/net6.0",
9+
"program": "${workspaceFolder}/tool/UpdateDocs/bin/Debug/net7.0/UpdateDocs.dll",
10+
"cwd": "${workspaceFolder}/tool/UpdateDocs/bin/Debug/net7.0",
1111
"console": "internalConsole",
1212
"stopAtEntry": false
1313
},

src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747
<PrivateAssets>all</PrivateAssets>
4848
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4949
</PackageReference>
50-
<PackageReference Include="Microsoft.OData.Edm" Version="7.10.0" />
51-
<PackageReference Include="Microsoft.OpenApi" Version="1.4.1" />
50+
<PackageReference Include="Microsoft.OData.Edm" Version="7.12.5" />
51+
<PackageReference Include="Microsoft.OpenApi" Version="1.4.3" />
5252
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
5353
<PrivateAssets>all</PrivateAssets>
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
</PackageReference>
5656
</ItemGroup>
5757

5858
<ItemGroup>
59-
<None Include="icon.png" Pack="true" PackagePath="\"/>
59+
<None Include="icon.png" Pack="true" PackagePath="\" />
6060
<Compile Update="Properties\SRResource.Designer.cs">
6161
<DesignTime>True</DesignTime>
6262
<AutoGen>True</AutoGen>

src/OoasGui/OoasGui.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0-windows</TargetFramework>
3+
<TargetFramework>net7.0-windows</TargetFramework>
44
<OutputType>WinExe</OutputType>
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66
<UseWindowsForms>true</UseWindowsForms>

src/OoasUtil/OoasUtil.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

test/Microsoft.OpenAPI.OData.Reader.Tests/Common/EdmModelHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public void MultipleInheritanceEdmModelMetadataDocumentTest()
358358
<Property Name=""Name"" Type=""Edm.String"" Nullable=""false"" />
359359
</EntityType>
360360
<EntityType Name=""Horse"" BaseType=""NS.Animal"" OpenType=""true"">
361-
<Property Name=""Height"" Type=""Edm.Decimal"" Nullable=""false"" />
361+
<Property Name=""Height"" Type=""Edm.Decimal"" Nullable=""false"" Scale=""Variable"" />
362362
</EntityType>
363363
<ComplexType Name=""Plant"" Abstract=""true"" OpenType=""true"">
364364
<Property Name=""Color"" Type=""NS.Color"" Nullable=""false"" />
@@ -374,7 +374,7 @@ public void MultipleInheritanceEdmModelMetadataDocumentTest()
374374
<Property Name=""Name"" Type=""Edm.String"" Nullable=""false"" />
375375
</ComplexType>
376376
<ComplexType Name=""Tree"" BaseType=""NS.LandPlant"" OpenType=""true"">
377-
<Property Name=""Price"" Type=""Edm.Decimal"" Nullable=""false"" />
377+
<Property Name=""Price"" Type=""Edm.Decimal"" Nullable=""false"" Scale=""Variable"" />
378378
</ComplexType>
379379
<ComplexType Name=""Flower"" BaseType=""NS.LandPlant"" OpenType=""true"">
380380
<Property Name=""Height"" Type=""Edm.Double"" Nullable=""false"" />

test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema()
493493
""type"": ""object"",
494494
""properties"": {
495495
""Price"": {
496-
""multipleOf"": 1,
497496
""oneOf"": [
498497
{
499498
""type"": ""number"",

test/Microsoft.OpenAPI.OData.Reader.Tests/Microsoft.OpenAPI.OData.Reader.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<AssemblyName>Microsoft.OpenApi.OData.Reader.Tests</AssemblyName>
55
<RootNamespace>Microsoft.OpenApi.OData.Reader.Tests</RootNamespace>
6-
<TargetFrameworks>net6.0</TargetFrameworks>
6+
<TargetFrameworks>net7.0</TargetFrameworks>
77
<LangVersion>latest</LangVersion>
88
<SignAssembly>true</SignAssembly>
99
<AssemblyOriginatorKeyFile>..\..\tool\Microsoft.OpenApi.OData.snk</AssemblyOriginatorKeyFile>
@@ -62,10 +62,10 @@
6262
</ItemGroup>
6363

6464
<ItemGroup>
65-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
66-
<PackageReference Include="Microsoft.OpenApi" Version="1.4.1" />
67-
<PackageReference Include="xunit" Version="2.4.1" />
68-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
65+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
66+
<PackageReference Include="Microsoft.OpenApi" Version="1.4.3" />
67+
<PackageReference Include="xunit" Version="2.4.2" />
68+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
6969
<PrivateAssets>all</PrivateAssets>
7070
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7171
</PackageReference>

0 commit comments

Comments
 (0)