Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I'm having a compiled built running website on aspx.

I've got the aspx and aspx.cs files , is it possible to modify the code aspx.cs without the need of building the project again?

Thank You :)

What I have tried:

Did not try anything specific because i do not have the project in visual studio
Posted
Updated 24-Sep-17 1:26am

1 solution

The code in the ASPX.CS is compiled into the corresponding DLL so you can not change it without re-compile and re-distribute...
On the other hand ASPX is compiled by IIS and can be altered without re-compiling (on re-distributing)...
 
Share this answer
 
Comments
Member 13426453 24-Sep-17 20:05pm    
Thank you very much for your reply.
Can only compile one aspx.cs file by itself without compiling the whole project? amd just replace it with its corresponding DLL file?
Once again, Thanks for sharing!
Kornfeld Eliyahu Peter 25-Sep-17 2:07am    
The smallest unit of compilation in .NET is project, and that's because the external dependencies are handled on the project level (in contrast to the C++ #incluce and header files). If there are more than one CS files they will be compiled into a single DLL...
So the answer is no...
Member 13426453 25-Sep-17 5:21am    
1.I see, so assuming that I have the whole project compiled and running including the aspx and aspx.cs files, can I build them again using Visual Studio by just taking the already compiled built files and folders and rebuild them again?
2. what are other methods to compile asp.net project without visual studio? like terminal command line or any other alternative?
Kornfeld Eliyahu Peter 25-Sep-17 5:38am    
1. Not clear what you are asking for... The procedure 'compilation' means to translate code to executable, so without the source there is no 'compilation'...
2. There is the command line compiler for that: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900