« Csharp 8 » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(→Liens) |
|||
Ligne 4 : | Ligne 4 : | ||
* [https://docs.microsoft.com/en-gb/dotnet/csharp/language-reference/configure-language-version C# language versioning] | * [https://docs.microsoft.com/en-gb/dotnet/csharp/language-reference/configure-language-version C# language versioning] | ||
= .NET Framework = | = [https://stackoverflow.com/questions/56651472/does-c-sharp-8-support-the-net-framework .NET Framework] = | ||
The {{boxx|C# 8}} / {{boxx|.NET Framework}} combination is not officially supported by Microsoft.<br> | The {{boxx|C# 8}} / {{boxx|.NET Framework}} combination is not officially supported by Microsoft.<br> | ||
It can be forced by editing the csproj file. | It can be forced by editing the csproj file. | ||
<filebox fn='MyProject.csproj'> | <filebox fn='MyProject.csproj' lang='xml'> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
Ligne 14 : | Ligne 14 : | ||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||
</filebox> | </filebox> | ||
* {{boxx|default interface members}} won't work | |||
* {{boxx|ssynchronous streams}} and {{boxx|indices and ranges}} will need {{boxx|polyfill}} nuget package |
Version du 4 mars 2020 à 15:26
Liens
.NET Framework
The C# 8 / .NET Framework combination is not officially supported by Microsoft.
It can be forced by editing the csproj file.
MyProject.csproj |
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <LangVersion>8.0</LangVersion> |
- default interface members won't work
- ssynchronous streams and indices and ranges will need polyfill nuget package