Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,5 @@ dotnet_naming_rule.parameters_rule.severity = warning
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
##########################################

dotnet_style_require_accessibility_modifiers = for_non_interface_members
6 changes: 1 addition & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@

# Coding Guidelines

- Projects use StyleCop and .editorconfig to produce style warnings. Please fix all warnings in any code you submit.
- Projects use .editorconfig to produce style warnings. Please fix all warnings in any code you submit.
- Write unit tests for any code written.

# Special Thanks

As thanks for all contributions, your username will be posted to the front page of the project with a short description of how you helped.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
with:
lfs: true
fetch-depth: 0
- name: "Install .NET 8.0 SDK"
- name: "Setup dotnet"
uses: actions/setup-dotnet@v5.0.0
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- name: "Dotnet Tool Restore"
run: dotnet tool restore
shell: pwsh
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
url: https://github.com/TimmyMC/Schema.NET/packages
permissions:
packages: write
id-token: write
runs-on: windows-latest
steps:
- name: "Download Artefact"
Expand All @@ -110,9 +113,14 @@ jobs:
uses: actions/download-artifact@v6.0.0
with:
name: "windows-latest"
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: "TimmyMC"
- name: "Dotnet NuGet Push"
run: |
Get-ChildItem .\ -Filter *.nupkg |
Where-Object { !$_.Name.Contains('preview') } |
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ steps.login.outputs.NUGET_API_KEY }} }
shell: pwsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

<PropertyGroup Label="Build">
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>

<ItemGroup Label="Project References">
<ProjectReference Include="..\..\Source\Schema.NET\Schema.NET.csproj" />
<ProjectReference Include="..\..\Source\Schema.NET.Common\Schema.NET.Common.csproj" />
</ItemGroup>

<ItemGroup Label="Package References">
Expand Down
2 changes: 1 addition & 1 deletion Benchmarks/Schema.NET.Benchmarks/SchemaBenchmarkBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Schema.NET.Benchmarks;
[CsvMeasurementsExporter]
[RPlotExporter]
[SimpleJob(RuntimeMoniker.Net80)]
[SimpleJob(RuntimeMoniker.Net48)]
[SimpleJob(RuntimeMoniker.Net10_0)]
public abstract class SchemaBenchmarkBase
{
public Thing Thing { get; set; } = default!;
Expand Down
Loading
Loading