Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing F# Assembly

I'm having a lot of trouble trying to sign a F# class library project. First I've tried this thread, using the AssemblyKeyFileAttribute but had no success. I also tried to add the flag "--keyfile:keyfile.snk" to the project properties ("Other Flags" field in "Build" tab) and It did't worked too. I'm using Visual Studio 2013, and It does not shows the "Signing" tab like C# class library projects.

All the attempts results in the following error:

FSC: error FS2014: A problem occurred writing the binary 'obj\Release\ExcelFinancialFunctions.dll': A call to StrongNameGetPublicKey failed (Value does not fall within the expected range.)

What am I doing wrong?

like image 866
Vinícius Oliveira Avatar asked Jun 05 '15 18:06

Vinícius Oliveira


People also ask

What ASL sign is an F on chin?

The sign for "expert" is done by using an "F" handshape and moving it quickly to the chin. The contact is relatively strong, and the hold is extended. The mouth morpheme is part of this sign.

Are F and 9 the same in sign language?

ANSWER: In general "F" and "9" are done the same. "W" and "6" are also done the same. Once in a while you might see someone put the pad of the thumb on the side of the index finger for "F" (instead of just touching the tips together).

What is the hand signal for I Love You?

To sign I love you, put up your thumb, index finger and pinkie finger, while keeping your ring finger and your middle finger down. Hold the hand out, palm facing away from you and move it back and forth slightly.

How many Handshapes are there in ASL?

In American Sign Language American Sign Language uses 18 handshapes for ordinary signs, plus a few marginal handshapes taken from the American Manual Alphabet for fingerspelling. Not all handshapes occur with every orientation, movement, or location: there are restrictions.


1 Answers

FWIW, here's how I sign ZeroToNine: Instead of using Visual Studio, I do it as part of the build script. Essentially, it's done by using AssemblyOriginatorKeyFile and SignAssembly:

MSBuild.exe /property:AssemblyOriginatorKeyFile=mykey.snk /property:SignAssembly=true

You can see (almost) all the nitty-gritty details in the ZeroToNine repo, including the actual build script I use for signing. The only detail missing from the public repo is the actual .snk file, because it would make no sense to have a strong name key if it was publicly available.

Here's how I call the build script from Bash:

build-release.sh ../ZeroToNine.snk

As you can see, I have my .snk file residing outside of the repo, and pass it in as an argument to the script.

like image 53
Mark Seemann Avatar answered Oct 13 '22 01:10

Mark Seemann