Skip to content

chore: Specify C# version #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6882d1b
chore: Specify C# version
Reikyo Apr 16, 2025
a975151
chore: Specify C# version
Reikyo Apr 16, 2025
7398aad
chore: Specify C# version
Reikyo Apr 16, 2025
9ba4010
chore: Specify C# version
Reikyo Apr 16, 2025
4433a84
chore: Specify C# version
Reikyo Apr 16, 2025
16e7465
chore: Specify C# version
Reikyo Apr 16, 2025
2b17739
chore: Specify C# version
Reikyo Apr 16, 2025
1108745
chore: Specify C# version
Reikyo Apr 16, 2025
6218553
fix: Check import behaviour
Reikyo Apr 17, 2025
2962157
fix: Check import behaviour
Reikyo Apr 17, 2025
77c4795
fix: Check import behaviour
Reikyo Apr 17, 2025
44dfa1e
fix: Check import behaviour
Reikyo Apr 17, 2025
23f2774
fix: Check import behaviour
Reikyo Apr 17, 2025
6d8535b
fix: Copy FeedGenerationHelper.cs from BookingSystem.AspNetCore to Bo…
Reikyo Apr 17, 2025
a2f5676
fix: Change BookingSystem.AspNetCore.Helpers to BookingSystem.AspNetF…
Reikyo Apr 17, 2025
4469e3c
fix: Change BookingSystem.AspNetCore.Helpers to BookingSystem.AspNetF…
Reikyo Apr 17, 2025
98268c4
fix: Change BookingSystem.AspNetCore.Helpers to BookingSystem.AspNetF…
Reikyo Apr 17, 2025
cc6fdc9
fix: Change BookingSystem.AspNetCore.Helpers to BookingSystem.AspNetF…
Reikyo Apr 17, 2025
81a25de
fix: Change namespace of FeedGenerationHelper.cs
Reikyo Apr 17, 2025
b617670
fix: Add FeedGenerationHelper.cs to BookingSystem.AspNetFramework.csproj
Reikyo Apr 17, 2025
73bd134
fix: Add IdempotencyStore.cs to BookingSystem.AspNetFramework.csproj
Reikyo Apr 17, 2025
949a1c3
fix: Add System.Runtime.Caching to BookingSystem.AspNetFramework.csproj
Reikyo May 7, 2025
0d7231b
fix: Add logger
Reikyo May 8, 2025
5466515
fix: Change Microsoft.Extension.Logging.Abstractions version to align…
Reikyo May 8, 2025
421f9a8
fix: Remove Create() method which may not exist in this version of Lo…
Reikyo May 8, 2025
899017e
fix: Add import for Logging.Console
Reikyo May 8, 2025
f42d6c9
fix: Add import for Logging.Console
Reikyo May 8, 2025
84d90a8
fix: Try another way of making logger
Reikyo May 8, 2025
bac1b2e
fix: Try another way of making logger
Reikyo May 8, 2025
3347fe9
fix: Try
Reikyo May 8, 2025
b81ce88
fix: Add import for Logging.Abstractions
Reikyo May 8, 2025
0ad1bc6
Fix: Tidy
Reikyo May 8, 2025
af19ec3
Fix: Tidy
Reikyo May 8, 2025
4a6b35b
fix: Update actions and VM
Reikyo Jun 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/openactive-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ jobs:
needs:
- test-server
- test-fake-database
# runs on an Windows 2019 virtual machine, not an Ubuntu machine
runs-on: windows-2019
# runs on a Windows virtual machine, not an Ubuntu virtual machine (latest is used to force failure if dependencies become outdated)
runs-on: windows-latest

