Domanda

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??

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top