PC Review


Reply
Thread Tools Rate Thread

RE: Regarding AssemblyInfo and Snk file

 
 
=?Utf-8?B?TWFyaw==?=
Guest
Posts: n/a
 
      21st Jan 2007
Hi Pradeep...

The old way of strong-naming was to add a couple of attributes to
AssemblyInfo.cs for your project- something along the lines of
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\Kitchen.snk")]
and that would effect the signing on build.

In VS 2005, thought, you can go to the Properties of your project and
specify the snk file to use for signing there, and not keep it in the code.

Thanks
-mark


"SqlBeginner" wrote:

> Hi,
>
> 1. Using Visual Studio .NET 2005 I created a sample ASP.NET (C#) based
> Website in my PC.
> 2. Now using Sn.exe tool i created a .snk file and copied to my project
> folder.
> 3. Now based on an article which i read sometime back i need to refer this
> .snk file within a "AssemblyInfo.cs" file. But in this newly created project
> (via VS.NET 2005) I don't see an assemblyinfo file at all!!
>
> Am i missing something?
>
> Regards
> Pradeep

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3FsQmVnaW5uZXI=?=
Guest
Posts: n/a
 
      22nd Jan 2007
Hi Mark,

Thanks for the response. It partially helped. For all of my class library
project I am able see "Signing" tab within its property page. Where as for
the UI project which i have created as "Website" (HTTP mode). Can you throw
somelight on this?

Regards
Pradeep

"Mark" wrote:

> Hi Pradeep...
>
> The old way of strong-naming was to add a couple of attributes to
> AssemblyInfo.cs for your project- something along the lines of
> [assembly: AssemblyDelaySign(false)]
> [assembly: AssemblyKeyFile(@"..\..\Kitchen.snk")]
> and that would effect the signing on build.
>
> In VS 2005, thought, you can go to the Properties of your project and
> specify the snk file to use for signing there, and not keep it in the code.
>
> Thanks
> -mark
>
>
> "SqlBeginner" wrote:
>
> > Hi,
> >
> > 1. Using Visual Studio .NET 2005 I created a sample ASP.NET (C#) based
> > Website in my PC.
> > 2. Now using Sn.exe tool i created a .snk file and copied to my project
> > folder.
> > 3. Now based on an article which i read sometime back i need to refer this
> > .snk file within a "AssemblyInfo.cs" file. But in this newly created project
> > (via VS.NET 2005) I don't see an assemblyinfo file at all!!
> >
> > Am i missing something?
> >
> > Regards
> > Pradeep

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AssemblyInfo.cs Water Cooler v2 Microsoft C# .NET 1 19th Jan 2008 02:27 PM
AssemblyInfo.cs =?Utf-8?B?TXJOb2JvZHk=?= Microsoft C# .NET 2 4th Jan 2005 06:29 PM
AssemblyInfo.cpp mphanke Microsoft VC .NET 1 28th Jul 2004 12:55 PM
How to set Author, Category Info from AssemblyInfo.ce file Santosh Microsoft C# .NET 2 9th Jan 2004 03:49 AM
AssemblyInfo Scott Perez Microsoft Dot NET Framework Forms 2 29th Sep 2003 03:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 PM.