Ho to create Dll in C# if aditional asemblies includes?
===

i have created a c# console application that contains the namespaces System and System.data

additionally i hav added Microsoft.sqlserver.smo.

when i try to comile from command prompt it shows the error as


SqlSmoDiscovery.cs(3,27): error CS0234: The type or namespace name 'Management'
        does not exist in the namespace 'Microsoft.SqlServer' (are you missing
        an assembly reference?)
SqlSmoDiscovery.cs(4,27): error CS0234: The type or namespace name 'Management'
        does not exist in the namespace 'Microsoft.SqlServer' (are you missing
        an assembly reference?)


But it compiles from visualstudio.

I am compiling from command propt to hav output as pure c# dll


plz Help me
