[Mono-list] error CS0246: The type or namespace name `PrivateKey' could not be found

viraj kalinga at gmail.com
Thu Feb 22 23:15:53 EST 2007

hi all,
i'm trying to compile a small command line application..

using System;
using System.IO;
using System.Text;
using Mono.Security.Authenticode;
public class PrivateKeyTest {
        private const string testfilein = "testin.pvk";
        private const string testfileout = "testout.pvk";
        public static void Main ()
                PrivateKey pvk = PrivateKey.CreateFromFile
(testfilein, "my_actual_password");
                pvk.Save (testfileout);

i keep getting this message,

viraj:/home/viraj# mcs s.cs
s.cs(10,17): error CS0246: The type or namespace name `PrivateKey'
could not be found. Are you missing a using directive or an assembly
Compilation failed: 1 error(s), 0 warnings

in mono api reference, it says this 'PrivateKey' resides in
Mono.Security.Authenticode.PrivateKey Class.

i'm on debian etch, and my mono version is..

Mono JIT compiler version, (C) 2002-2006 Novell, Inc and
Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Disabled:      none

am i missing anything here? is there a command to list/dump all
available mono namespaces in my box, to a file?

thank you.


More information about the Mono-list mailing list