ModernWpf icon indicating copy to clipboard operation
ModernWpf copied to clipboard

Trying to build from source but getting: MSB3644 The reference assemblies for .NETFramework,Version=v4.5 were not found

Open futuremotiondev opened this issue 1 year ago • 1 comments

Very sorry if this is too simple of a question, I am new to C#. I'm trying to build the sample app from source. But I keep getting solution errors when I build:

devenv_pntm65RiYi

And a lot of warnings:

devenv_EebukzYX67

Do I need to install the .NET 4.5 targeting pack to get this working? How can I successfully build this?

Edit:

More warnings:

devenv_UnswzgQH9A

futuremotiondev avatar Apr 02 '23 18:04 futuremotiondev

As per the error, you haven't installed .NET 4.5 To solve this issue either you need to down it or change the Target framework.

To install .NET 4.5 framework from Visual Studio Installer follow the following steps:

  • Open Visual Studio Installer.
  • Click on modify. image
  • Click on Individual components image
  • Select .NET Framework 4.5.2 targeting pack
    image
  • Click on modify on bottom right hand.

Or you can change the Target framework from your project

  1. Right click on your project.
  2. Click on properties.
  3. In application tab selected the new target framework you have installed in your computer.

kiranshahi avatar Apr 13 '23 15:04 kiranshahi