0

I have a asp.net application, in which I have App_code folder with different classes. Whenever I publish my application it creates single App_Code.dll for all classes, which is fine, but now I have to add one more class but I want to publish only that class file. Is it possible??

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Krishna
  • 13
  • 5
  • Unlike forum sites, we don't use "Thanks", or "Any help appreciated", or signatures on [so]. See "[Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts). – John Saunders Mar 13 '13 at 04:26

2 Answers2

0

Then you shouldn't publish, place the code as is and it gets compiled on first user's request. And whenever new class is added, AppPool gets restarted. Of course, this comes with slowness for first user and after that it is similar to what is done with publish.

Sunny
  • 4,765
  • 5
  • 37
  • 72
  • I think in case of website we can place code directly. I think the class library solution works in this case. Thanks – Krishna Mar 13 '13 at 07:21
0

Try with adding new project (Class library ) in solution, add your class file in that project . And use it by adding reference it to in another project.

Naresh
  • 87
  • 4
  • 16