xsharp.eu • Hello World won't compile
Page 1 of 1

Hello World won't compile

Posted: Wed Feb 07, 2024 9:44 am
by Dabent7
Just installed X# and attempted to compile the Hello World example. I get the following: error XS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) 5,36 Start.prg Form1:Form1
error XS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) 7,37 Start.prg Form1:Form1
error XS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) 8,38 Start.prg Form1:Form1
error XS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) 9,38 Start.prg Form1:Form1
Build failed

What am I doing wrong?

Re: Hello World won't compile

Posted: Wed Feb 07, 2024 9:57 am
by wriedmann
Hi Dan,
maybe you are missing the System.Windows.Forms in the dependencies.
Do you are using XIDE or Visual Studio as IDE?
Wolfgang

Re: Hello World won't compile

Posted: Wed Feb 07, 2024 9:59 am
by Dabent7
Wolfgang, I am using the XIDE.

I just tried to compile the example without doing anything.

Re: Hello World won't compile

Posted: Wed Feb 07, 2024 10:23 am
by wriedmann
Hi Dan,
where you have found the Hello World sample?
The sample applications in XIDE for me are working all.
Wolfgang

Re: Hello World won't compile

Posted: Wed Feb 07, 2024 10:09 pm
by Dabent7
Wolfgang, I had installed X# some time back and not really done much with it. I installed the new version last night and there was an Hello World app, that I tried to compile. It gave me the error as I noted in my previous post. I completely uninstalled X# and reinstalled. When I did the reinstall, the hello World app was gone...so...I guess I don't need to figure the problem out any more ;}

Re: Hello World won't compile

Posted: Thu Feb 08, 2024 4:59 am
by wriedmann
Hi Dan,
I don't remember any "Hello World" sample in X#, maybe it was an incomplete sample and therefore removed.
If you need any help, please ask here - there will be always someone to help.
Wolfgang