Skip to content

Commit

Permalink
Use ManagePackageVersionsCentrally & add default runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Dec 13, 2024
1 parent 71192ea commit d75f733
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 147 deletions.
8 changes: 8 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<PropertyGroup>
<AvaloniaVersion>11.2.2</AvaloniaVersion>
</PropertyGroup>
Expand Down
144 changes: 144 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<Project>
<ItemGroup>
<PackageVersion Include="AsyncAwaitBestPractices" Version="8.0.0" />
<PackageVersion Include="AutoCtor" Version="2.4.1" />
<PackageVersion Include="Blake3" Version="1.1.0" />
<PackageVersion Include="CompiledExpressions" Version="1.1.0" />
<PackageVersion Include="Crc32.NET" Version="1.2.0" />
<PackageVersion Include="CSharpDiscriminatedUnion" Version="2.0.1" />
<PackageVersion Include="DeviceId" Version="6.7.0" />
<PackageVersion Include="DeviceId.Linux" Version="6.4.0" />
<PackageVersion Include="DeviceId.Mac" Version="6.3.0" />
<PackageVersion Include="DeviceId.Windows" Version="6.6.0" />
<PackageVersion Include="DeviceId.Windows.Wmi" Version="6.6.0" />
<PackageVersion Include="DotNet.Bundle" Version="0.9.13" />
<PackageVersion Include="DynamicData" Version="9.0.1" />
<PackageVersion Include="ExifLibNet" Version="2.1.4" />
<PackageVersion Include="FreneticLLC.FreneticUtilities" Version="1.0.32" />
<PackageVersion Include="Hardware.Info" Version="100.1.0.1" />
<PackageVersion Include="Injectio" Version="4.0.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageVersion Include="KGySoft.Drawing.Core" Version="8.1.0" />
<PackageVersion Include="KGySoft.Drawing.SkiaSharp" Version="8.1.0" />
<PackageVersion Include="LiteDB" Version="5.0.21" />
<PackageVersion Include="LiteDB.Async" Version="0.1.8" />
<PackageVersion Include="MetadataExtractor" Version="2.8.1" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageVersion Include="NLog" Version="5.3.2" />
<PackageVersion Include="NLog.Extensions.Logging" Version="5.3.11" />
<PackageVersion Include="NSec.Cryptography" Version="24.4.0" />
<PackageVersion Include="Octokit" Version="13.0.1" />
<PackageVersion Include="OneOf" Version="3.0.271" />
<PackageVersion Include="OneOf.SourceGenerator" Version="3.0.271" />
<PackageVersion Include="Polly" Version="8.4.1" />
<PackageVersion Include="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
<PackageVersion Include="pythonnet" Version="3.0.3" />
<PackageVersion Include="Refit" Version="8.0.0" />
<PackageVersion Include="Refit.HttpClientFactory" Version="8.0.0" />
<PackageVersion Include="RockLib.Reflection.Optimized" Version="3.0.0" />
<PackageVersion Include="Salaros.ConfigParser" Version="0.3.8" />
<PackageVersion Include="Semver" Version="3.0.0-beta.1" />
<PackageVersion Include="Sentry.NLog" Version="4.9.0" />
<PackageVersion Include="SharpCompress" Version="0.37.2" />
<PackageVersion Include="SkiaSharp" Version="3.0.0-preview.4.1" />
<PackageVersion Include="Websocket.Client" Version="5.1.2" />
<PackageVersion Include="YamlDotNet" Version="16.0.0" />
<PackageVersion Include="Yoh.Text.Json.NamingPolicies" Version="1.1.2" />
<!-- Avalonia -->
<PackageVersion Include="AutoComplete.Net" Version="1.2211.2014.42"/>
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageVersion Include="DiscordRichPresence" Version="1.2.1.24" />
<PackageVersion Include="DynamicData" Version="9.0.1" />
<PackageVersion Include="DotNet.Bundle" Version="0.9.13" />
<PackageVersion Include="Exceptionless.DateTimeExtensions" Version="3.4.3" />
<PackageVersion Include="FuzzySharp" Version="2.0.2" />
<PackageVersion Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageVersion Include="KeyedSemaphores" Version="5.0.0" />
<PackageVersion Include="Markdig" Version="0.38.0" />
<PackageVersion Include="MessagePipe" Version="1.8.1" />
<PackageVersion Include="MessagePipe.Interprocess" Version="1.8.1" />
<PackageVersion Include="MetadataExtractor" Version="2.8.1" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Http.Polly" Version="8.0.7" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageVersion Include="Nito.AsyncEx" Version="5.1.2" />
<PackageVersion Include="NLog" Version="5.3.2" />
<PackageVersion Include="NLog.Extensions.Logging" Version="5.3.11" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="OneOf" Version="3.0.271" />
<PackageVersion Include="Polly" Version="8.4.1" />
<PackageVersion Include="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
<PackageVersion Include="Polly.Extensions.Http" Version="3.0.0" />
<PackageVersion Include="RockLib.Reflection.Optimized" Version="3.0.0" />
<PackageVersion Include="Sentry" Version="4.9.0" />
<PackageVersion Include="Sentry.NLog" Version="4.9.0" />
<PackageVersion Include="SoftCircuits.OrderedDictionary" Version="3.2.0" />
<PackageVersion Include="Sylvan.Common" Version="0.4.3" />
<PackageVersion Include="Sylvan.Data" Version="0.2.16" />
<PackageVersion Include="Sylvan.Data.Csv" Version="1.3.9" />
<PackageVersion Include="System.Drawing.Common" Version="8.0.7" />
<PackageVersion Include="System.IO.Hashing" Version="8.0.0" />
<PackageVersion Include="URISchemeTools" Version="1.0.2" />
</ItemGroup>

