Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 生成失败-TFS-在XML命名空间中不存在_C#_Xaml_Tfs_Esri - Fatal编程技术网

C# 生成失败-TFS-在XML命名空间中不存在

C# 生成失败-TFS-在XML命名空间中不存在,c#,xaml,tfs,esri,C#,Xaml,Tfs,Esri,我有一个错误: C:\Builds\16\Suite\Alliance G5-Jessica\Sources\Source\CommonUI\Views\Maps\EsriMapView.xaml(24):标记“SimpleRenderer”在XML命名空间“”中不存在。第24行第18位 我已经检查了所有我知道要检查的东西。正在引用所有的.dll,并且它在本地运行。我只有在尝试将生成排队时才会出现该错误。有人知道我可能遗漏了什么吗?日志文件只告诉我错误消息显示的内容。代码和图像如下 XAML:

我有一个错误:

C:\Builds\16\Suite\Alliance G5-Jessica\Sources\Source\CommonUI\Views\Maps\EsriMapView.xaml(24):标记“SimpleRenderer”在XML命名空间“”中不存在。第24行第18位

我已经检查了所有我知道要检查的东西。正在引用所有的.dll,并且它在本地运行。我只有在尝试将生成排队时才会出现该错误。有人知道我可能遗漏了什么吗?日志文件只告诉我错误消息显示的内容。代码和图像如下

XAML:


这通常是由于TFS生成服务器缺少引用的程序集造成的。要解决此问题,请确保已将任何第三方.dll引用安装到TFS生成计算机中


在这种情况下,在生成服务器上安装ArcGIS SDK及其依赖项应该可以解决问题。

第24行的内容是什么?添加了以下行:)注意
esri
map
命名空间别名之间的差异-查看
map
如何指定CLR命名空间和程序集。。。我怀疑您也希望对esri执行同样的操作。您是否在构建服务器上安装了最新的ArcGIS SDK及其依赖项?TFS端可能缺少一个DLL。@Jamleck在生成服务器上安装它成功了!非常感谢你的帮助!如果你想用这个解决方案发布答案,我很乐意接受。
<inf:DialogWindowBase x:Class="Alliance.CommonUI.Views.Maps.EsriMapView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:map="clr-namespace:Alliance.Library.Maps;assembly=Alliance.Library"         
             xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
 <esri:SimpleRenderer x:Key="QueryRenderer">
            <esri:SimpleRenderer.Symbol>
                <esri:SimpleMarkerSymbol Color="Orange"/>
            </esri:SimpleRenderer.Symbol>
        </esri:SimpleRenderer>