Solved

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

Posted on 2014-03-17
4
2,600 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will introduce a Google tool, which is a great way to learn more about dimensions in metrics in Google Analytics, even if you use the interface or the API.
By using UNIQUE function in Google Sheets, you can get around removing duplicates like in Microsoft Excel.

760 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

24 Experts available now in Live!

Get 1:1 Help Now