You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hy, I am not a very experienced developer (recent graduate). My task is to update all dependencies of an application .
One dependency is ControlzEx. I updated ControlzEx from version 3.x to 4.3.
With this update, MahApps.Metro has also been updated from version 1.65 to version 2.0
The application was successfully built, and all functuon worked perfectly before i updated ControlzEx to version 4.3. After the update i got a lot of error, for example:
In App.xaml:
xmlns:vm="clr-namespace:Vulnerator.ViewModel"
Error in this file:
The name "ViewModelLocator" does not exist in the namespace "clr-namespace:Vulnerator.ViewModel".
ViewModelLocator.cs:
using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Vulnerator.ViewModel
{
public class ViewModelLocator
{
public ViewModelLocator()
{
Ioc.Default.ConfigureServices(
new ServiceCollection()
.AddSingleton() ....
The namespace is correct, the file location is correct. I can not figure out how to solve this problems.
I tried to add the assembly name to the references.
xmlns:vm="clr-namespace:Vulnerator.ViewModel;assembly=Vulnerator" but it doesn't solved the problems.
I got the same errors for a lot of namespaces.
The name "DependencyProperties" does not exist in the namespace "clr-namespace:Vulnerator.View.ViewHelper".
The name "IsNullToCollapsedConverter" does not exist in the namespace "clr-namespace:Vulnerator.View.Converter".
etc.
The namespace, the location of all files are correct.
Environment
ControlzEx version: v4.3
Windows build number: Win10 Version 22H2 OS build 19045.4529
Visual Studio: Microsoft Visual Studio Community 2019 (2) Version 16.11.33
Target Framework: .Net Framework 4.7
Screenshots
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hy, I am not a very experienced developer (recent graduate). My task is to update all dependencies of an application .
One dependency is ControlzEx. I updated ControlzEx from version 3.x to 4.3.
With this update, MahApps.Metro has also been updated from version 1.65 to version 2.0
The application was successfully built, and all functuon worked perfectly before i updated ControlzEx to version 4.3. After the update i got a lot of error, for example:
In App.xaml:
xmlns:vm="clr-namespace:Vulnerator.ViewModel"
Error in this file:
The name "ViewModelLocator" does not exist in the namespace "clr-namespace:Vulnerator.ViewModel".
ViewModelLocator.cs:
using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Vulnerator.ViewModel
{
public class ViewModelLocator
{
public ViewModelLocator()
{
Ioc.Default.ConfigureServices(
new ServiceCollection()
.AddSingleton() ....
The namespace is correct, the file location is correct. I can not figure out how to solve this problems.
I tried to add the assembly name to the references.
xmlns:vm="clr-namespace:Vulnerator.ViewModel;assembly=Vulnerator" but it doesn't solved the problems.
I got the same errors for a lot of namespaces.
The name "DependencyProperties" does not exist in the namespace "clr-namespace:Vulnerator.View.ViewHelper".
The name "IsNullToCollapsedConverter" does not exist in the namespace "clr-namespace:Vulnerator.View.Converter".
etc.
The namespace, the location of all files are correct.
Environment
ControlzEx version: v4.3
Windows build number: Win10 Version 22H2 OS build 19045.4529
Visual Studio: Microsoft Visual Studio Community 2019 (2) Version 16.11.33
Target Framework: .Net Framework 4.7
Screenshots
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions