MagnusMogens / Jolt.NET

A gamejolt api wrapper developed with C#
Apache License 2.0
0 stars 0 forks source link

App.xaml > ViewModelLocator definition error #3

Open MagnusMogens opened 8 years ago

MagnusMogens commented 8 years ago

In the App.xaml I get an error at the following line

<vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" />

<!--The located assembly's manifest definition does not match the assembly-->

The strange thing is, I only get this error if I refer to my converters and add them to the App.xaml file.

<Application x:Class="Jolt.NET.UI.App" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             StartupUri="MainWindow.xaml" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             d1p1:Ignorable="d" 
             xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:vm="clr-namespace:Jolt.NET.UI.ViewModels"
             xmlns:converter="clr-namespace:Jolt.NET.UI.Converter">
    <Application.Resources>
        <ResourceDictionary>
            <vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" />
            <converter:ToUpperCaseConverter x:Key="ToUpperCaseConverter" />
            <converter:EnumConverter x:Key="EnumConverter" />
            <converter:ValueConverterGroup x:Key="EnumUpperCaseConverter">
                <converter:EnumConverter />
                <converter:ToUpperCaseConverter />
            </converter:ValueConverterGroup>
        </ResourceDictionary>
    </Application.Resources>
</Application>
MagnusMogens commented 8 years ago

I have a solution. I think the problem was nuget. After I deleted the packages folder in the solution directory and rebuilt the nuget packages the error was gone.

MagnusMogens commented 8 years ago

The problem came back > Needs further analysis