This article is a mirror article of machine translation, please click here to jump to the original article.

View: 42708|Reply: 0

[Source] C# 7.3 upgrades to 8.0 use the Using declaration

[Copy link]
Posted on 3/28/2020 6:30:09 PM | | | |
Functional Using states "Not available in C# 7.3. Please use 8.0 or higher language,


.NET 4.0 project, I want to use the latest 8.0 syntax, find VS2019 error, the solution is as follows.

Solution 1:

Uninstall the project and edit the project file. You can set the language version in the project file. For example, if you explicitly want to access the preview feature, add elements like this:

Solution 2:

Clearly declare the version, or uninstall the project and edit the .csproj file

or






Previous:Why do 93% of companies in the top 100 and 78% of companies in the top 500 choose WebEx?
Next:SQL Server If logical judgment
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com