Posts

Showing posts from April, 2017

Adding references to Visual Studio extension project

Image
This might sound like a very simple thing to do, just right click -> "Add References" -> Select an assembly and done. Even easier, just add a NuGet package. Well, not quite. When I added a NuGet package to one of my extension projects I got a runtime error that took me some time to figure out. So I though it might be a good idea to write about it. The package I added was  Extended WPF Toolkit , I like the controls they have. With a package in place I added a WatermarkTextBox control to my XAML like this: <UserControl x:Class="Ext1.ToolWindow1Control" 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:xctk="http://schemas.xceed.com/wpf/xa...