dotnet / dotnet/project-system

Your project does not reference ".NETFramework,Version=v4.5" framework. Add a reference to ".NETFramework,Version=v4.5" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.

Open
#6,569 8 comments 0 reactions 1 assignee Claimed by @tmeschter View on GitHub
Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

**Visual Studio Version**:
2019
**Summary**:
I have two framework projects in same folder, 4.7 framework project has local Nuget Package reference and 4.5 framework project has local Assembly reference. The reported issue occurs when run 4.5 project after run the 4.7 projects

Issue:
Severity Code Description Project File Line Suppression State
Error Your project does not reference ".NETFramework,Version=v4.5" framework. Add a reference to ".NETFramework,Version=v4.5" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.

**4.7 Project**

```

```

**4.5 Project**


..\resources\Assembilies\Microsoft.Xaml.Behaviors.dll

**Steps to Reproduce**:

1. Run 4.7 project with nuget reference

2. run 4.5 project with assembly reference

3. will reproduce the reported issue

How to solve this issue

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.