文件designer.cs错误地嵌套在解决方案资源管理器中,无法移动 [英] The file designer.cs is incorrectly nested in the Solution Explorer and cannot be moved

查看:102
本文介绍了文件designer.cs错误地嵌套在解决方案资源管理器中,无法移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DotNetNuke 9.0.01。在这里,我在Visual Studio中创建了一个模块,并将其安装在DNN扩展中。我没有使用安装文件,而是使用了带有源代码的文件。不幸的是,现在文件View.ascx.designer.cs不在View.ascx下。

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.

这也导致了intellisense不知道属性的问题,因此我无法使用它们。反过来,这导致我无法编译。因此,这不仅仅是显示问题。

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.

我试图从项目中排除文件,然后再次包含它们。但这是行不通的。我也尝试修改.csproj文件。但这也不起作用。我也查看了属性,但是没有找到解决方案。

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

但这是这样的:

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


推荐答案

我自己解决了这个问题。所以基本上我不得不说,我使用的是DotNetNuke(DNN)9.0.01,正如我在问题中已经写过的那样。为此,我通过Visual Studio创建了一个新模块,然后将该模块安装在DotNetNuke Web界面中。重要的是使用Install.zip而不是source.zip。此外,模块的位置非常重要。它必须位于文件夹 DesktopModules中。已经在创建模块时使用!如果要立即编辑模块,则必须在Visual Studio中打开模块的解决方案,而不是整个DotNetNuke项目。那是我的错如果您打开模块的解决方案,则所有文件均正确嵌套。如果现在更改模块并重建模块,则将应用整个DotNetNuke项目中的所有更改。

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.

这篇关于文件designer.cs错误地嵌套在解决方案资源管理器中,无法移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