0

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.

image1 image2

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.

Zenvo
  • 5
  • 1
  • 5
  • Does this answer your question? [Visual Studio XAML Designer error XDG0062 using EventSetter in .NET Core WPF application](https://stackoverflow.com/questions/59052601/visual-studio-xaml-designer-error-xdg0062-using-eventsetter-in-net-core-wpf-app) – Cameron MacFarland Dec 29 '21 at 16:02
  • No, Thank you for your comment, but the problem seems to be Visual Studio 2022 itself because this project works exactly in previous versions < 2022 – Zenvo Dec 29 '21 at 16:29
  • I am having a similar problem. Installed vs2022, reinstalled etc. nothing works. New project won't build, System references are missing and projects that work fine in vs2019 (on the same machine) won't compile or clean or anything because references are missing, again, even the System and Microsoft ones. Even getting an error message about the framework moniker not been formatted correctly...yet everything works in vs2019. Very frustrating. – dracosveen Feb 09 '22 at 21:53

0 Answers0