Application in C#

S

shapper

Hello,

I am not very familiar with windows applications. I work more with NET
applications.

But can I create a simple C# application (maybe Console application)
that when I run it it will:
1. Ask the user to choose "a", "b" or "a and b";
a. Create records on a SQL server database tables.
b. Run another exe application as follows:
packer.exe -m file1 -jsmin file2

I don't know what type of application should I use and how to create
the menu and run the packer.exe application;

Could someone give me some tips on this?

Thank You,
Miguel
 
A

Arne Vajhøj

shapper said:
I am not very familiar with windows applications. I work more with NET
applications.

But can I create a simple C# application (maybe Console application)
that when I run it it will:
1. Ask the user to choose "a", "b" or "a and b";
a. Create records on a SQL server database tables.
b. Run another exe application as follows:
packer.exe -m file1 -jsmin file2

I don't know what type of application should I use and how to create
the menu and run the packer.exe application;

Could someone give me some tips on this?

Either Windows GUI or console depending on your preferences.

SqlConnection & SqlCommand classes to insert records in database.

Process class (in System.Diagnostics) to run the exe.

Arne
 
S

shapper

Do you mean ".NET application"?

Basically I have a solution with the following projects:
A) MyApp.Core [C# CLASS Library]
B) MyApp.SqlDataProvider [C# CLASS Library]
C) MyApp.Mvc [ASP.NET MVC Library]

Basically once or more then once I need to do two things:
1. Insert data into the database (but without the need to run the
site);
2. Call Packer.exe to minify the CSS and JS files.

I have all the linq code for (1) and a Bat file with all the code for
(2)

I just would like to add a project to my solution that would execute
my linq code or call packer.exe.
This way I don't need to run the site to insert data or click the
packer.bat.

Do you understand?
I can't create a class library because it does not run like that.
I don't want to use site application for this.

So is a Console Application Project that I should create. Is there it?

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top