Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

snk file & rss.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kronrn@yahoo.com - 18 Aug 2006 22:32 GMT
Hi Folks

thanks for taking the time to read this post.

I'm using the RSS.Net class library which can be found at

http://rss-net.sourceforge.net/

It works fine but when I come to build a release version I'm informed
that the snk file cannot be found. It doesn't appear to exist so that's
not unexpected.

A file in the project, AssemblyInfo.cs, contains the lines

#if !DEBUG
[assembly: AssemblyKeyFile("..\\..\\rss.snk")]

I haven't worked with snk files before and wondered if anyone can give
me a hint on how best to address this. Removing the above lines allows
a release build to be built successfully.

Is the snk file something I should create myself, using the appropriate
tools to create public/private keys and so on?

Apologies if this question is a bit vague, I've only just started
reading about snk files so my knowledge is limited at present.

TIA

Kron
Dan Normington - 21 Aug 2006 10:07 GMT
I think the only reason for using the SNK file is to allow your assembly to
be added to the GAC. If you don't plan on adding it to the GAC then you
could probably just remove the code. I tend to give all my framework
libraries strong names by using the SNK file, but it is just a preference.
If you want to you can just generate a SNK file for your project like so:

sn -k NameOfFile.snk

> Hi Folks
>
[quoted text clipped - 26 lines]
>
> Kron
Andreas Mueller - 21 Aug 2006 10:28 GMT
> I think the only reason for using the SNK file is to allow your assembly to
> be added to the GAC.

The main thing is that it does sign your assembly to prevent tampering.
http://tinyurl.com/hscfb

> If you don't plan on adding it to the GAC then you
> could probably just remove the code.

You should check the licence of the library. If you are allowed to
modify the code and rebuild it, this is an option. However, I would
recommend to get a binary build or the snk file of the library and use
that instead to prevent possible version conflicts. (E.g. a different
incompatible version of the library in the GAC on a target machine)

HTH,
Andy
Dan Normington - 21 Aug 2006 11:06 GMT
Andreas,
   Good point on the tampering. I checked out the site and it appears to be
open source so he should be able to change the code.

>> I think the only reason for using the SNK file is to allow your assembly
>> to be added to the GAC.
[quoted text clipped - 13 lines]
> HTH,
> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.