I made a simple WPF application which requires using Microsoft.Windows.Themes
namespace in PresentationFramework.Aero2
assembly in Windows 10 using Visual Studio 2015.
and it works completely fine, but when i tried to build the visual Studio project in Windows 7 using same Visual Studio version (2015) it didn’t work, all assemblies seem there and i don’t use any external ones at all. but somehow it won’t compile, i made sure that i use same .NET framework 4.6. but somehow the Compiler can’t find types within the Microsoft.Windows.Themes
Namespace, i am not sure if it’s a bug in .NET or something.
i am using that namespace in my App.xaml
file like this:
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2"
x:Class="App1.App"
StartupUri="MainWindow.xaml">
Can anyone help me solve this please.