Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Use central package management
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jun 15, 2023
1 parent 6316250 commit 0d82bee
Show file tree
Hide file tree
Showing 26 changed files with 105 additions and 112 deletions.
11 changes: 2 additions & 9 deletions AvaloniaBehaviors.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2913483A
build.sh = build.sh
global.json = global.json
azure-pipelines.yml = azure-pipelines.yml
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "props", "props", "{40A43022-EBA7-4E1D-8BB0-2691E41B5622}"
ProjectSection(SolutionItems) = preProject
build\Avalonia.Desktop.props = build\Avalonia.Desktop.props
build\Avalonia.Diagnostics.props = build\Avalonia.Diagnostics.props
build\Avalonia.props = build\Avalonia.props
build\Base.props = build\Base.props
build\ReferenceAssemblies.props = build\ReferenceAssemblies.props
build\SignAssembly.props = build\SignAssembly.props
build\SourceLink.props = build\SourceLink.props
build\XUnit.props = build\XUnit.props
build\Avalonia.ReactiveUI.props = build\Avalonia.ReactiveUI.props
build\Avalonia.Themes.Fluent.props = build\Avalonia.Themes.Fluent.props
build\Avalonia.Web.props = build\Avalonia.Web.props
build\System.Reactive.props = build\System.Reactive.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{721A55B7-C5B0-44E2-803A-56E291C672FE}"
Expand Down
2 changes: 1 addition & 1 deletion build/Base.props → Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project>
<PropertyGroup>
<VersionPrefix>11.0.0</VersionPrefix>
<VersionSuffix>rc1.1</VersionSuffix>
Expand Down
16 changes: 16 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Avalonia" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.Desktop" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.Diagnostics" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.ReactiveUI" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.Themes.Fluent" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.Fonts.Inter" Version="11.0.0-rc1.1" />
<PackageVersion Include="Avalonia.Browser" Version="11.0.0-rc1.1" />
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
<PackageVersion Include="System.Reactive" Version="5.0.0" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
<packageSources>
<clear />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="avalonia" value="https://nuget.avaloniaui.net/repository/avalonia-all/index.json" protocolVersion="3" />
</packageSources>
</configuration>
6 changes: 0 additions & 6 deletions build/Avalonia.Desktop.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/Avalonia.Diagnostics.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/Avalonia.ReactiveUI.props

This file was deleted.

7 changes: 0 additions & 7 deletions build/Avalonia.Themes.Fluent.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/Avalonia.Web.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/Avalonia.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/ReferenceAssemblies.props

This file was deleted.

6 changes: 0 additions & 6 deletions build/System.Reactive.props

This file was deleted.

17 changes: 10 additions & 7 deletions samples/BehaviorsTestApplication/BehaviorsTestApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Avalonia.Desktop" />
<PackageReference Include="Avalonia.Diagnostics" />
<PackageReference Include="Avalonia.Themes.Fluent" />
<PackageReference Include="Avalonia.Fonts.Inter" />
<PackageReference Include="Avalonia.ReactiveUI" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<!--<Import Project="..\..\build\SignAssembly.props" />-->
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />
<Import Project="..\..\build\Avalonia.Desktop.props" />
<Import Project="..\..\build\Avalonia.Diagnostics.props" />
<Import Project="..\..\build\Avalonia.Themes.Fluent.props" />
<Import Project="..\..\build\Avalonia.ReactiveUI.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Avalonia.Xaml.Interactions\Avalonia.Xaml.Interactions.csproj" />
Expand Down
19 changes: 11 additions & 8 deletions samples/DragAndDropSample/DragAndDropSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>

<Import Project="..\..\build\Base.props" />
<!--<Import Project="..\..\build\SignAssembly.props"/>-->
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />
<Import Project="..\..\build\Avalonia.Desktop.props" />
<Import Project="..\..\build\Avalonia.Diagnostics.props" />
<Import Project="..\..\build\Avalonia.ReactiveUI.props" />
<Import Project="..\..\build\Avalonia.Themes.Fluent.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Avalonia.Desktop" />
<PackageReference Include="Avalonia.Diagnostics" />
<PackageReference Include="Avalonia.Themes.Fluent" />
<PackageReference Include="Avalonia.Fonts.Inter" />
<PackageReference Include="Avalonia.ReactiveUI" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<!--<Import Project="..\..\build\SignAssembly.props" />-->

<ItemGroup>
<ProjectReference Include="..\..\src\Avalonia.Xaml.Interactions\Avalonia.Xaml.Interactions.csproj" />
Expand Down
18 changes: 11 additions & 7 deletions samples/DraggableDemo/DraggableDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>

<Import Project="..\..\build\Base.props" />
<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />
<Import Project="..\..\build\Avalonia.Desktop.props" />
<Import Project="..\..\build\Avalonia.Diagnostics.props" />
<Import Project="..\..\build\Avalonia.Themes.Fluent.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Avalonia.Desktop" />
<PackageReference Include="Avalonia.Diagnostics" />
<PackageReference Include="Avalonia.Themes.Fluent" />
<PackageReference Include="Avalonia.Fonts.Inter" />
<PackageReference Include="Avalonia.ReactiveUI" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<!--<Import Project="..\..\build\SignAssembly.props" />-->

<ItemGroup>
<ProjectReference Include="..\..\src\Avalonia.Xaml.Interactions\Avalonia.Xaml.Interactions.csproj" />
Expand Down
8 changes: 5 additions & 3 deletions src/Avalonia.Xaml.Behaviors/Avalonia.Xaml.Behaviors.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="System.Reactive" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />
<Import Project="..\..\build\System.Reactive.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

<ItemGroup>
<ProjectReference Include="..\Avalonia.Xaml.Interactivity\Avalonia.Xaml.Interactivity.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
<PackageTags>Avalonia;Behavior;Action;Behaviors;Actions;Managed;C#;Interaction;Interactivity;Interactions;Xaml</PackageTags>
</PropertyGroup>

<Import Project="..\..\build\Base.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" />
</ItemGroup>

<Import Project="..\..\build\SignAssembly.props" />
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\ReferenceAssemblies.props" />
<Import Project="..\..\build\Avalonia.props" />

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\build\Avalonia.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
</ItemGroup>

<Import Project="..\..\build\XUnit.props" />

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\build\Avalonia.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
</ItemGroup>

<Import Project="..\..\build\XUnit.props" />

<ItemGroup>
Expand Down

0 comments on commit 0d82bee

Please sign in to comment.