简体   繁体   中英

Generating classes for Kentico objects

Kentico is installed in Azure. And I'm working with a MVC website.

I'm trying to follow the this Kentico docs article to generate classes for my custom content-only page type. According to the article, after clicking Save, by default the generated classes should be created in ~/App_Code/CMSClasses folder. But I don't see them.

Click show all files in Visual Studio :

在此处输入图片说明

Or add existing item .

PS Connect with FTP or use kudu tools , they will let you browse directory structure and files on-line

I've just run through most of the scenario that you describe in an instance of Kentico 11 in an Azure App Service. I used Kudo to look at the file system and the files are definitely created as described in the documentation. Rather than connecting through Visual Studio, try using a standard FTP client to see if the files are where you need them to be.

As I said in the comment, if your solution uses a web application rather than a website project, then you'll need to manually add the existing files into the project as @shof says in his answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM