Microsoft
Visual Studio
Visual Studio
  • Home
    • Problems
    • Suggestions
  • Downloads
    • Visual Studio IDE
    • Visual Studio Code
    • Azure DevOps
    • Team Foundation Server
    • Accounts and Subscriptions
  • Subscriber Access
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • SQL
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Surface for Business
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Research
      • Docs
      • TechNet
      • Developer Network
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
    • View all
    Sign in

    Developer Community

    Get help from our community supported forum
    • Home /
    • Visual Studio /
    Searched and didn’t find your feedback?
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    or
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    Visual Studio
    Visual Studio for Mac
    .NET
    C++
    Azure DevOps
    TFS
    5

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

    visual studio 2017 version 15.8windows 10.0

    avatar image dylan reported Aug 21, 2018 at 09:23 PM

    thub.nodes.view.add-new-comment
    Add comment Show 8

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Candy Zhang [MSFT] · Aug 23, 2018 at 03:09 AM 0
    Share
    avatar image wally.highsmith · Sep 26, 2018 at 07:34 PM 0
    Share
    avatar image Tom Meschter [MSFT] · Nov 26, 2018 at 08:37 PM 0
    Share
    avatar image Juan José Mejia [MSFT] · Dec 04, 2018 at 07:15 PM 0
    Share
    avatar image Dan Friedman Juan José Mejia [MSFT] · Dec 17, 2018 at 08:06 PM 0
    Share
    avatar image Juan José Mejia [MSFT] Dan Friedman · Dec 17, 2018 at 09:02 PM 3
    Share
    avatar image Mateusz Stepniak Juan José Mejia [MSFT] · Feb 05 at 11:33 AM 0
    Share
    avatar image Roman Romaniv · Jan 10 at 05:02 PM 0
    Share

    Solutions

    · Add your solution
    15
    Best Solution

    Solution by avatar image Max Jones · Aug 29, 2018 at 10:48 AM


    I came accross this issue aswell. I found that the issue for me was that these projects had a 'project.assets.json file' in the obj folder - This file seems to point at the previous .NET Framework, not sure what generated this or when (An older VS most likely) but a clean does not delete this file. I went through and manually deleted the bin and obj folders for all these projects, and then I was able to build without this error.

    thub.nodes.view.add-new-comment
    Add comment Show 2 · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image soeren.boisen · Sep 27, 2018 at 08:42 AM 0
    Share
    avatar image Magnus Österlund · Jan 15 at 09:30 AM 0
    Share
    1

    Solution by avatar image Andy Martin · Oct 26, 2018 at 03:13 PM

    Relevant solution that worked for me: https://stackoverflow.com/a/52075493/42514

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    0

    Solution by avatar image Celal Ak · Aug 27, 2018 at 07:49 AM

    if any NuGet package is not installed on the project, the specified problem occurs. Ypo can add System.AppContext NuGet Package. 

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    Follow

    81 People are following this

    Related Problems

    程序没错,会陷入死循环-The program is correct, it will fall into an infinite loop
    0 Solution

    VS15.8 breaks WRL AGAIN.
    0 Solution

    Visual Studio crashes opening SSIS package
    5 Solution

    Intellisense errors for dependencies referenced with $(SolutionDir) in their .csproj
    1 Solution

    SlowCheetah 3.0.66 is causing massive build issues, and only started recently.
    1 Solution

    Linux Project won't build in WSL on windows drive
    0 Solution

    High CPU use when opening solution
    0 Solution

    Visual Studio 2017 data flow SSIS finished but intermediate steps waiting
    0 Solution

    Error C2676 binary '
    0 Solution

    VS 2017 Enterprise Update to Version 15.9.3 not available
    2 Solution

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Enterprise
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Manufacturing & resources
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact us
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2018
    • Anonymous
    • Sign in
    • Spaces
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    • Explore
    • Topics
    • Problems
    • Problems
    • Problems
    • Features
    • Features
    • Features
    • Users
    • Badges