0

I have an InfoPath form with a code-behind C# solution. Every time I open the form (design mode) and open the Visual Studio Tools for Applications (VSTA), the reference to System.Windows.Forms is missing from the project. When I add it manually everything works. I also tried setting the property Copy Local to true or copy the dll-file in a folder and set that property to true, but this doesn't work either. Does anyone have an idea how I can solve this?

4

1 回答 1

1

我有一个类似的问题。我通过创建项目文件文件夹的副本、重命名它然后使用表单选项中的“删除代码”选项来删除旧代码来解决它。然后保存没有代码的表单,重新打开它并附加新创建的项目文件夹副本。

不确定这是否与您所经历的完全相同,但它在多种形式上确实对我有用。

祝你好运!

于 2013-08-21T23:54:45.507 回答