locked
How to change framework version of a website RRS feed

  • Question

  • User-775831949 posted

    I have obtained a sample website (no sln) and copied to my C: and I open using Visual Studio using "open Website"

    In its web.config it is targeting framework 4.0

    as the sample website is very simple, I goto VS and select [Website] > [Start Option] > [Build] > [Target Framework] and

    change to 4.7

    However, the max I can go is 4.7 but I guess the latest is 4.8 now.

    Is it becoz I am using VS2017 ? need to upgrade to VS 2019 ? I am using community version

    Or just keep at 4.7 is good enough ? My website does not have a lot of fancy stuff.... any opinion ?

    Thanks

    Sunday, June 9, 2019 3:15 AM

Answers

  • User288213138 posted

    Hi hkbeer,

    If you want to use .net framework 4.8,you don't need to upgrade to vs2019, you can install the .net framework 4.8 SDK in your project properties.

    Here is an article about the .net framework version history.  

    https://en.wikipedia.org/wiki/.NET_Framework_version_history

    You can choose the version of the .net framework according to your needs.

    Best Regard,
    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2019 6:04 AM

All replies

  • User288213138 posted

    Hi hkbeer,

    If you want to use .net framework 4.8,you don't need to upgrade to vs2019, you can install the .net framework 4.8 SDK in your project properties.

    Here is an article about the .net framework version history.  

    https://en.wikipedia.org/wiki/.NET_Framework_version_history

    You can choose the version of the .net framework according to your needs.

    Best Regard,
    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2019 6:04 AM
  • User-775831949 posted

    Thanks. Where to click to get this screen ?

    Monday, June 10, 2019 12:54 PM
  • User288213138 posted

    Hi hkbeer,

    Click on the property of your project to get it.

    Best regards,

    Sam

    Tuesday, June 11, 2019 1:46 AM
  • User-775831949 posted

    Thanks. But I still cannot get that screen.

    Finally, I goto : Website > Start Options > build and can change target to 4.8.

    Thanks all.

    Tuesday, June 11, 2019 12:40 PM