Xaml设置xmlns等于当前的exe命名空间,以避免与单独的程序集命名空间冲突? [英] Xaml set xmlns equal to current exe namespace to avoid conflicting with seperate assembly namespace?

查看:67
本文介绍了Xaml设置xmlns等于当前的exe命名空间,以避免与单独的程序集命名空间冲突?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个与我的exe同名的程序集,并为它们应用了别名。 exe和dll都属于名为ApplicationLogic的公共名称空间。问题是,当我尝试将xmlns:property设置为等于exe内部的命名空间时,名为
ApplicationLogic.Root,它表示它不存在。我认为这是因为它的思想是出于某种原因查看程序集,而不是它本身就是exe。有没有人知道这个问题是什么?

I've created an assembly with the same name as my exe and applied aliases to them both. Both the exe and dll fall under a common namespace called ApplicationLogic. Problem is that when I try to set a xmlns:property equal to a namespace inside the exe called ApplicationLogic.Root it says it doesn't exist. I assume this is because its thinking to look in the assembly for some reason instead if itself which is the exe. Anyone have any ideas of what this problem is?

推荐答案

你创建了一个与dll同名的exe。

You created an exe with the same name as a dll.

然后你决定将它们放在同一名称空间中???????

You then decided to put them in the same namespace ???????

这是一个非常糟糕的主意。

Which is a REALLY bad idea.

Give其中一个名字不同。

Give one of them a different name.


这篇关于Xaml设置xmlns等于当前的exe命名空间,以避免与单独的程序集命名空间冲突?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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