Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Does Umbraco v9 allow us to add custom cs files in the app_code folder? I have sites that are deployed to an IIS server and I sometimes need to add small pieces of functionality, and rather than do a complete new build & publish, I'd just like to add a CS file, similar to previous versions of Umbraco. Is this still possible in Umbraco v9?
No, you can't, App_Code is no longer a thing in ASP.NET Core. All the code that's part of your project needs to be built before it's published. Luckily, publishing code is also a lot lighter-weight in ASP.NET Core. :-)
Thanks Sebastiaan, makes sense. So if I wanted to add some custom code to hide the 'redirect URLs' dashboard, where would I place a custom class file in the project so that it builds into the project?
Anywhere you want! That's the beauty, it will build any .cs files it finds, in the whole project. 😁
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted