msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Support tasks on .NET Core

Open natemcmaster opened this issue 8 years ago • 5 comments
trafficstars

MSBuild 15 (VS 2017) can run on .NET Framework and .NET Core (building on Linux and Windows). It would be nice to port the tasks here to support running on .NET Core. This will anyone using the new Microsoft.NET.Sdk to keep using the tasks provided by MSBuildTasks.

Happy to provide guidance on this one as this is a fairly new thing.

natemcmaster avatar Feb 04 '17 21:02 natemcmaster

Any guidance on how to do this would be great.

pwelter34 avatar Dec 15 '17 16:12 pwelter34

I wrote a blog post a while ago showing how to make tasks work on regular MSBuild and MSBuild for .NET Core. Hope it helps.

http://www.natemcmaster.com/blog/2017/07/05/msbuild-task-in-nuget/

natemcmaster avatar Dec 15 '17 17:12 natemcmaster

perfect, i'll get this updated to that format. some tasks may have to be dropped for core, but most should work.

pwelter34 avatar Dec 15 '17 17:12 pwelter34

Hi, I've read the blog post but still don't get do you have plans to migrate to Core.

In the blog you suggest to reference MSBuild this way:

<PackageReference Include="Microsoft.Build.Framework" Version="15.1.1012" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.1012" />

and MSBuild.Community.Tasks.csproj references it this way:

<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />

So it's clearly not migrated yet.

abatishchev avatar May 20 '18 20:05 abatishchev

Any progress on this? IronPython seems to be using this project to build, and it fails under .NET Core.

lostmsu avatar Mar 21 '19 06:03 lostmsu