Answer the question
In order to leave comments, you need to log in
How to solve the problem with adding regular classes to a legacy project on webforms?
Good afternoon.
I had a chance to come across a legacy project (10 years old, it seems) on a sharp, which was written without any special, so to speak, frills.
The goal is refactoring.
Accordingly, the first thing that I needed was to allocate a bunch of logic from the hardcode in routes somewhere else.
And here's the problem - all my added files are not recognized in any way on endpoints (errors of the level of unknown namespaces, classes, etc.). Because I myself worked very little with Sharpe, then, apparently, I could not even form a sane request to Google, which would give me an answer. The work is not carried out through the studio and not locally. If experienced guys here have an answer to this situation, I will be glad to hear.
Answer the question
In order to leave comments, you need to log in
In general, everything turned out to be very simple. I don't know why it took me so long to find it. As a result, I came across this while sorting through all the possible configuration options. For the "left" code, it was necessary to create the "App_Code" directory in the root of the project, and in the config in the compilation section specify the subdirectories in codeSubDirectories.
https://msdn.microsoft.com/en-us/library/54dwfbb7(...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question