loresoft / msbuildtasks

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.
BSD 2-Clause "Simplified" License
946 stars 271 forks source link

Support tasks on .NET Core #253

Open natemcmaster opened 7 years ago

natemcmaster commented 7 years ago

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.

pwelter34 commented 6 years ago

Any guidance on how to do this would be great.

natemcmaster commented 6 years ago

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/

pwelter34 commented 6 years ago

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

abatishchev commented 6 years ago

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.

lostmsu commented 5 years ago

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