Invalid option '7.3' for /langversion. Use '/langversion:?' to list supported values in Asp.Net MVC
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.
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
.vsfolder then re-opened, cleaned and rebuilt.
Sandeep Kumar Aug 28 2021
You can try to open
Visual Studio Installer> 2019 >
modifybutton -> choose
Select like in the image above and click
Modifybutton and retry build your project.
This way solved the issue for me.