TFS Build errors

Dec 9, 2010 at 3:27 PM

Hi, I'm using your AvalonDock35 project for a WPF application. Everything compiles fine for ClickOnce publishing, but when running TFS build I keep getting the following errors in the ErrorsWarningsLog.txt. So this project works for ClickOnce, but for some reason the builds fail in TFS build.

Would you have any idea what's causing these failed builds?

Here is the output in the ErrorsWarningsLog.txt:

 

[Any CPU/Release] NavigatorWindow.cs(399,59): error CS0241: Default parameter specifiers are not permitted
[Any CPU/Release] NavigatorWindow.cs(432,63): error CS0241: Default parameter specifiers are not permitted
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\Brushes.xaml(9,22): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 9 Position 22.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\Common.xaml(11,8): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 11 Position 8.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\DockablePaneStyles.xaml(16,8): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 16 Position 8.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\DockingManagerStyles.xaml(12,54): error MC3050: Cannot find the type 'ad:DockablePaneAnchorTab'. Note that type names are case sensitive. Line 12 Position 54.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\DocumentNavigatorWindowStyle.xaml(12,56): error MC3050: Cannot find the type 'ad:DocumentNavigatorWindow'. Note that type names are case sensitive. Line 12 Position 56.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\DocumentPaneStyles.xaml(11,18): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 11 Position 18.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\FloatingWindowStyle.xaml(16,55): error MC3050: Cannot find the type 'ad:DockableFloatingWindow'. Note that type names are case sensitive. Line 16 Position 55.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\ManagedContentStyle.xaml(11,47): error MC3050: Cannot find the type 'ad:ManagedContent'. Note that type names are case sensitive. Line 11 Position 47.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\NavigatorWindowStyle.xaml(29,67): error MC3050: Cannot find the type 'ad:NavigatorWindowItem'. Note that type names are case sensitive. Line 29 Position 67.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Resources\OverlayWindowStyle.xaml(6,46): error MC3050: Cannot find the type 'ad:OverlayWindow'. Note that type names are case sensitive. Line 6 Position 46.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Themes\aero.normalcolor.brushes.xaml(10,19): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 10 Position 19.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Themes\aero.normalcolor.xaml(20,45): error MC3050: Cannot find the type 'ad:DockableContent'. Note that type names are case sensitive. Line 20 Position 45.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Themes\classic.brushes.xaml(12,23): error MC3050: Cannot find the type 'ad:DockingManager'. Note that type names are case sensitive. Line 12 Position 23.
[Any CPU/Release] C:\Builds\...Sources\AvalonDock\Themes\classic.xaml(15,45): error MC3050: Cannot find the type 'ad:DockableContent'. Note that type names are case sensitive. Line 15 Position 45.

Dec 10, 2010 at 7:09 AM

Those errors come out if you're compiling against .NET 3.5; in fact default parameter values have been introduced in .NET 4.0. In order for AvalonDock to compile, you need to remove the default parameters in the locations specified by the first two lines (NavigatorWindow, lines 399 & 432)

I know it is ugly, since the name of the project would suggest that it compiles against 3.5, but it's not painful to fix it.

Cheers,

Emanuele

Dec 17, 2010 at 9:24 PM

Thanks, that was a huge help.