NetSparkleUpdater / NetSparkleUpdater/NetSparkle
AssemblyDiagnosticsAccessor doesn't work on Linux binaries
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 832
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
When trying to use AssemblyDiagnosticsAccessor or the default SparkleUpdater.Configuration, a runtime error will be thrown giving the following stacktrace:
Unhandled exception. NetSparkleUpdater.NetSparkleException: Error: NetSparkleUpdater is missing the company or product name tag in the assembly accessor (NetSparkleUpdater.AssemblyAccessors.AssemblyDiagnosticsAccessor)
at NetSparkleUpdater.Configurations.JSONConfiguration.GetSavePath()
at NetSparkleUpdater.Configurations.JSONConfiguration..ctor(IAssemblyAccessor assemblyAccessor, String savePath)
at NetSparkleUpdater.Configurations.JSONConfiguration..ctor(IAssemblyAccessor assemblyAccessor)
at ShinRyuModManager.UserInterface.Updater.AutoUpdating.Init()
at ShinRyuModManager.UserInterface.Views.MainWindow..ctor()
at ShinRyuModManager.UserInterface.App.OnFrameworkInitializationCompleted()
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at ShinRyuModManager.Program.Main(String[] args)
According to the error, it claims that I'm missing a <Company> or <Product> tag, but on my builds, I have both of those set. Here's a snippet of my *.csproj
<!-- Versioning -->
<AssemblyVersion>1.2.2</AssemblyVersion>
<VersionPrefix>$(AssemblyVersion)</VersionPrefix>
<AssemblyTitle>ShinRyuModManager-CE</AssemblyTitle>
<Company>SRMM Studio</Company>
<Product>ShinRyuModManager-CE</Product>
<Copyright>2025 SRMM Studio</Copyright>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
I believe this might be a problem with using FileVersionInfo.GetVersionInfo() on a Linux binary, as referenced here. Forcing the use of reflection with Configuration = new JSONConfiguration(new AssemblyReflectionAccessor(null)) has worked just fine though.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting AssemblyDiagnosticsAccessor and JSONConfiguration.GetSavePath(), then compare their behavior with AssemblyReflectionAccessor and the reported FileVersionInfo.GetVersionInfo() limitation on Linux. Reproduce the default configuration failure on a Linux binary using the issue's project metadata. Done means AssemblyDiagnosticsAccessor and the default JSONConfiguration work without the missing-company-or-product error on Linux.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100