strategy:
fail-fast: false
Expand Down Expand Up @@ -213,9 +213,9 @@ jobs:
# Building and deploying Framework is done using `msbuild` as opposed to `dotnet build`/`dotnet run`. It is started
# using IIS Express
- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
uses: NuGet/setup-nuget@v2
- name: Install OpenActive.Server.NET dependencies
run: nuget restore .\server\
- name: Build .NET Framework Reference Implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8.0</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<UserSecretsId>aspnet-BookingSystem.AspNetCore-443B4F82-A20C-41CE-9924-329A0BCF0D14</UserSecretsId>
<Configurations>Release;Debug</Configurations>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<RootNamespace>BookingSystem.AspNetFramework.Tests</RootNamespace>
<AssemblyName>BookingSystem.AspNetFramework.Tests</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<LangVersion>8.0</LangVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<NuGetPackageImportStamp>
Expand Down Expand Up @@ -132,4 +133,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<RootNamespace>BookingSystem.AspNetFramework</RootNamespace>
<AssemblyName>BookingSystem.AspNetFramework</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<LangVersion>8.0</LangVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
Expand Down Expand Up @@ -316,6 +317,7 @@
<Reference Include="System.Web.Routing" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Runtime.Caching" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
Expand Down Expand Up @@ -448,6 +450,7 @@
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Helpers\AuthenticationHelper.cs" />
<Compile Include="Helpers\FeedGenerationHelper.cs" />
<Compile Include="Helpers\OpenBookingInputFormatter.cs" />
<Compile Include="Extensions\RequiredStatusTypeExtensions.cs" />
<Compile Include="Helpers\ResponseContentHelper.cs" />
Expand All @@ -460,6 +463,7 @@
<Compile Include="Settings\AppSettings.cs" />
<Compile Include="Settings\EngineConfig.cs" />
<Compile Include="Stores\FacilityStore.cs" />
<Compile Include="Stores\IdempotencyStore.cs" />
<Compile Include="Stores\OrderStore.cs" />
<Compile Include="Stores\OrderTransaction.cs" />
<Compile Include="Stores\SellerStore.cs" />
Expand Down Expand Up @@ -540,4 +544,4 @@
</Target>
<Target Name="AfterBuild">
</Target> -->
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Bogus;
using BookingSystem.AspNetCore.Helpers;
using BookingSystem.AspNetFramework.Helpers;
using OpenActive.DatasetSite.NET;
using OpenActive.FakeDatabase.NET;
using OpenActive.NET;
Expand Down Expand Up @@ -305,4 +305,4 @@ Offer GenerateOffer(SlotTable slot, QuantitativeValue ageRange)
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Linq;
using System.Threading.Tasks;
using Bogus;
using BookingSystem.AspNetCore.Helpers;
using BookingSystem.AspNetFramework.Helpers;
using ServiceStack;
using System.Globalization;

Expand Down
305 changes: 305 additions & 0 deletions Examples/BookingSystem.AspNetFramework/Helpers/FeedGenerationHelper.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BookingSystem.AspNetCore.Helpers;
using BookingSystem.AspNetFramework.Helpers;
using OpenActive.DatasetSite.NET;
using OpenActive.FakeDatabase.NET;
using OpenActive.NET;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using OpenActive.FakeDatabase.NET;
using RequiredStatusType = OpenActive.FakeDatabase.NET.RequiredStatusType;
using System.Threading.Tasks;
using BookingSystem.AspNetCore.Helpers;
using BookingSystem.AspNetFramework.Helpers;

namespace BookingSystem
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using BookingSystem.AspNetFramework.Helpers;
using BookingSystem.AspNetFramework.Controllers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using OpenActive.Server.NET;
using System.Configuration;
using System.Web.Http;
Expand Down Expand Up @@ -32,7 +33,7 @@ public static void Register(HttpConfiguration config)
services.AddTransient<DatasetSiteController>();
services.AddTransient<OpenDataController>();
services.AddTransient<OpenBookingController>();
services.AddSingleton<IBookingEngine>(sp => EngineConfig.CreateStoreBookingEngine(appSettings, new FakeBookingSystem(false)));
services.AddSingleton<IBookingEngine>(sp => EngineConfig.CreateStoreBookingEngine(appSettings, new FakeBookingSystem(false, new NullLogger<FakeBookingSystem>())));

var resolver = new DependencyResolver(services.BuildServiceProvider(true));
config.DependencyResolver = resolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8.0</LangVersion>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>8.0</LangVersion>
<AssemblyName>OpenActive.FakeDatabase.NET</AssemblyName>
<RootNamespace>OpenActive.FakeDatabase.NET</RootNamespace>
<PackageId>OpenActive.FakeDatabase.NET</PackageId>
Expand Down Expand Up @@ -30,7 +31,7 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="33.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="ServiceStack.OrmLite.Sqlite.Core" Version="5.11.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8.0</LangVersion>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions OpenActive.Server.NET/OpenActive.Server.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Authors>OpenActive Community</Authors>
<Company>OpenActive</Company>
<Copyright>OpenActive</Copyright>
Expand Down
Loading