C# 生成我的TestStack.White应用程序时出错

C# 生成我的TestStack.White应用程序时出错,c#,wpf,white-framework,C#,Wpf,White Framework,生成TestStack.White应用程序时出现以下错误: 错误1无法将类型“TestStack.White.UIItems.WindowItems.Window”隐式转换为“System.Windows.Window”c:\users\daniel.cbt\documents\visual studio 2013\Projects\I2K White\I2K White\MainWindow.xaml.cs 37 33 I2K White 我的代码是: using System; using

生成TestStack.White应用程序时出现以下错误:

错误1无法将类型“TestStack.White.UIItems.WindowItems.Window”隐式转换为“System.Windows.Window”c:\users\daniel.cbt\documents\visual studio 2013\Projects\I2K White\I2K White\MainWindow.xaml.cs 37 33 I2K White

我的代码是:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using System.Windows.Automation;
//using NUnit.Framework;

using TestStack.White;
using TestStack.White.Configuration;
using TestStack.White.UIItems;
using TestStack.White.UIItems.Finders;


namespace I2K_White
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            TestStack.White.Application app = 

    TestStack.White.Application.Launch("c:\\Integris-2000\\I2K-GUI.exe");

                Window mainWindow = `enter code here`app.GetWindow(TestStack.White.UIItems.Finders.SearchCriteria.ByText("2000 Remote Radio Installation Tester"),
                                                  TestStack.White.Factory.InitializeOption.WithCache);
使用系统;
使用System.Collections.Generic;
使用System.Linq;
使用系统文本;
使用System.Threading.Tasks;
使用System.Windows;
使用System.Windows.Controls;
使用System.Windows.Data;
使用System.Windows.Documents;
使用System.Windows.Input;
使用System.Windows.Media;
使用System.Windows.Media.Imaging;
使用System.Windows.Navigation;
使用System.Windows.Shapes;
使用System.Windows.Automation;
//使用NUnit.Framework;
使用TestStack.White;
使用TestStack.White.Configuration;
使用TestStack.White.ui项;
使用TestStack.White.UIItems.Finders;
名称空间I2K_白色
{
/// 
///MainWindow.xaml的交互逻辑
/// 
公共部分类主窗口:窗口
{
公共主窗口()
{
初始化组件();
TestStack.White.Application应用程序=
TestStack.White.Application.Launch(“c:\\Integris-2000\\I2K-GUI.exe”);
Window Main Window=`在此处输入代码`app.GetWindow(TestStack.White.UIItems.Finders.SearchCriteria.ByText(“2000远程无线电安装测试仪”),
TestStack.White.Factory.InitializeOption.WithCache);

该错误与“GetWindow”有关,声明mainWindow时指定命名空间
TestStack.White.UIItems.WindowItems.WindowMainWindow
。编译器无法区分
System.Windows.Window
TestStack.White.UIItems.WindowItems.Window

或者,您可以使用解决方案