[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
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
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 7/16/2009 9:51:05 AM.
(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
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