Skip to content
Draft
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
4 changes: 2 additions & 2 deletions HocrEditor.Tesseract/HocrEditor.Tesseract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="Meziantou.Analyzer" Version="1.0.698">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.212">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Optional" Version="4.0.0" />
<PackageReference Include="SkiaSharp" Version="3.116.0" />
<PackageReference Include="SkiaSharp" Version="3.119.0" />
</ItemGroup>

</Project>
16 changes: 8 additions & 8 deletions HocrEditor/HocrEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="gong-wpf-dragdrop" Version="4.0.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.71" />
<PackageReference Include="icu.net" Version="3.0.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.12.2" />
<PackageReference Include="icu.net" Version="3.0.1" />
<PackageReference Include="Icu4c.Win.Full.Lib" Version="59.1.15" />
<PackageReference Include="Iso639" Version="1.0.0" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.182">
<PackageReference Include="JetBrains.Annotations" Version="2025.2.0" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.212">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.8" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
<PackageReference Include="Optional" Version="4.0.0" />
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" PrivateAssets="All" />
<PackageReference Include="SkiaSharp" Version="3.116.1" />
<PackageReference Include="SkiaSharp.Views.WPF" Version="3.116.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="SkiaSharp" Version="3.119.0" />
<PackageReference Include="SkiaSharp.Views.WPF" Version="3.119.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.8" />
</ItemGroup>

<ItemGroup>
Expand Down
30 changes: 30 additions & 0 deletions scripts/update-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

# update dependencies of a dotnet project
# https://stackoverflow.com/a/52387851/10440128

# fix: error MSB4019: The imported project ".../Microsoft.NET.Sdk.WindowsDesktop.targets" was not found.
# Confirm that the expression in the Import declaration "$(AfterMicrosoftNETSdkTargets)",
# which evaluated to ";.../Microsoft.NET.Sdk.WindowsDesktop.targets", is correct, and that the file exists on disk.
# Unable to create dependency graph file for project './HocrEditor/HocrEditor.csproj'. Cannot add package reference.
# this is dotnet 10.0.100-preview.7.25380.108 for windows x64
# https://dotnet.microsoft.com/en-us/download/dotnet/10.0
function dotnet() { wine ~/".wine/drive_c/Program Files/dotnet/dotnet.exe" "$@"; }

set -eux
regex='PackageReference Include="([^"]*)" Version="([^"]*)"'
find . -name "*.*proj" | while read proj
do
while read line
do
if [[ $line =~ $regex ]]
then
name="${BASH_REMATCH[1]}"
version="${BASH_REMATCH[2]}"
if [[ $version != *-* ]]
then
dotnet add $proj package $name || true
fi
fi
done < $proj
done