每次我打开项目时,Visual Studio 2012都会删除inkPicture控件 [英] Visual Studio 2012 Removes inkPicture Control Every Time I Open My Project

查看:132
本文介绍了每次我打开项目时,Visual Studio 2012都会删除inkPicture控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,inKpicture控件不在工具框中.我必须通过右键单击工具框,选择选择项目",浏览到microsoft.ink.dll,最后选择inkPicture控件来添加它.

The inKpicture control was not in the tool box by default. I had to add it by right clicking inside the tool box, selecting "choose items", browsing to the microsoft.ink.dll, and finally selecting the inkPicture control.

在将inkPicture控件添加到工具箱后,我可以通过在Visual Studio中运行应用程序将其拖动到窗体上,设置其样式并对其进行测试.我可以继续构建和发布应用程序而不会出现错误.然后,我可以在生产机器以及其他PC上运行该应用程序,而不会出现问题. inkPicture控件可以正常工作,完全符合预期.

Upon adding the inkPicture control to the toolbox, I am able to drag the control onto my form, style it, and test it by running the application from within Visual Studio. I can proceed to build and publish the application without errors. I can then run the application on my production machine as well as other PCs without issues. The inkPicture control works fine, exactly as expected.

问题在于,每次我在Visual Studio中关闭项目解决方案然后重新打开它时,inkPicture都会丢失,并且会出现以下错误:

The problem is that every time I close my project solution in Visual Studio and then re-open it, the inkPicture is missing and I get the following errors:

我确保已引用Microsoft.ink.dll,并将其包含在我的项目的引用列表以及"using"语句中.当包含inkPicture时,我在构建项目时没有任何麻烦.

I have made sure that the Microsoft.ink.dll is referenced and it is included in my project's list of references as well as in the "using" statement. I don't have any trouble building the project when the inkPicture is included.

每次我重新打开项目时,都必须从窗体Designer.cs中删除所有对inkPicture1的引用,然后重新添加inkPicture控件并重新设置其样式,就像可以想象的那样.

Every time I re-open my project I have to remove all references to inkPicture1 from my form Designer.cs and then re-add the inkPicture control and re style it, which as can be imaged is a real pain.

有人可以告诉我为什么我一直遇到这个问题吗?我该怎么做才能解决此问题?

Can someone please tell me why I keep having this problem? What can I do to fix this issue?

推荐答案

对于以后发现此问题的任何人,我都可以通过进入Microsoft.Ink参考属性并将特定版本"设置为来解决此问题.错误的.之后,我可以毫无问题地进入设计视图.我相信它正在尝试使用与我们的实现不正确的版本.

For anyone else finding this in the future, I was able to resolve the issue by going into the Microsoft.Ink reference properties, and setting 'Specific Version' to False. After that, I was able to go into design view without any issues. I believe it was trying to use a version that was incorrect for the implementation we had.

这篇关于每次我打开项目时,Visual Studio 2012都会删除inkPicture控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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