Solved

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

Posted on 2014-03-17
4
2,832 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If your app took Google’s lash recently, here are the 5 most likely reasons.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.

623 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