You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2020. It is now read-only.
Using the latest Docker SDK image microsoft/dotnet:sdk with dotnet version 2.1.101, compilation fails with the following error:
/app/[...].tasks(140,9): error MSB6006: "Csc.exe" exited with code 1. [/app/[...].csproj]
/app/[...].tasks(140,9): error : The source file for this compilation can be found at: "/tmp/tmp7mDsMh.tmp" [/app/[...].csproj]
/app/[...].tasks(140,9): error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "/root/.nuget/packages/roslyncodetaskfactory/1.2.6/build/netstandard1.5/RoslynCodeTaskFactory.dll". The task factory must return a value for the "TaskType" property. [/app/[...].csproj]
A deeper look at the detailed MSBuild log shows that the following command is being executed:
i.e. the actual Csc assembly is missing after dotnet (only double spaces before first option).
It seems that the Csc.dll has been renamed to csc.dll (all lowercase), and Internal/ManagedCompiler.cs fails to resolve this as it only checks for Csc.dll. This could likely easily be fixed in the Csc resolver as setting a symbolic link from csc.dll to Csc.dll allows compilation to succeed.
Using the latest Docker SDK image
microsoft/dotnet:sdkwithdotnetversion 2.1.101, compilation fails with the following error:A deeper look at the detailed MSBuild log shows that the following command is being executed:
i.e. the actual Csc assembly is missing after
dotnet(only double spaces before first option).It seems that the
Csc.dllhas been renamed tocsc.dll(all lowercase), andInternal/ManagedCompiler.csfails to resolve this as it only checks forCsc.dll. This could likely easily be fixed in the Csc resolver as setting a symbolic link fromcsc.dlltoCsc.dllallows compilation to succeed.