Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
uses: Resurrection-Capsule/.github/.github/workflows/dotnet-ci.yml@v1
with:
solution: src/ReCap.CommonUI/ReCap.CommonUI.csproj
test: false
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Release

on:
push:
tags: ['v*']

jobs:
publish:
uses: Resurrection-Capsule/.github/.github/workflows/dotnet-nuget.yml@v1
with:
project: src/ReCap.CommonUI/ReCap.CommonUI.csproj
secrets: inherit
50 changes: 42 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<AssemblyVersion>0.0.1</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
</PropertyGroup>
<PropertyGroup>
<LangVersion>10.0</LangVersion>
</PropertyGroup>
</Project>

<!-- Org build defaults (see Resurrection-Capsule/.github/templates). Versioning via MinVer
from the nearest `vX.Y.Z` tag — no static <Version>/<AssemblyVersion>.
TFM stays per-project (library = netstandard2.0, demo = its own). -->

<PropertyGroup>
<LangVersion>10.0</LangVersion>
</PropertyGroup>

<PropertyGroup>
<Authors>Splitwirez</Authors>
<Company>Resurrection-Capsule</Company>
<Product>ReCap</Product>
<Copyright>Copyright (c) Splitwirez</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/Resurrection-Capsule/ReCap.CommonUI</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<PropertyGroup>
<Deterministic>true</Deterministic>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<IncludeSymbols>false</IncludeSymbols>
<MinVerTagPrefix>v</MinVerTagPrefix>
</PropertyGroup>

<PropertyGroup Condition="Exists('$(MSBuildThisFileDirectory)README.md')">
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup Condition="Exists('$(MSBuildThisFileDirectory)README.md')">
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
</ItemGroup>

</Project>
9 changes: 7 additions & 2 deletions build/avalonia.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
<AvVer>11.3.2</AvVer>
</PropertyGroup>

<!-- Library-safe Avalonia deps (ship in the ReCap.CommonUI package). -->
<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvVer)" />
<PackageReference Include="Avalonia.Desktop" Version="$(AvVer)" />
<PackageReference Include="Avalonia.Diagnostics" Version="$(AvVer)" />
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvVer)" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvVer)" />
</ItemGroup>

<!-- App-host + dev tooling: executables only, never a dependency of the library package. -->
<ItemGroup Condition="'$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe'">
<PackageReference Include="Avalonia.Desktop" Version="$(AvVer)" />
<PackageReference Include="Avalonia.Diagnostics" Version="$(AvVer)" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>

<!-- Credentials are never committed — CI injects them via the env var
NuGetPackageSourceCredentials_github (Username=actions;Password=$GITHUB_TOKEN). -->

<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="github" value="https://nuget.pkg.github.com/Resurrection-Capsule/index.json" />
</packageSources>

</configuration>
1 change: 1 addition & 0 deletions samples/ReCap.CommonUI.Demo/ReCap.CommonUI.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down
11 changes: 7 additions & 4 deletions src/ReCap.CommonUI/ReCap.CommonUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
<OutputType>Library</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<!--
<LangVersion>8.0</LangVersion>
<ApplicationManifest>app.manifest</ApplicationManifest>
-->
</PropertyGroup>

<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>ReCap.CommonUI</PackageId>
<Description>Shared Avalonia controls, styles, theme and fonts for ReCap desktop applications (Hub, tools).</Description>
<PackageTags>avalonia;ui;controls;theme;recap;darkspore</PackageTags>
</PropertyGroup>

<Import Project="../../build/avalonia.props" />
Expand Down