`RoslynCodeTaskFactory` using an ancient version of .NET...?
Hiya all! :cathi:
I'm trying to define an inline task with
RoslynCodeTaskFactory
, but it seems like the corelib that the factory uses is a bit old - for example, there's no System.Range
, you can't split by strings (only by chars!), and even ProcessStartInfo.ArgumentList
doesn't exist. How can I tell the factory to use a more reasonable version?
I'm defining the task like this:
3 Replies
i'm doing
dotnet publish
under linux, if that mattershttps://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-roslyncodetaskfactory?view=vs-2022
RoslynCodeTaskFactory tasks target .NET Standard and can work on .NET Framework and .NET Core runtimes as well as other platforms such as Linux and macOS.you cannot change it. otherwise, the code would not in
msbuild.exe
or Visual Studioawh, that sucks, alright :(