简体   繁体   中英

Compile C# code on server

I am using a remote windows VM to edit/develop a survey system. Using Microsoft Visual Web Developer 2010 Express as my IDE. I want to compile this project but the option is disabled. I'm not even sure if it has to be compiled, though.

(A) Is it possible this is being compiled on runtime?

(B) Is there a way to check if this is working correctly?


This is the master folder:

应用程序的主文件夹

And this is the App_Code folder:

App的App_Code文件夹

When I have the any file open, the Debug > Start Debugging (F5) option is disabled and there are no other “Compile” options. I've tried compiling everything as a folder and don't think that worked either.

Thank you in advance.

~ EDIT ~

The Solutions Explorer Window looks like this:

Solutions Explorer窗口

RESOLVED

The server automatically compiles the code on run.

Thank you @Ňuf

I'm suspicious that you are missing project file. If this is the case, go to File->New Project->ASP.NET Web Application->OK and then in Solution Explorer right-click on project->Add->Existing Item and select all files that you created earlier, to add them to the project. After that, menu item Debug->Start debugging should be available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM