P
Papanii Okai
Hi Guys,
I am trying to use the command line to compile a .cs file to a
dll. I am using the Windows SDK command shell for this. Below is the
command..
C:\Documents and Settings\Papanii Okai\Desktop>csc /t:library HelloWorld.cs
/reference:System.dll
I am referencing the System.dll because i am using System.ServiceModel in my
code but obviously it is wrong. Below is the error I am getting but I don't
know why?
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
HelloWorld.cs(2,14): error CS0234: The type or namespace name 'ServiceModel'
does not exist in the namespace 'System' (are you missing an assembly
reference?)
I tried / reference System.ServiceModel.dll but I got the error.
error CS0006: Metadata file 'System.ServiceModel.dll' could not be found
Any help would be appreciated...
--Papanii
I am trying to use the command line to compile a .cs file to a
dll. I am using the Windows SDK command shell for this. Below is the
command..
C:\Documents and Settings\Papanii Okai\Desktop>csc /t:library HelloWorld.cs
/reference:System.dll
I am referencing the System.dll because i am using System.ServiceModel in my
code but obviously it is wrong. Below is the error I am getting but I don't
know why?
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
HelloWorld.cs(2,14): error CS0234: The type or namespace name 'ServiceModel'
does not exist in the namespace 'System' (are you missing an assembly
reference?)
I tried / reference System.ServiceModel.dll but I got the error.
error CS0006: Metadata file 'System.ServiceModel.dll' could not be found
Any help would be appreciated...
--Papanii