关于编写WPF UserControl时提示The name 'InitializeComponent' does not exist in the current contextr的解决!
来源:互联网 发布:智慧城市数据库设计 编辑:程序博客网 时间:2024/06/04 04:58
1、打开.csproj(工程)文件。
2、找到<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />这一行
3、在这一行下面添加<Import Project="$(MSBuildBinPath)/Microsoft.WinFX.targets" />
4、保存文件。
这时就可以编译通过了。
- 关于编写WPF UserControl时提示The name 'InitializeComponent' does not exist in the current contextr的解决!
- InitializeComponent does not exist in the current context
- The name 'Profile' does not exist in the current context
- The name 'AccordionLayout1' does not exist in the current
- The name does not exist in the current context
- Error:The name 'Encoding' does not exist in the current context 解决方法
- The name 'xxx' does not exist in the current context 錯誤解決方法之一
- Unity 错误(1)——The name `xxx' does not exist in the current context
- error CS0103: The name `UnityEditor' does not exist in the current context
- 解决办法:The name 'Response' does not exist in the current context
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- The type or namespace name 'Zhaopin' does not exist in the namespace 'LMSoft' 问题的解决
- The name “LayoutAwarePage” does not exist in the namespace
- HttpUtility does not exist in the current context
- The type or namespace name 'Windows' does not exist in the class or namespace 'System'
- Error:The type or namespace name 'Office' does not exist in the namespace 'Microsoft' 解决方法
- FUNCTION line.count does not exist. Check the 'Function Name Parsing and Resolution' section in the
- CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System.Data'
- LINUX系统性能调谐
- 人不知而不愠
- 获取流水号
- 容易混乱的几个编码函数
- 100句温柔又体贴的话
- 关于编写WPF UserControl时提示The name 'InitializeComponent' does not exist in the current contextr的解决!
- MSN 80048820 错误解决办法
- Java学习从入门到精通(学习过程)
- 頂級域名列表
- 人生最重要的十个健康伴侣
- mod函数详解
- The Complete Effect and HLSL Guide_8(转载)
- SQL Server口令密码对照表
- 沪深股市首只300元股中国船舶诞生