Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
GeneralAnakrino Pin
stephen woolhead29-Jul-02 1:05
stephen woolhead29-Jul-02 1:05 
GeneralRe: Anakrino Pin
Andy Smith29-Jul-02 7:07
Andy Smith29-Jul-02 7:07 
GeneralRe: Anakrino Pin
leppie29-Jul-02 8:12
leppie29-Jul-02 8:12 
GeneralRaising events in C# ASP.NET app. Pin
Naresh Karamchetty28-Jul-02 14:24
Naresh Karamchetty28-Jul-02 14:24 
GeneralRe: Raising events in C# ASP.NET app. Pin
Andy Smith28-Jul-02 21:50
Andy Smith28-Jul-02 21:50 
Generaldatabase Pin
Shotgun28-Jul-02 12:40
Shotgun28-Jul-02 12:40 
GeneralRe: database Pin
James T. Johnson28-Jul-02 13:41
James T. Johnson28-Jul-02 13:41 
GeneralSigning an assembly Pin
afronaut28-Jul-02 11:53
afronaut28-Jul-02 11:53 
Hey all - I've been trying to get this to work all morning. I have a .cs file that looks like the following:
<br />
using System;<br />
[assembly: AssemblyKeyFile(@".\MyPair.snk")]<br />
namespace Seruyange.David.Examples{<br />
    public class StrongName{<br />
        public void test(){<br />
            // just a test method<br />
            Console.WriteLine("This is a test...");<br />
        }<br />
        public static void Main(){<br />
            // the main, for perfunctory sake<br />
            Console.WriteLine("Here is main");<br />
        }<br />
    }<br />
}<br />


I generated the .snk file okay. I try compiling with the following:
<monospace>
csc /out:test.exe TestAssembly.cs


But I always get the error:
Type or namespace name 'AssemblyKeyFile' could not be found (are you missing a using directive or assembly reference)

Can anyone help? I'm just trying to generate a strong name.

*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
GeneralRe: Signing an assembly Pin
Nnamdi Onyeyiri28-Jul-02 12:51
Nnamdi Onyeyiri28-Jul-02 12:51 
GeneralRe: Signing an assembly Pin
afronaut28-Jul-02 12:56
afronaut28-Jul-02 12:56 
QuestionHow to create a drag box? Pin
albean28-Jul-02 4:50
albean28-Jul-02 4:50 
GeneralListBox linked to Database Pin
laphijia28-Jul-02 4:34
laphijia28-Jul-02 4:34 
GeneralControl inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 11:41
Nnamdi Onyeyiri27-Jul-02 11:41 
GeneralRe: Control inside a panel Pin
Ray Cassick27-Jul-02 12:51
Ray Cassick27-Jul-02 12:51 
GeneralRe: Control inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 12:55
Nnamdi Onyeyiri27-Jul-02 12:55 
GeneralRe: Control inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 13:01
Nnamdi Onyeyiri27-Jul-02 13:01 
GeneralRe: Control inside a panel Pin
Luis Alonso Ramos27-Jul-02 20:49
Luis Alonso Ramos27-Jul-02 20:49 
GeneralRe: Control inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 21:42
Nnamdi Onyeyiri27-Jul-02 21:42 
GeneralRe: Control inside a panel Pin
Luis Alonso Ramos27-Jul-02 22:07
Luis Alonso Ramos27-Jul-02 22:07 
Questionsubclass tabpage? Pin
naijatexanstud27-Jul-02 9:46
naijatexanstud27-Jul-02 9:46 
AnswerRe: subclass tabpage? Pin
Nathan Blomquist27-Jul-02 12:55
Nathan Blomquist27-Jul-02 12:55 
GeneralSuspending redraws of a form Pin
Luis Alonso Ramos26-Jul-02 10:12
Luis Alonso Ramos26-Jul-02 10:12 
GeneralRe: Suspending redraws of a form Pin
Andres Manggini26-Jul-02 10:53
Andres Manggini26-Jul-02 10:53 
GeneralRe: Suspending redraws of a form Pin
leppie26-Jul-02 22:32
leppie26-Jul-02 22:32 
GeneralRe: Suspending redraws of a form Pin
James T. Johnson27-Jul-02 0:14
James T. Johnson27-Jul-02 0:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.