UltravioletFramework / ultraviolet

The Ultraviolet Framework is a .NET game development framework written in C#.
https://github.com/UltravioletFramework/ultraviolet/wiki
MIT License
541 stars 46 forks source link

Building from source key signing #1

Closed JoshuaSmyth closed 9 years ago

JoshuaSmyth commented 10 years ago

I'm getting this error when attempting to run the following command from visual studio command prompt 2010

sn -Vr *,78da2f4877323311

Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved.

Failed to open registry key -- Unable to format error message 00000005

tlgkccampbell commented 10 years ago

Run the command prompt as an administrator. I'll update the documentation.

JoshuaSmyth commented 10 years ago

I have managed to get the samples building and running. After running the command prompt as administrator I was no longer getting the error message, but I still could not run the samples via visual studio as it stated the strong name was failing.

Instead I used the standard command prompt (in administrator mode) Went to the following location: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\

and entered sn -Vr *,78da2f4877323311

After that I could build and run the samples. Now I can look forward to playing around with Ultraviolet

PS: I am on a Win7 64bit AMD machine

tlgkccampbell commented 10 years ago

Thanks for taking the time to sort this out.

I'll take some time to further refine the documentation this weekend. You should have been able to do this through a Visual Studio command prompt, but you have to be sure that you're using one with the 64-bit tool paths registered (marked x64 in the image below) - there's a separate verification skipping list for 32-bit and 64-bit processes.

commandprompts

With Visual Studio 2013 the command prompts are a bit harder to find, but the same idea applies.

commandprompts2013

Since the samples run as 64-bit processes by default on a 64-bit operating system, they require an entry in the 64-bit verification skipping list.

tlgkccampbell commented 9 years ago

As of Ultraviolet 1.1.3, this step is no longer required. The assemblies will only be signed in the "Production" configuration used by the build server; building in either Debug or Release mode will produce unsigned assemblies.