dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.25k stars 5.89k forks source link

sn.exe not available on unix #7183

Open Mizux opened 6 years ago

Mizux commented 6 years ago

Binary sn.exe is not provided by .Net Core SDK 2.1.302 on unix (but it is by mono...) IMHO dotnet/cli should be a standalone replacement for mono (when migrating to netstandard2.0/netcoreapp2.1) so needing mono to get the sn.exe binary to be able to sign seems odd to me...

My current workaround is to create a CreateSigningKey.csproj project targeting netcoreapp2.1 (since there are issue on unix with relative path Directory.GetCurrentDirectory() in netcoreapp2.0 dotnet/cli#9319 -_-) to generate the key without depending on mono (or Visual Studio) cf: https://github.com/google/or-tools/tree/v6.8/tools/dotnet/CreateSigningKey usage: dotnet run --project CreateSigningKey/CreateSigningKey.csproj foo.snk


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Backup-eric645 commented 5 years ago

Try a virtual machine.

A virtual machine (VM) is an embedded computer used to separate runtimes or run different operating systems.

Mizux commented 5 years ago

@Backup-eric645 needing a docker with mono installed just to run the sn.exe to be able to sign a simple project under a unix machine is not an option IMHO.

dotnet-bot commented 3 years ago

This issue has been closed as part of the issue backlog grooming process outlined in #22351.

That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.

Mizux commented 3 years ago

@dotnet/docs friendly ping.

ps: note tested the .Net5 SDK but I think this issue is still open...