question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arcade targets override AssemblyOriginatorKeyFile

See original GitHub issue

When using arcade to publish a project that sets AssemblyOriginatorKeyFile, StrongName.targets overrides the key file (because arcade imports set a default value for StrongNameKeyId): https://github.com/dotnet/arcade/blob/9800953d3b420fd7f81d88c5332df6d1c38e875e/src/Microsoft.DotNet.Arcade.Sdk/tools/StrongName.targets#L35

I believe StrongName.targets should not be setting properties as this violates the convention that static properties are computed in props files. Maybe this logic should be moved to StrongName.props, which would allow my project’s setting of AssemblyOriginatorKeyFile to take precedence.

I can work around this by:

I may have missed something, but I couldn’t find any place where PublicKey or PublicKeyToken were actually used, so I think those shouldn’t be required to be set in the first place. edit: they’re used in the arcade InternalsVisibleTo generator - see below.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Apr 11, 2019

My angle is that it should be easy as possible for an existing SDK project to start using arcade

That is the goal. 😃

1reaction
tmatcommented, Apr 11, 2019

You can set StrongNameKeyId to custom already to opt-out. The one thing that’s missing is the error reporting that will tell you to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

arcade/Documentation/ArcadeSdk.md at main
Arcade SDK is a set of msbuild props and targets files and packages that provide common ... NET Core SDK as possible, with...
Read more >
Suppressing AfterBuild targets when a csproj has not been ...
I found a way, to do this a bit easier, by stealing an Idea from core targets. Override both BeforeBuild and AfterBuild and...
Read more >
An Unexpected warning
From the error it seems that the MonoGame.Content.Builder.targets file doesn't get loaded correctly. No idea why or how to fix though. repstyle ...
Read more >
Automatically signing ALL compiled output files
As the final step, I want to have all the .dll and .exe output files signed by our key. I can do this...
Read more >
Python Tools for Visual Studio Mac - Developer Community
The Python extension for Visual Studio Code is an excellent alternative for Python developers on Mac. https://marketplace.visualstudio.com/items?itemName=ms- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found