Invalid option '7.3' for /langversion. Use '/langversion:?' to list supported values in Asp.Net MVC

Dung Do Tien Aug 28 2021 213

Hi you guys,

I have a project in Asp.Net Framework 4.5 and I'm using VS 2019 to build my project but today I get an error CS1617  Invalid option '7.3' for /langversion. Use '/langversion:?' to list supported values

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS1617    Invalid option '7.3' for /langversion. Use '/langversion:?' to list supported values.    DVG.Warning.Web    C:\Company\Projects\CSSM\Main\SourceAdmin\admin\DIG.Warning.Web\CSC    1    Active

I tried to clear and rebuild the project solution but it didn't work for me.

Anyone can help me to fix it?

Thanks for any suggestions.

Have 2 answer(s) found.
  • N

    Nguyễn Danh Bảo An Aug 28 2021

    Clean and Rebuild didn't work for me until I closed Visual Studio and deleted the .vs folder then re-opened, cleaned and rebuilt.

  • S

    Sandeep Kumar Aug 28 2021

    You can try to open Visual Studio Installer > 2019 > modify button -> choose Individual components tab.

    Select like in the image above and click Modify button and retry build your project.

    This way solved the issue for me.

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close