How to run a command line console application?

Hello all.  I need to run this command line console application on a machine where SSIS business intelligence studio exists but I dont have the C# environment etc.  How do I create this and run it on my server?  I do have the .Net studio on another machine
using System;
using Microsoft.Win32;
namespace CheckClsidPerm
    class Program
        static void Main(string[] args)
            RegistryKey clsid = Registry.LocalMachine.OpenSubKey(@"Software\Classes\CLSID");
            string[] clsids = clsid.GetSubKeyNames();
            Console.WriteLine("found {0} keys", clsids.Length);
            foreach (string s in clsids)
                    using(RegistryKey clsidKey = clsid.OpenSubKey(s))
                        using(RegistryKey ic = clsidKey.OpenSubKey("Implemented Categories"))
                catch( Exception e )
                    Console.WriteLine("error while reading key {0}: {1}", s, e.Message);

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if you have the c# environment on your other machine, you can walk over there.. and create a new console application and copy past the code build it, and copy the project output to your other machine.
You will have to have the .Net framework installed on the server.

Hello sbornstein2

After compiling your application in the Visual Studio, you have the sub folders <ProjectFolder>\Bin\Release or <ProjectFolder>\Bin\Debug with an the compiled .exe in it.

You can copy this file to the Server.

On the server, the .Net Fraemwork must be installed.

If you have not only the the Express edition of the Visual Studio, you can add a deployment project to your solution. Use the context menu on the solution node and a new setup and deployment project with the wizard. A screen shot is attached

Teh result is a installable .msi file


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.