stride3d / stride3d/stride

build error if AssemblyOriginatorKeyFile property is set

Open
#2,117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: Official Release

Version: 4.2.0.2067

Platform(s): Windows

Describe the bug
If AssemblyOriginatorKeyFile is set to sign assembly( described in https://learn.microsoft.com/en-us/dotnet/standard/assembly/create-public-private-key-pair ),
following error is occurred;

(d:\bin\nuget-packages\stride.core\4.2.0.2067\buildTransitive\Stride.Core.targets(94,5): error : Failed to run assembly processor with parameters: --auto-notify-property --parameter-key --auto-module-initializer --serialization --add-reference="d:\bin\nuget-packages\stride.engine\4.2.0.2067\lib\net8.0\Stride.Engine.dll" --add-reference="d:\bin\nuget-packages\stride.video\4.2.0.2067\lib\net8.0\Stride.Video.dll" --add-reference="d:\bin\nuget-packages\stride.physics\4.2.0.2067\lib\net8.0\BulletSharp.NetStandard.dll" --add-reference="d:\bin\nuget-packages\stride.physics\4.2.0.2067\lib\net8.0\Stride.Physics.dll" --add-reference="d:\bin\nuget-packages\stride.navigation\4.2.0.2067\lib\net8.0\Stride.Navigation.dll" --add-reference="d:\bin\nuget-packages\stride.particles\4.2.0.2067\lib\net8.0\Stride.Particles.dll" --add-reference="d:\bin\nuget-packages\stride.ui\4.2.0.2067\lib\net8.0\Stride.UI.dll" --add-reference="D:\src\gitrepos\stride-sandbox\ProjectRefTest\ClassLibrary1\bin\Debug\net8.0\ClassLibrary1.dll" --references-file="obj\Debug\net8.0-windows\StrideReferences.cache" --platform=Windows --targetFramework= "obj\Debug\net8.0-windows\ProjectRefTest.dll" --signkeyfile="../mykey.snk" --delete-on-error [D:\src\gitrepos\stride-sandbox\ProjectRefTest\ProjectRefTest\ProjectRefTest.csproj::TargetFramework=net8.0-windows])

To Reproduce
Steps to reproduce the behavior:

  1. create new project
  2. create new snk by sn mykey.snk in VS command shell
  3. edit csproj and set snk file path to "AssemblyOriginatorKeyFile" property
  4. do build

Expected behavior
build success and assembly is signed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with buildTransitive/Stride.Core.targets around line 94 and reproduce the Windows build using AssemblyOriginatorKeyFile and the mykey.snk path described in the issue. Trace the assembly processor invocation and verify that the project builds successfully with the output assembly signed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.