I'm using C# WPF in new Visual Studio 2022
and using the last version of Extended WPF Toolkit and Costura Fody
I use a TextBox Mask from Xceed WPF Toolkit and use Costura Fody to publsih single exe file , that was working on a project in Visual Studio 2019 without any problems
My XAML in Visual Studio 2019/2022 :
<Window x:Class="WpfApp39.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp39"
xmlns:XCEEDTool="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<XCEEDTool:MaskedTextBox Mask="0000/00/00" Margin="292,103,292,269"></XCEEDTool:MaskedTextBox>
</Grid>
But after installing Visual Studio 2022 and executing the same project and these nuggets, I encountered this error :
Error XDG0062 Could not load file or assembly 'Xceed.Wpf.Toolkit, Version=4.2.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4' or one of its dependencies. The system cannot find the file specified.
Note : The Copy Local is True for all references, and the problem is from Fody Because Before I Install it Xceed Was Working! also the lower versions of Visual Studio 2022 do not have this problem for this project
What have I tried:
- Using another version of these nugets;
- Adding the references from another path;
- Changing .Netframework Version
None of them work, please help.