BlinkStickDotNet icon indicating copy to clipboard operation
BlinkStickDotNet copied to clipboard

Assembly Generation Failed

Open TheMeq opened this issue 10 years ago • 8 comments

When building, getting an error message.

Error 1 Assembly generation failed -- Referenced assembly 'LibUsbDotNet' does not have a strong name HidSharp

Error 6 Metadata file 'C:\Users***\Desktop\BlinkStickDotNet-master\Components\bin\HidSharp.dll' could not be found BlinkStickDotNet

TheMeq avatar Feb 20 '15 14:02 TheMeq

Are you using Xamarin or Visual Studio?

arvydas avatar Feb 20 '15 19:02 arvydas

Visual Studio 2010 Express and Visual Studio Community 2013

Sent from my iPhone

On 20 Feb 2015, at 19:15, Arvydas Juskevicius [email protected] wrote:

Are you using Xamarin or Visual Studio?

— Reply to this email directly or view it on GitHub.

TheMeq avatar Feb 20 '15 19:02 TheMeq

Go to LibUsbDotNet project properties, open Signing page, check Sign the assembly checkbox and use the snk key Components\LibWinUsb\LibUsbDotNet.snk.

Don't know why but when I change projects from Xamarin Studio to Visual Studio this setting gets lost. I'll try to fix this and ensure that it's added into the repository.

arvydas avatar Feb 20 '15 19:02 arvydas

This setting is already filled in, and re browsing for this does not resolve the issue.

Sent from my iPhone

On 20 Feb 2015, at 19:23, Arvydas Juskevicius [email protected] wrote:

Go to LibUsbDotNet project properties, open Signing page, check Sign the assembly checkbox and use the snk key Components\LibWinUsb\LibUsbDotNet.snk.

Don't know why but when I change projects from Xamarin Studio to Visual Studio this setting gets lost. I'll try to fix this and ensure that it's added into the repository.

— Reply to this email directly or view it on GitHub.

TheMeq avatar Feb 20 '15 19:02 TheMeq

Looking into this now.

arvydas avatar Feb 20 '15 19:02 arvydas

Do you have pre built binaries available to download?

Sent from my iPhone

On 20 Feb 2015, at 19:25, Arvydas Juskevicius [email protected] wrote:

Looking into this now.

— Reply to this email directly or view it on GitHub.

TheMeq avatar Feb 20 '15 19:02 TheMeq

Will build them and attach them here. I'm planning on adding the library to Nuget package list for super easy installation. The problem is that I'm still adding features as I'm working on the new version of Client application.

arvydas avatar Feb 20 '15 19:02 arvydas

Ok, I got it to compile by:

  • unchecking "Sign the assembly" on LibUsbDotNet
  • Rebuild LibUsbDotNet
  • check "Sign the assembly" on LibUsbDotNet
  • Rebuild LibUsbDotNet
  • Rebuild HidSharp
  • Rebuild BlinkStickDotNet

Download from here:

https://www.blinkstick.com/system/releases/windows/BlinkStickDotNet-2906bc50-binary-2015-02-20.zip

arvydas avatar Feb 20 '15 19:02 arvydas