build error if AssemblyOriginatorKeyFile property is set
Nobody has claimed this yet.
- 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:
- create new project
- create new snk by
sn mykey.snkin VS command shell - edit csproj and set snk file path to "AssemblyOriginatorKeyFile" property
- do build
Expected behavior
build success and assembly is signed.
Contributor guide
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 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