简体   繁体   中英

The file designer.cs is incorrectly nested in the Solution Explorer and cannot be moved

I am using DotNetNuke 9.0.01. Here I created a module in Visual Studio and installed it in the DNN extensions. I didn't use the installation file but the one with the source code. Unfortunately now the file View.ascx.designer.cs is not below the View.ascx. It is outside the code-behind.

This also leads to the problem that intellisense doesn't know the attributes and therefore I can't use them. This in turn leads to the fact that I cannot compile. So it's not just a display problem.

I have tried to exclude the files from the project and include them again. But that doesn't work. I have also tried to modify the .csproj file. But that doesn't work either. I have also looked up at the properties but didn't find a solution.

I expected the datastructure to be like that:

>View.ascx
>>View.ascx.cs
>>View.ascx.designer.cs

But it is like that:

>View.ascx
>>View.ascx.cs
>View.ascx.designer.cs

I've solved the problem by myself. So basically I have to say that I use DotNetNuke (DNN) 9.0.01 as I already wrote in my question. For this I created a new module via Visual Studio and then installed this module in the DotNetNuke web interface. It is important to use the Install.zip and not the source.zip. Furthermore the location of the module is very important. This must be located in the folder "DesktopModules". Already when creating the module! If you want to edit the module now, you have to open in Visual Studio the solution of the module and not the whole DotNetNuke project. That was my mistake. If you open the solution of the module, all files are nested correctly. If you now make changes to the module and rebuild the module, all changes in the entire DotNetNuke project will be applied.

Thanks anyway to everyone who tried to help me.

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