更改控件的属性时,Winform .resx文件会混乱 [英] Winform .resx file messes up when changing properties for a control

查看:53
本文介绍了更改控件的属性时,Winform .resx文件会混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体应用程序,每次我在更改任何窗体控件的属性后尝试构建解决方案时,它都会要求我保存该窗体的resx文件,我不能这样做因为Visual Studio正在使用它。

I have a windows form application and every time I try to build the solution after changing the properties for any of the form controls, it asks me to save the resx file for that form, which I can't do because it's in use by Visual Studio. 

当我打开resx文件之后,它出现此错误:"参数无效"。这基本上阻止我保存我在表单上的任何工作。为什么会发生,我该如何解决?任何和所有帮助表示赞赏

When I open up the resx file after that, and it has this error: "Parameters are invalid". This basically prevents me from saving any of my work on the form. Why does it happen and how do I fix it? Any and all help is appreciated

推荐答案

嗨squeakypanda,

欢迎来到MSDN论坛。

你的VS版本是什么?请尝试创建一个新的Windows窗体应用程序,并检查此问题是否仅出现在此解决方案或所有解决方案中。如果只有
这个解决方案有这个问题,请试试以下内容:


  1. 右键单击解决方案名称和清洁解决方案
  2. 确保关闭所有VS实例并重新打开此解决方案
  3. 关闭此解决方案并删除此解决方案存储文件夹下的.vs隐藏文件夹,然后重新打开


如果任何解决方案具有相同的解决方案问题,请尝试以下麻烦方法:


  1. 转到控制面板 - 程序和功能,右键单击VS和更改修复,或重新运行VS ins如果您的VS版本是VS 2017,则更高 - 修复它。
  2. 打开
    CMD并导航到VS 2017/2015或其他安装文件夹,如C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7 \IDE并运行命令:devenv / safemode将其作为
    安全模式运行,然后检查已安装的扩展是否导致此问题。
  3. 单击开始并向下滚动到Visual Studio文件夹,展开它,以管理员身份运行'VS 2015/2017的开发人员命令提示符并运行命令:devenv / resetuserdata to test。
  1. Go to Control Panel-Programs and Features, right click the VS and Change-repair, or re-run the VS installer as administrator, More-Repair it if your VS version is VS 2017.
  2. Open CMD and navigate to the VS 2017/2015 or others installation folder like C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the command: devenv /safemode to run it as safe mode, then check if the installed extensions caused this issue.
  3. Click Start and scroll down to the Visual Studio folder, expand it, run the ‘Developer Command Prompt for VS 2015/2017 as administrator and run the command: devenv /resetuserdata to test.


祝你好运,

Sara


这篇关于更改控件的属性时,Winform .resx文件会混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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