Hello World won't compile

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Dabent7
Posts: 7
Joined: Thu Dec 19, 2019 8:54 am

Hello World won't compile

Post 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?
User avatar
wriedmann
Posts: 3748
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: Hello World won't compile

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Dabent7
Posts: 7
Joined: Thu Dec 19, 2019 8:54 am

Re: Hello World won't compile

Post by Dabent7 »

Wolfgang, I am using the XIDE.

I just tried to compile the example without doing anything.
User avatar
wriedmann
Posts: 3748
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: Hello World won't compile

Post by wriedmann »

Hi Dan,
where you have found the Hello World sample?
The sample applications in XIDE for me are working all.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Dabent7
Posts: 7
Joined: Thu Dec 19, 2019 8:54 am

Re: Hello World won't compile

Post 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 ;}
User avatar
wriedmann
Posts: 3748
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: Hello World won't compile

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply