Fix preview7 complilation errors
Update solution to use latest C# version
disable implicit namespace imports (coming preview7 feature)
MODIFY
build/common.props
build/common.props
<Import Project=".\package.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
- <LangVersion>7.2</LangVersion>
+ <LangVersion>latest</LangVersion>
<MajorVersion>4</MajorVersion>
<MinorVersion>0</MinorVersion>
<PatchVersion>0</PatchVersion>
<DebugType>embedded</DebugType>
<UseSourceLink Condition="$(UseSourceLink) == '' And $(CI) != ''">true</UseSourceLink>
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile> <!-- https://github.com/dotnet/runtime/issues/54684 -->
+ <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
</PropertyGroup>
<Target Name="GenerateSiteExtensionVersion">

MODIFY
src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
</PropertyGroup>
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <LangVersion>9.0</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>

MODIFY
src/WebJobs.Script/WebJobs.Script.csproj
src/WebJobs.Script/WebJobs.Script.csproj
<AssemblyName>Microsoft.Azure.WebJobs.Script</AssemblyName>
<RootNamespace>Microsoft.Azure.WebJobs.Script</RootNamespace>
<NoWarn>NU5104</NoWarn>
- <LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>

MODIFY
test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
<RootNamespace>Microsoft.Azure.WebJobs.Script.Tests.Integration</RootNamespace>
<!-- Allow BinaryFormatter for tests -->
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
- <LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;DEBUG;SCRIPT_TEST;NETCOREAPP2_0</DefineConstants>

Fix preview7 complilation errors (#7579)

- Update solution to use latest C# version
- disable implicit namespace imports (coming preview7 feature)