64位项目下Caliburn.Micro表现出的奇怪行为(对我来说)

3

我在我们的应用程序中使用Caliburn.Micro,在32位系统中一切正常,没有编译错误,但是一旦我们将项目改为64位系统,就会在App.xaml文件中收到以下错误信息:

名称为“ApplicationBootstrapper”的命名空间不存在

clr-namespace:MyApp.Application.Bootstrapping.

然而,该应用程序仍在运行。

Caliburn.Micro是否可以在64位模式下运行?如果可以,在清除此“错误”时是否需要执行任何调整?

编辑:

这是App.xaml文件:

<Application x:Class="MyApp.Application.App"   
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:Bootstrapping="clr-namespace:MyApp.Application.Bootstrapping">
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary>
                <Bootstrapping:ApplicationBootstrapper x:Key="ApplicationBootstrapper" />
            </ResourceDictionary>
        </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

这里是引导程序文件。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Micro;

namespace MyApp.Application.Bootstrapping
{
    public class ApplicationBootstrapper : bootstrapper<MyApp.Application.MainWindow.MainWindowViewModel>
    {
    }
}

感谢您的选择。

1
http://www.sscce.org/ - Hans Passant
无法发布此评论,因为代码太长了 - 我应该创建一个新问题吗? - xnetdude
你可以编辑一个问题,不要重新发布。 - H H
1个回答

0

我有相同的问题,但是针对x86架构,因此问题不在于指定x64的行为。当你构建解决方案时,问题就消失了。所以我认为错误只出现在未构建的解决方案中。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接