Can you do C# Programming without using Visual Studio?

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
357mag
Posts: 18
Joined: Sun Apr 24, 2016 9:48 pm

Can you do C# Programming without using Visual Studio?

Post by 357mag » Tue Dec 12, 2017 7:38 am

Just wondering if a guy can do C# with a text editor like Zeus or whatever else. Reason I ask is because I would imagine you would have to download the C# Development Kit or whatever you call it. And does Microsoft allow this? Where can the C# Development Kit be downloaded from?

jussij
Site Admin
Posts: 2508
Joined: Fri Aug 13, 2004 5:10 pm

Re: Can you do C# Programming without using Visual Studio?

Post by jussij » Tue Dec 12, 2017 12:20 pm

Reason I ask is because I would imagine you would have to download the C# Development Kit
Yes, you can write C# without Visual Studio.

To start with, you will need to download the .NET SDK from here: https://www.microsoft.com/en-us/downloa ... x?id=53321

As the details from that link suggests:

Developers can use this package to install all the different components for .NET 4.6.2 and build applications targeting the .NET Framework 4.6.2 using either Visual Studio 2015, Visual Studio 2013, Visual Studio 2012 or third party IDEs.

For details on how to use Zeus for C# refer to this link: viewtopic.php?f=5&t=1235&p=2699#p2699

Cheers Jussi

357mag
Posts: 18
Joined: Sun Apr 24, 2016 9:48 pm

Re: Can you do C# Programming without using Visual Studio?

Post by 357mag » Thu Dec 14, 2017 6:00 pm

Okay I got the C# Tools and Compiler installed and added to my Path. I wrote some simple code inside Zeus and it compiled fine. My question is do I have any options in controllling the output window?

Currently as you will see in the screenshot I uploaded there is the copyright information and other stuff like version information etc. at the top of the output window and then after that I see the actual output from my program.

Is there a way to clean up the output window so only the output from my program shows?
Attachments
Zeus Output Window.jpg
Zeus Output Window.jpg (92.2 KiB) Viewed 898 times

jussij
Site Admin
Posts: 2508
Joined: Fri Aug 13, 2004 5:10 pm

Re: Can you do C# Programming without using Visual Studio?

Post by jussij » Thu Dec 14, 2017 9:10 pm

Is there a way to clean up the output window so only the output from my program shows?
The only way to control this is via the scripting layer using the scripting functions shown below:

Code: Select all

int file_open_tool(string file name [,string caption] [,add_copyright = 1])
int file_open_project(string file name [,string caption] [,add_copyright = 1])
int file_open_compiler(string file name [,string caption] [,string source file], [add_copyright = 1])
These functions will load a file into a new windows and they have the option to not include the copyright banner.

So to do this you would need write a new macro that runs the executable, captures the output to file and then loads the output using one of the functions above.

However, that approach will run into issues if you ever run and executable that you expects users input :!:

FYI currently executables are run using the macro below and it also does handle the case where the executable expects user input:

Code: Select all

$zud\zScript\run_exec.lua
To open that file in Zeus paste that line into a new Zeus document, select the line and then use the and then use the View, Open File menu.

Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 7 guests