Build/Test Issues

dotnet 10 preview 4

Started by mikael_salle on 1,559 views

After upgrading dotnet 10 preview 3 to preview 4 I am getting the following error, but not all assemblies in the solution file.
Runninig on visual studio 2022 preview Version 17.14.3 Preview 1.0 and NCrunch 5.15.0.4


C:\Program Files\dotnet\sdk\10.0.100-preview.4.25258.110\Roslyn\Microsoft.CSharp.Core.targets: The "CompilerType" parameter is not supported by the "Csc" task loaded from assembly: Microsoft.Build.Tasks.CodeAnalysis, Version=4.14.12.22906, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: c:\program files\microsoft visual studio\2022\preview\MSBuild\Current\Bin\Roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property. C:\Program Files\dotnet\sdk\10.0.100-preview.4.25258.110\Roslyn\Microsoft.CSharp.Core.targets: The "Csc" task could not be initialized with its input parameters.

csproj of the library
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.3.0" />
</ItemGroup>

</Project>

Hi, thanks for posting.

I'm sorry but NCrunch doesn't support preview builds of .NET. You'll need to wait until we're closer to RTM on this platform before support is added.

Post a reply

Log in to reply.