【发布时间】:2020-01-15 00:12:32
【问题描述】:
不能引用名称中包含空格的程序集吗?我真的必须重命名我的程序集以不包含空格吗?有没有办法逃离这些空间?我找不到很多有这个问题的人,更不用说任何解决方案了......
XAML 示例:
<UserControl x:Class="SomeClass"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Some.Namespace;assembly=Some Assembly With Spaces In The Name"
>
这是编译器在您尝试执行此操作时给您的错误:
未知的构建错误,“clr-namespace:Some.Namespace;assembly=Some Assembly With Spaces In The Name”映射 URI 无效。第 4 行位置 2。'
把 ' 或 "围绕程序集名称没有帮助。
【问题讨论】:
标签: xaml