从 .Net 2 迁移 -> 3.5 SP1 WindowsForms:WindowsForms ControlDesigner / CollectionEditor 丢失?
我正准备将一些项目从.Net 2.0 迁移到3.5SP1。我注意到,对于某些 UI 控件,ControlDesigner / CollectionEditor 类似乎在 3.5 ( ClientProfile ) 中丢失。转换/替换这些依赖项的最佳实践是什么,或者我必须考虑完全重写这些组件?当将项目目标框架从 2.0 切换到 3.5 而不更改源代码上的任何内容时,会发生错误。
I'm preparing to move some project from .Net 2.0 to 3.5SP1. I've noticed, that for some UI Controls the ControlDesigner / CollectionEditor Class seems to be missing in 3.5 ( ClientProfile ). What is the best practice to convert / replace these depencies or must I consider a complete rewrite of these components ? The error occured when switching the projects target framework from 2.0 to 3.5 without changing anything on the sourcecode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
客户资料中应该缺少设计师。您认为客户需要设计师吗?
只需使用完整的 3.5 安装即可进行开发。
Designers should be missing in the ClientProfile. Do you think clients ever need the designers?
Just use the complete 3.5 installation for development.
UI 控件是自己编写的、第三方控件还是.NET 本身提供的基本控件?
如果您只使用 .NET 提供的控件,它应该可以工作。 Visual Studio安装出错了?您使用哪个 VS 版本?
Are the UI Controls self written, third-party-controls or the basic controls delivered with .NET itself?
If you just use the controls delivered with .NET it should work or sth. went wrong with the installation of the visual studio? Which VS-Version do you use?
好的,
我对 .net 3.5 sp1 进行了修复安装,解决了问题。然而,有一个问题仍然悬而未决:
我有一个带有控件的程序集,其中包括设计器支持。如果我只想部署客户端配置文件,则必须制作一个单独的程序集,设计器仅支持某些控件,以便能够使用这些控件发布应用程序,而无需部署完整的 .Net 包。 ?或者,如果应用程序在运行时不使用设计器,我可以部署客户端配置文件吗?
Ok,
I did a repair install of .net 3.5 sp1 which solved the problem. Nevertheless one question is left open:
I have an assembly with controls which include designer support. If I want to deploy the client profile only, I would have to make a separate assembly with the designer support only of certain controls, to be able to ship the application using these controls without having the need to deploy the full .Net package. ? Or if the designers are not used at runtime by the application, can I deploy the client profile ?