Skip to content

Commit

Permalink
build: use Central Package Management and update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 28, 2023
1 parent 7e9d268 commit cd0f788
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
6 changes: 4 additions & 2 deletions src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<AutoGenerateBindingRedirects Condition="$(DefineConstants.Contains(NETCOREAPP)) == false">true</AutoGenerateBindingRedirects>
<AnalysisLevel>latest</AnalysisLevel>
<LangVersion>latest</LangVersion>
<DebugSymbols>true</DebugSymbols>
<DebugType>Embedded</DebugType>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<NoError>$(NoError);CS1591</NoError>
<UseWPF>true</UseWPF>
Expand All @@ -22,8 +24,8 @@

<!-- Add the references for all projects and targets -->
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2022.*" PrivateAssets="All" IncludeAssets="build;compile" />
<PackageReference Include="WpfAnalyzers" Version="4.1.*" PrivateAssets="all" IncludeAssets="build;analyzers" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" IncludeAssets="build;compile" />
<PackageReference Include="WpfAnalyzers" PrivateAssets="all" IncludeAssets="build;analyzers" />
</ItemGroup>

<ItemGroup>
Expand Down
18 changes: 18 additions & 0 deletions src/Directory.packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<ItemGroup Label="Build">
<PackageVersion Include="JetBrains.Annotations" Version="2023.2.0" />

<PackageVersion Include="MahApps.Metro.IconPacks.FeatherIcons" Version="4.11.0" />
<PackageVersion Include="MahApps.Metro.IconPacks.Material" Version="4.11.0" />
<PackageVersion Include="MahApps.Metro.IconPacks.Octicons" Version="4.11.0" />
<PackageVersion Include="Faker.Net" Version="2.0.154" />
<PackageVersion Include="Costura.Fody" Version="5.7.0" />

<PackageVersion Include="WpfAnalyzers" Version="4.1.1" />
</ItemGroup>
</Project>
14 changes: 0 additions & 14 deletions src/GongSolutions.WPF.DragDrop/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@
<EmbedAllSources>true</EmbedAllSources>
</PropertyGroup>

<!-- PDB-Options -->
<PropertyGroup>
<DebugSymbols>true</DebugSymbols>
<DebugType>Embedded</DebugType>
</PropertyGroup>

<!-- reference includes -->
<!-- <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
-->
<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup>
Expand Down
19 changes: 9 additions & 10 deletions src/Showcase/Showcase.WPF.DragDrop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MahApps.Metro.IconPacks.FeatherIcons" Version="4.11.0" />
<PackageReference Include="MahApps.Metro.IconPacks.Material" Version="4.11.0" />
<PackageReference Include="MahApps.Metro.IconPacks.Octicons" Version="4.11.0" />
<PackageReference Include="Faker.Net" Version="2.0.154" />
<PackageReference Include="MahApps.Metro.IconPacks.FeatherIcons" />
<PackageReference Include="MahApps.Metro.IconPacks.Material" />
<PackageReference Include="MahApps.Metro.IconPacks.Octicons" />
<PackageReference Include="Faker.Net" />
</ItemGroup>

<ItemGroup Condition="$(DefineConstants.Contains(NETCOREAPP)) == false">
<PackageReference Include="Fody" Version="6.6.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="Costura.Fody">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
</ItemGroup>

</ItemGroup>

<ItemGroup>
<None Include="app.manifest" />
</ItemGroup>
Expand Down

0 comments on commit cd0f788

Please sign in to comment.