[Mono-list] xbuild / System.Diagnostics.Process "error CS0246: The type or namespace name `Process' could not be found"

efontana eric at fontanas.net
Mon Jul 20 12:27:16 EDT 2009


My first experience isn't so great with xbuild (What am I doing wrong?)

1. Using Visual Studio 2005, I built a simple test program
"WindowsApplication'
2. I added a using System.Diagnostics
3. I declared Process p = null;
4. using "mono program.exe" works fine
5. Next, I tried to compile the whole thing on Linux using xbuild

Now I get this error:

XBuild Engine Version 0.1
Mono, Version 2.4.0.0
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 7/16/2009 9:51:05 AM.
__________________________________________________
Project
"/home/cds/eric/cs/apps/WindowsApplication1/WindowsApplication1.csproj"
(Build target(s)):

Target PrepareForBuild:
                Configuration: Debug Platform: AnyCPU
                Created directory "bin/Debug/"

Target ResolveAssemblyReferences:
:  warning : Reference System.Deployment not resolved

Target CoreCompile:
                Tool /o/tools/linux/mono-2.4/bin/gmcs execution started with
arguments: /noconfig /debug:full /debug+ /optimize-
/out:bin/Debug/WindowsApplication1.exe Form1.cs Form1.Designer.cs Program.cs
Properties/AssemblyInfo.cs Properties/Resources.Designer.cs /target:winexe
/unsafe- /define:DEBUG;TRACE
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System/2.0.5.0__7cec85d7bea7798e/System.dll
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
/reference:/o/tools/linux/mono-2.4/lib/mono/gac/System.Xml/2.0.5.0__7cec85d7bea7798e/System.Xml.dll
/warn:4
Form1.cs(14,9):   error CS0246:  The type or namespace name `Process' could
not be found. Are you missing a using directive or an assembly reference?

Build succeeded.
         1 Warning(s)
         2 Error(s)

Time Elapsed 00:00:01.0271260

Why can't It find "Process" ??
-- 
View this message in context: http://www.nabble.com/xbuild---System.Diagnostics.Process-%22error-CS0246%3A--The-type-or-namespace-name-%60Process%27-could-not-be-found%22-tp24516947p24516947.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list