Use central package management

This commit is contained in:
Wiesław Šoltés 2023-06-15 11:46:17 +02:00
Родитель 63162507ff
Коммит 0d82bee025
26 изменённых файлов: 105 добавлений и 112 удалений

Просмотреть файл

@ -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}"

Просмотреть файл

@ -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>

16
Directory.Packages.props Normal file
Просмотреть файл

@ -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>

Просмотреть файл

@ -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>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-rc1.1" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Browser" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0-rc1.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="System.Reactive" Version="5.0.0" />
</ItemGroup>
</Project>

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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>

Просмотреть файл

@ -9,7 +9,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<Import Project="..\..\build\Avalonia.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
</ItemGroup>
<Import Project="..\..\build\XUnit.props" />
<ItemGroup>

Просмотреть файл

@ -9,7 +9,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<Import Project="..\..\build\Avalonia.props" />
<ItemGroup>
<PackageReference Include="Avalonia" />
</ItemGroup>
<Import Project="..\..\build\XUnit.props" />
<ItemGroup>