Solved

Error generating assemblies in Visual Studio. Reference assembly does not have a strong name.

Posted on 2014-03-17
4
2,634 Views
Last Modified: 2014-11-12
I included some assemply's from Google because I want to make an integration to Google Drive in Visual Studio 2013 but I'm getting these errors when I'm trying to make a build of my program in Visual Studio:

Error    5    Assembly generation failed -- Referenced assembly 'Google.Apis' does not have a strong name
Error    1    Assembly generation failed -- Referenced assembly 'Google.Apis.Auth' does not have a strong name
Error    3    Assembly generation failed -- Referenced assembly 'Google.Apis.Auth.PlatformServices' does not have a strong name
Error    4    Assembly generation failed -- Referenced assembly 'Google.Apis.Core' does not have a strong name
Error    2    Assembly generation failed -- Referenced assembly 'Google.Apis.Drive.v2' does not have a strong name

I'm told that the error is there because my assembly isn't signed. I found some guides to sign my assembly but unfortunately I haven't had success doing it.

I don't need a link to a tutorial on the web, but a simpel guide in what to do to sign each assembly (e.g. Google.Apis.Drive.v2). I really hope you experts can help.
0
Comment
Question by:154115
  • 3
4 Comments
 
LVL 5

Expert Comment

by:Attlax
ID: 39934978
0
 

Author Comment

by:154115
ID: 39935369
I tried to follow the guide in the tutorial linked to in the stack overflow article but it didn't work:
http://buffered.io/posts/net-fu-signing-an-unsigned-assembly-without-delay-signing/

For some reason I can't rebuild and sign the assembly from the Command Window in Windows like this:
C:\Foo\bin> ilasm /dll /key=Foo.snk Bar.il
0
 

Accepted Solution

by:
154115 earned 0 total points
ID: 39944984
I found out how to get rid of the messages:

In the project properties i selected the tab "signing" and removed the checkmerk where it says "Sign the assembly". I know the assemblies isn't signed but at least the errors are gone. If anybody knows a good way to sign the assemblies don't hesitate to write it her but I'll close the question.
0
 

Author Closing Comment

by:154115
ID: 39955460
I didn't find a way to assign the assemblies but I found a way get rid of the error messages. Read the answer for more info.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will demonstrate using Google Doc how to import live data to another spreadsheet in Google Spreadsheets using the IMPORTRANGE function.
This Micro Tutorial demonstrates how to quickly find related content for YourTango's posts using MozBar Chrome extension.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now