Skip to content

Commit

Permalink
Don't rely on indirect project reference, but copy the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattias1 committed Aug 17, 2023
1 parent e6cc7bd commit 414c88e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
with:
repository: AvaloniaUI/Avalonia.Markup.Declarative
path: lib/Avalonia.Markup.Declarative
- name: Copy Avalonia.Markup.Declarative lib files
run: >
cp
lib/Avalonia.Markup.Declarative/src/Avalonia.Markup.Declarative/*.cs
AvaloniaExtensions/lib/Avalonia.Markup.Declarative/
- name: Setup dotnet sdk
uses: actions/setup-dotnet@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ UpgradeLog*.htm
*.swp
lib/**
!lib/.gitkeep
AvaloniaExtensions/lib/Avalonia.Markup.Declarative/**
!AvaloniaExtensions/lib/Avalonia.Markup.Declarative/.gitkeep
3 changes: 3 additions & 0 deletions AvaloniaExtensions/AppBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
using Avalonia.LogicalTree;
using Avalonia.Markup.Declarative;
using Avalonia.Themes.Fluent;
using System;
using System.IO;
using System.Linq;
using System.Reflection;

namespace AvaloniaExtensions;
Expand Down
7 changes: 1 addition & 6 deletions AvaloniaExtensions/AvaloniaExtensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description>Some extensions to quickly build Avalonia UI desktop applications without needing XAML.</Description>
<AssemblyTitle>Avalonia Extensions</AssemblyTitle>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>

<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
Expand All @@ -32,11 +32,6 @@
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\lib\Avalonia.Markup.Declarative\src\Avalonia.Markup.Declarative\Avalonia.Markup.Declarative.csproj" />
<ProjectReference Include="..\..\Avalonia.Markup.Declarative.SourceGenerator\Avalonia.Markup.Declarative.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions AvaloniaExtensions/CanvasComponentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Avalonia.Layout;
using Avalonia.Markup.Declarative;
using Avalonia.Media.Imaging;
using System;
using System.Collections.Generic;

namespace AvaloniaExtensions;

Expand Down
1 change: 1 addition & 0 deletions AvaloniaExtensions/CanvasControlExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia.Controls;
using Avalonia.Markup.Declarative;
using System;

namespace AvaloniaExtensions;

Expand Down
2 changes: 2 additions & 0 deletions AvaloniaExtensions/ExtendedComboBox.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Declarative;
using System;
using System.Collections.Generic;

namespace AvaloniaExtensions;

Expand Down
2 changes: 2 additions & 0 deletions AvaloniaExtensions/ExtendedWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Declarative;
using System;
using System.Collections.Generic;

namespace AvaloniaExtensions;

Expand Down
Empty file.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ For a more elaborate example, you can take a look at the

Setup development environment
------------------------------
Clone the [Avalonia.Markup.Declarative](https://github.com/AvaloniaUI/Avalonia.Markup.Declarative)
repo in the `lib/` folder, then run `cd ExampleApp/ && dotnet run`.
- Clone the [Avalonia.Markup.Declarative](https://github.com/AvaloniaUI/Avalonia.Markup.Declarative)
repo in the 'lib' folder
- Copy the needed files to the 'AvaloniaExtensions/lib/Avalonia.Markup.Declarative' folder with
`cp lib/Avalonia.Markup.Declarative/src/Avalonia.Markup.Declarative/*.cs
AvaloniaExtensions/lib/Avalonia.Markup.Declarative/`
- Start the example app with `cd ExampleApp/ && dotnet run`


Publish release
Expand Down

0 comments on commit 414c88e

Please sign in to comment.