Share via


program.cs file is missing in windows and console application

Question

Sunday, December 20, 2015 12:04 PM

Have recently installed Microsoft Visual Studio 2013 express for windows desktop. The problem is that if i open windows application or console application, it is not showing program.cs (default) file. Can some body help me out to solve this issue. 

Regards Jens

All replies (6)

Thursday, December 24, 2015 2:53 AM ✅Answered | 1 vote

Hi Jens,

From you image you offered. I found the behavior is correct in your Visual Studio.

The "program.cs" file only exist in C#  Console Application. And you created a VB Console Application.

That’s the cause that you can’t see the "program.cs" file.

Also I did a test in my VS2013 Express. Same behavior to you:

Best Regards,

Lake Xiao


Monday, December 21, 2015 2:49 AM

Hi Jens,

>> The problem is that if i open windows application or console application, it is not showing program.cs (default) file.

Personally I would guess it as the template incorrect, if you create a blank application with other types, will the same issue happen?

We have the Visual Studio General forum that can help you with such question.

I will move the question to that forum for a better support, thanks for your understanding.

--James

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, December 22, 2015 9:21 AM

Hi Jens,

I suggest you may try to create a new bank app and check if the error still occurred at first.

1. If the error even occurred for the new Console application.

In this case, I think some operations corrupt your Winforms and Console templates in Visual Studio.

For this case, reinstalling and installing looks best solution for you.

2. If the program.cs (default) file is shown in the new created console application.

I suppose the program.cs  file in your project may be deleted. I suggest you to check the directory of the project and check whether the . program.cs  file is existed.

On the other hand, I suggest you’d better install VS2013 express update5 or use VS2015 community instead it. It is also a free version VS.

                                                                                                                                              

Best Regards,

Lake Xiao


Wednesday, December 23, 2015 5:07 PM

Hello Lake Xiao

I tried to download VS2013 express update5, but stil as you can see on the image. Its not show "program.cs"

in console application. I really dont know how to fix this. 

I cant post image https://gyazo.com/e08b80f68451778982e14510d169b9c4 <-- link to image

Regards Jens


Thursday, December 24, 2015 10:22 AM

Hello Lake Xiao 

Thank you so much! It works now.

Merry christmas and happy new year! :)

Regards Jens


Friday, December 25, 2015 1:31 AM

Hi Jens,

Merry Christmas to you.

Glad to hear your issue has been solved.

If possible. Please mark the reply which is helpful as the answer, so it would be helpful for other members who get the same issue as yours to research and find the answer directly, and I could close this case.

Have a nice day.

Best Regards,

Lake Xiao