简体   繁体   English

在Visual Studio 2013 Windows Phone 8项目中将TypeBindConflicts放在哪里?

[英]Where to put TypeBindConflicts in visual studio 2013 windows phone 8 project?

I am getting a error of reference confliction in a windows phone 8.0 project. 我在Windows Phone 8.0项目中收到引用冲突的错误。 I am using visual studio 2013 update 3. As I have done some studies about it and get this http://msdn.microsoft.com/en-us/library/64wh5743.aspx But can't figure out where to put that TypeBindConflicts. 我正在使用Visual Studio 2013 Update3。我已经对其进行了一些研究,并获得了此http://msdn.microsoft.com/zh-cn/library/64wh5743.aspx,但无法弄清楚将TypeBindConflicts放在哪里。 Please help me out. 请帮帮我。 If there is another way please tell me. 如果还有其他方法,请告诉我。 As I am beginner, whatever your solution is please write step by step. 作为我的初学者,无论您的解决方案是什么,请逐步编写。 Thank you in advance. 先感谢您。 :) :)

This compiler error, as described in MSDN, indicates that the compiler sees two types with the same namespace and typename from two different assemblies. 如MSDN中所述,此编译器错误表明编译器从两个不同的程序集中看到具有相同名称空间和类型名称的两种类型。 This makes it difficult to the compiler to identify which type should be used when it is referenced in code. 这使得编译器难以识别在代码中引用该类型时应使用的类型。

If you own these assemblies that are producing the error, you can modify the namespace and/or typename to be unique to ensure the conflict no longer exists. 如果您拥有产生错误的这些程序集,则可以将名称空间和/或类型名修改为唯一,以确保不再存在冲突。 If you do not own the assemblies but can remove a reference safely without impacting functionality, then that is another solution. 如果您不拥有部件,但可以安全地删除引用而又不影响功能,则这是另一种解决方案。 If none of that works, then the guide from MSDN you provided originally describes some alternative approaches to help the compiler resolve the ambiguity. 如果这些都不起作用,那么您提供的MSDN指南最初将描述一些替代方法,以帮助编译器解决歧义。

The "TypeBindConflicts" from the code samples is just a "placeholder" name for the example - it maps to your type that has a conflicting namespace/name. 代码示例中的“ TypeBindConflicts”只是示例中的“占位符”名称-它映射到名称空间/名称冲突的类型。

If that doesn't work for you or I misunderstood, it would help if you could provide some code or the specific error string. 如果那对您不起作用或我误解了,那么可以提供一些代码或特定的错误字符串将对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以在visual studio 2013 update 2中创建一个新的Windows Phone 8项目? - Is it possible to create a new windows phone 8 project in visual studio 2013 update 2? Visual Studio 2013 Windows Phone项目模板的疑问 - Visual Studio 2013 windows phone project templates doubts Windows Phone的Visual Studio 2013设计器无法正常工作 - Visual Studio 2013 designer for Windows Phone not working Visual Studio 2013 Ultimate没有Windows Phone 8模板 - Visual Studio 2013 Ultimate no Windows Phone 8 template 我在哪里可以获得2013年visual studio express的windows phone sdk? - Where can i get the windows phone sdk for visual studio express 2013? '关联应用程序与商店'选项没有显示是视觉工作室终极2013年的Windows Phone 8.1 Silverlight项目 - 'Associate App with the store' option is not showing is visual studio ultimate 2013 for windows phone 8.1 silverlight project 在Visual Studio中创建Windows Phone项目的副本 - create a copy of a windows phone project in visual studio Windows Phone:在Visual Studio 2013中将标题文本更改为图像 - Windows Phone: Change title text to image in Visual Studio 2013 Visual Studio 2013中缺少Windows Phone全景图模板 - Windows Phone Panorama templates missing from visual studio 2013 如何在Visual Studio 2013中制作Windows Phone 8应用的幻灯片显示? - how to make a slideshow for windows phone 8 app in visual studio 2013?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM