这是我的XAML
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:sampleData="clr-namespace:AutoDeployStudio"
xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls" Foreground="BlueViolet"
x:Class="AutoDeployStudio.MainWindow"
Title="MainWindow" Height="671.296" Width="1200.791">
<Grid Background="OldLace" HorizontalAlignment="Left" Width="1191" Height="639" VerticalAlignment="Top">
<telerik:RadTabControl Margin="313,233,10.4,10" telerikControls:StyleManager.Theme="Vista">
<telerik:RadTabItem Header="Header1">
</telerik:RadTabItem>
</telerik:RadTabControl>
</Grid>
</Window>
每次我在TFS中签入我的代码时,我都会收到一条构建失败的错误消息“d:\ B \ 66 \ 5918 \ Sources \ src \ AutoDeployStudio \ MainWindow.xaml(46):标签'RadTabControl'在XML命名空间“http://schemas.telerik.com/2008/xaml/presentation”中不存在。第46行位置10.“ 我几乎觉得它与引用telerik组件有关。这就是为什么我将dll重新定位到解决方案中的新文件夹并从该文件夹中引用它们。它仍然没有用。有什么建议吗?
答案 0 :(得分:1)
这是proj文件中需要的结构。文件夹名称为“依赖项”。
<Reference Include="telerik.windows.controls, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\telerik.windows.controls.dll</HintPath>
</Reference>
<Reference Include="telerik.windows.controls.datavisualization, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\telerik.windows.controls.datavisualization.dll</HintPath>
</Reference>
<Reference Include="telerik.windows.controls.gridview, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\telerik.windows.controls.gridview.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Controls.Input, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\Telerik.Windows.Controls.Input.dll</HintPath>
</Reference>
<Reference Include="telerik.windows.controls.navigation, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\telerik.windows.controls.navigation.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Data, Version=2013.2.724.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>dependencies\Telerik.Windows.Data.dll</HintPath>
</Reference>