<ItemGroup Label="Avalonia">
<PackageVersion Include="AsyncImageLoader.Avalonia" Version="3.2.1" />
<PackageVersion Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
<PackageVersion Include="Avalonia.Controls.DataGrid" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Controls.ItemsRepeater" Version="11.1.4" />
<PackageVersion Include="Avalonia.Controls.PanAndZoom" Version="11.2.0" />
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Svg" Version="11.2.0" />
<PackageVersion Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.HtmlRenderer" Version="11.0.0" />
<PackageVersion Include="Avalonia.Labs.Controls" Version="11.2.0" />
<PackageVersion Include="Avalonia.Xaml.Behaviors" Version="11.2.0" />
<PackageVersion Include="AvaloniaEdit.TextMate" Version="11.0.6" />
<PackageVersion Include="TextMateSharp.Grammars" Version="1.0.56" />
<PackageVersion Include="bodong.Avalonia.PropertyGrid" Version="11.1.1.1" />
<PackageVersion Include="bodong.PropertyModels" Version="11.1.1.1" />
<PackageVersion Include="DesktopNotifications" Version="1.3.1" />
<PackageVersion Include="DesktopNotifications.Avalonia" Version="1.3.1" />
<PackageVersion Include="Dock.Avalonia" Version="11.2.0" />
<PackageVersion Include="Dock.Model.Avalonia" Version="11.2.0" />
<PackageVersion Include="Dock.Serializer" Version="11.2.0" />
<PackageVersion Include="FluentAvalonia.BreadcrumbBar" Version="2.0.2" />
<PackageVersion Include="FluentAvaloniaUI" Version="2.1.0" />
<PackageVersion Include="FluentIcons.Avalonia" Version="1.1.249" />
<PackageVersion Include="FluentIcons.Avalonia.Fluent" Version="1.1.249" />
<PackageVersion Include="Markdown.Avalonia" Version="11.0.3-a1" />
<PackageVersion Include="Projektanker.Icons.Avalonia.FontAwesome" Version="9.4.0" />
<PackageVersion Include="SpacedGrid-Avalonia" Version="11.0.0" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux" Version="3.0.0-preview.4.1" />
</ItemGroup>

<ItemGroup Label="Tests">
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.3" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="Polly" Version="8.4.2" />
<PackageVersion Include="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
<PackageVersion Include="Avalonia.Headless.XUnit" Version="$(AvaloniaVersion)" />
<PackageVersion Include="DotNet.Bundle" Version="0.9.13" />
<PackageVersion Include="Verify" Version="26.1.2" />
<PackageVersion Include="Verify.CommunityToolkit.Mvvm" Version="0.1.0" />
<PackageVersion Include="Verify.Avalonia" Version="1.1.0" />
<PackageVersion Include="Verify.Phash" Version="3.1.0" />
<PackageVersion Include="Verify.Xunit" Version="26.1.2" />
<PackageVersion Include="xunit" Version="2.9.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
9 changes: 9 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Avalonia Nightly" value="https://nuget-feed-nightly.avaloniaui.net/v3/index.json" />
</packageSources>

<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
<packageSource key="Avalonia Nightly">
<package pattern="Avalonia.Nightly.*" />
</packageSource>
</packageSourceMapping>
</configuration>
26 changes: 26 additions & 0 deletions Runtimes.Default.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project>
<!-- If a runtime identifier is not specified,
the default runtime identifier is decided using the current OS platform. -->
<Choose>
<When Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;osx-arm64</RuntimeIdentifiers>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="$(AvaloniaVersion)" />
<PackageReference Include="DotNet.Bundle" Version="0.9.13" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
<PackageReference Include="NLog" Version="5.3.2" />
<PackageReference Include="Avalonia" />
<PackageReference Include="Avalonia.Controls.DataGrid" />
<PackageReference Include="DotNet.Bundle" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="NLog" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit d75f733

Please sign in to comment.