Skip to content

Commit a040d26

Browse files
authored
Restier 1.2 RTM Release (#773)
* First pass * Index page. * Pulling in legacy docs. * More doc updates * Partway to build fixes * Builds and tests work now * .NET 10 final updates MSTest 4 crap handled All tests pass
1 parent 4ce8ec8 commit a040d26

294 files changed

Lines changed: 20274 additions & 595 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.local.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"mcp__Mintlify__SearchMintlify",
5+
"Bash(dotnet:*)",
6+
"Bash(ls:*)",
7+
"Bash(cd:*)"
8+
],
9+
"deny": [],
10+
"ask": []
11+
}
12+
}

src/Directory.Build.props

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<IsSampleProject Condition="$(MSBuildProjectName.ToLower().Contains('.samples.'))">true</IsSampleProject>
88
<IsTemplateProject Condition="$(MSBuildProjectName.ToLower().Contains('.templates.'))">true</IsTemplateProject>
99
<IsTemplatePackageProject Condition="$(MSBuildProjectName.ToLower().Contains('.templates.package'))">true</IsTemplatePackageProject>
10-
<IsNetCore Condition=" '$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net8.0' ">true</IsNetCore>
10+
<IsNetCore Condition="'$(TargetFramework)' != '' AND !$([System.String]::new('$(TargetFramework)').StartsWith('net4'))">true</IsNetCore>
1111
<IsPrimaryProject Condition=" '$(IsBenchmarkProject)' != 'true' And '$(IsTestProject)' != 'true' And '$(IsTestAssetProject)' != 'true' And '$(IsSampleProject)' != 'true' ">true</IsPrimaryProject>
1212
<IncludeReadmeFile Condition="Exists('$(MSBuildProjectDirectory)\readme.md')">true</IncludeReadmeFile>
1313

@@ -83,8 +83,17 @@
8383

8484
</PropertyGroup>
8585

86+
<!-- Base settings for all test projects -->
8687
<PropertyGroup Condition=" $(IsTestProject) == 'true' ">
8788
<NoWarn>$(NoWarn);CA1001;CA1031;CA1062;CA1301;CA1303;AC1307;CA1707;CA1716;CA1801;CA1806;CA1819;CA1822;CA1825;CA2000;CA2007;CA2227;CA2234</NoWarn>
89+
<IsPackable>false</IsPackable>
90+
</PropertyGroup>
91+
92+
<!-- Use VSTest for all test projects to support both net48 and modern .NET in the same test run.
93+
MSTest 4.x with EnableMSTestRunner=true would enable Microsoft.Testing.Platform,
94+
but that conflicts with net48 projects which cannot use MTP. -->
95+
<PropertyGroup Condition=" $(IsTestProject) == 'true' ">
96+
<EnableMSTestRunner>false</EnableMSTestRunner>
8897
</PropertyGroup>
8998

9099
<PropertyGroup Condition=" $(IsSampleProject) == 'true' ">
@@ -103,15 +112,22 @@
103112

104113
<ItemGroup Condition=" $(IsTestProject) != 'true' AND $(IsSampleProject) != 'true'">
105114
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.*" PrivateAssets="All" />
106-
107115
<InternalsVisibleTo Include="$(AssemblyName.Replace('Microsoft.Restier.', 'Microsoft.Restier.Tests.')), $(StrongNamePublicKey)" />
108116
</ItemGroup>
109117

110118
<ItemGroup Condition=" $(IsTestProject) == 'true' and $(IsSampleProject) != 'true'">
111119
<PackageReference Include="coverlet.collector" Version="6.*" />
112120
<PackageReference Include="FluentAssertions" Version="6.*" PrivateAssets="All" />
113121
<PackageReference Include="FluentAssertions.Analyzers" Version="0.*" PrivateAssets="All" />
114-
<PackageReference Include="MSTest" Version="3.*" />
122+
<PackageReference Include="MSTest" Version="4.*" />
123+
124+
<!-- Enable parallel test execution in MSTest 4 and later. -->
125+
<AssemblyAttribute Include="Microsoft.VisualStudio.TestTools.UnitTesting.Parallelize">
126+
<_Parameter1>Workers = 1</_Parameter1>
127+
<_Parameter1_IsLiteral>true</_Parameter1_IsLiteral>
128+
<_Parameter2>Scope = Microsoft.VisualStudio.TestTools.UnitTesting.ExecutionScope.MethodLevel</_Parameter2>
129+
<_Parameter2_IsLiteral>true</_Parameter2_IsLiteral>
130+
</AssemblyAttribute>
115131
</ItemGroup>
116132

117133
<ItemGroup>

src/Microsoft.Restier.AspNet.Shared/Formatter/Deserialization/RestierEnumDeserializer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
54
using Microsoft.AspNet.OData;
65
using Microsoft.AspNet.OData.Formatter.Deserialization;
7-
using Microsoft.OData;
86
using Microsoft.OData.Edm;
97

108
#if NET6_0_OR_GREATER

src/Microsoft.Restier.AspNet.Shared/Model/BoundOperationAttribute.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
#if NET6_0_OR_GREATER
64
namespace Microsoft.Restier.AspNetCore.Model

src/Microsoft.Restier.AspNet.Shared/Model/UnboundOperationAttribute.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
#if NET6_0_OR_GREATER
1+
#if NET6_0_OR_GREATER
62
namespace Microsoft.Restier.AspNetCore.Model
73
#else
84
namespace Microsoft.Restier.AspNet.Model

src/Microsoft.Restier.AspNet.Shared/Query/RestierQueryBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Globalization;
77
using System.Linq;
88
using System.Linq.Expressions;
9-
using System.Threading.Tasks;
109
using Microsoft.OData.Edm;
1110
using Microsoft.OData.UriParser;
1211
#if NET6_0_OR_GREATER

src/Microsoft.Restier.AspNet.Shared/Query/RestierQueryExecutor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Linq.Expressions;
66
using System.Threading;
77
using System.Threading.Tasks;
8-
using Microsoft.Restier.Core;
98
using Microsoft.Restier.Core.Query;
109

1110
#if NET6_0_OR_GREATER

src/Microsoft.Restier.AspNet/Batch/RestierChangeSetProperty.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Diagnostics;
77
using System.Linq;
8-
using System.Net.Http;
98
using System.Threading;
109
using System.Threading.Tasks;
1110
using Microsoft.Restier.Core.Submit;

src/Microsoft.Restier.AspNet/RestierController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33
using System;
4-
using System.CodeDom;
54
using System.Collections;
65
using System.Collections.Generic;
76
using System.Globalization;

src/Microsoft.Restier.AspNetCore.Swagger/Microsoft.Restier.AspNetCore.Swagger.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net10.0;</TargetFrameworks>
55
<StrongNamePublicKey>$(StrongNamePublicKey)</StrongNamePublicKey>
66
<DocumentationFile>$(DocumentationFile)\$(AssemblyName).xml</DocumentationFile>
77
</PropertyGroup>

0 commit comments

Comments
 (0)