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 has been archived by the owner on Sep 17, 2020. It is now read-only.
it does work fine in the visual studio, however, when running 'dotnet build' it will throw the following errors:
error MSB3755: Could not find reference "mscorlib". If this reference is required by your code, you may get compilation errors.
error MSB3755: Could not find reference "netstandard". If this reference is required by your code, you may get compilation errors.
error MSB4175: The task factory "RoslynCodeTaskFactory" could not be loaded from the assembly "C:\Program Files\dotnet\sdk\2.2.100-preview3-009430\Microsoft.Build.Tasks.Core.dll". The task factory must return a value for the "TaskType" property.
@SimplerSoftware Unfortunately I couldn't find a proper solution for this, it works fine with visual studio and I am mostly using VS for my works, so it's not bothering me that much. sorry, couldn't be of much help.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I am using 'RoslynCodeTaskFactory' for my task as suggested in here:
MSBuild inline tasks with RoslynCodeTaskFactory
Task Code:
it does work fine in the visual studio, however, when running 'dotnet build' it will throw the following errors:
error MSB3755: Could not find reference "mscorlib". If this reference is required by your code, you may get compilation errors.
error MSB3755: Could not find reference "netstandard". If this reference is required by your code, you may get compilation errors.
error MSB4175: The task factory "RoslynCodeTaskFactory" could not be loaded from the assembly "C:\Program Files\dotnet\sdk\2.2.100-preview3-009430\Microsoft.Build.Tasks.Core.dll". The task factory must return a value for the "TaskType" property.
Target: .NET Core v2.1
maybe related problem here:
dotnet/msbuild#3726
Can you please tell what am I missing here.
Thanks
The text was updated successfully, but these errors were encountered: