none
Framework reference assemblies RRS feed

  • Question

  • How to retarget new applications for a different version?  I receive the following warning when opening a new project:  The reference assemblies for framework ".NetFramework,Version=v4.0" were not found.  I am using Version=v4.6.

    This problem was solved the way I do all unknown Microsoft problems.  Complete uninstall and reinstall of Visual Studio Express for Windows Desktop 2015.  Luckily this does not happen often.

    
    

    • Edited by RoyLehmann Wednesday, October 7, 2015 7:39 PM Problem solved.
    Wednesday, September 23, 2015 8:58 PM

Answers

All replies

  • New applications you developed? If so, what project type(s) on what Visual Studio version?

    Have you checked the integrity of your .NET 4.6? Use this tool:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Run the tool with .NET 4.6 selected, then check the last few lines of the tool log for the test app result. If the return code is not 0, your 4.6 is corrupt and must be repaired or reinstalled.

    Wednesday, September 23, 2015 11:12 PM
  • Microsoft Visual Studio Express 2015 for Windows Desktop

    Note that the error message refers to .net 4.0 which is not installed on my machine.

    Thursday, September 24, 2015 6:54 PM
  • The error message refers to .NET 4.0 because that is the base, full framework. Subsequent releases (4.5, 4.5.1, 4.5.2 and 4.6) are updates to 4.0. So, if you have 4.6, you must have 4.0.

    Please use the verification tool I linked for you previously. Run it with .NET 4.6 selected. Then post the first 20 lines AND the last 15 lines of the tool log here. We will then be able to see which .NET versions are on your system and whether or not your 4.6 is corrupt.

    Thursday, September 24, 2015 11:41 PM
  • [09/27/15,16:16:23] Beginning of new SetupVerifier activity logging session
    [09/27/15,16:16:23] Build created on July 31, 2015
    [09/27/15,16:16:23] For more information about repairing the .NET Framework, see http://support.microsoft.com/kb/2698555 and http://go.microsoft.com/fwlink/?LinkID=246062
    [09/27/15,16:16:23] Activity log file location: C:\Users\Roy\AppData\Local\Temp\setupverifier_main_09-27-15_16.16.23.txt
    [09/27/15,16:16:23] Error log file location: C:\Users\Roy\AppData\Local\Temp\setupverifier_errors_09-27-15_16.16.23.txt
    [09/27/15,16:16:23] Detected operating system: Windows 7 (x64)
    [09/27/15,16:16:23] Windows directory: C:\Windows
    [09/27/15,16:16:23] System directory: C:\Windows\system32
    [09/27/15,16:16:23] Program Files directory: C:\Program Files (x86)
    [09/27/15,16:16:23] Common Files directory: C:\Program Files (x86)\Common Files
    [09/27/15,16:16:23] Install state for .NET Framework 1.0: not installed.
    [09/27/15,16:16:23] Install state for .NET Framework 1.1: not installed.
    [09/27/15,16:16:23] Install state for .NET Framework 2.0: installed with service pack 2.
    [09/27/15,16:16:23] Install state for .NET Framework 3.0: installed with service pack 2.
    [09/27/15,16:16:23] Install state for .NET Framework 3.5: installed with service pack 1.
    [09/27/15,16:16:23] Install state for .NET Framework 4 Client: installed with no service packs.
    [09/27/15,16:16:23] Install state for .NET Framework 4 Full: installed with no service packs.
    [09/27/15,16:16:23] Install state for .NET Framework 4.5: installed with no service packs.
    [09/27/15,16:16:23] Install state for .NET Framework 4.5.1: installed with no service packs.
    [09/27/15,16:16:23] Install state for .NET Framework 4.5.2: installed with no service packs.
    [09/27/15,16:16:23] Install state for .NET Framework 4.6: installed with no service packs.
    [09/27/15,16:16:23] Not adding product '.NET Framework 1.0' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 1.1' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 2.0' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 3.0' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [09/27/15,16:16:23] Not adding product '.NET Framework 3.5' because it is not currently installed
    [09/27/15,16:16:35] Starting verification for product .NET Framework 4.6

    [09/27/15,16:16:59] Section [Registry - .NET Framework 4.5 (64-bit)] - start parsing entries
    [09/27/15,16:16:59] Section [Registry - .NET Framework 4.5 (64-bit)] - stop parsing entries
    [09/27/15,16:16:59] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - start parsing entries
    [09/27/15,16:16:59] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: Release
     Actual Data: REGISTRY VALUE FOUND
    [09/27/15,16:16:59] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - stop parsing entries
    [09/27/15,16:16:59] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [09/27/15,16:16:59] ExecutablePath = 'Netfx40TestApplication.exe'
    [09/27/15,16:16:59] FriendlyName = '.NET Framework 4 test application'
    [09/27/15,16:16:59] TimeoutSeconds = '300'
    [09/27/15,16:16:59] WaitOnExit = 'true'
    [09/27/15,16:16:59] Silent = 'true'
    [09/27/15,16:16:59] Launching process 'Netfx40TestApplication.exe' now
    [09/27/15,16:17:00] Process successfully launched. Waiting 300 seconds for it to complete.
    [09/27/15,16:17:00] Process 'Netfx40TestApplication.exe' exited with return code 0
    [09/27/15,16:17:00] Verification succeeded for product .NET Framework 4.6

    Sunday, September 27, 2015 8:22 PM
  • As you can see from the verifier log, .NET 2.0, plus updates 3.0 and 3.5, and .NET 4.0 plus updates 4.5, 4.5.1, 4.5.2 and 4.6 are all installed on your system.

    The verifier also shows that your .NET 4.6 is properly installed and configured.

    Do not be concerned with entries like " Install state for .NET Framework 4 Full: installed with no service packs." That simply means that no service packs have been issued for that version.

    In reference to the warning you get, this thread may help:

    http://stackoverflow.com/questions/2730765/net-4-0-build-issues-on-ci-server

    Also this article:

    http://tommarien.github.io/blog/2014/10/09/targeting-net-4-what-could-possibly-go-wrong/

    Monday, September 28, 2015 1:34 PM