Forum Discussion

Srinivas Narula's avatar
Srinivas Narula
Brass Contributor
Feb 10, 2017

Do we have PnP Core for .net core console application??

Hi All,

 

I was developing an timer job using "PnP Core Component - Remote Timer Job Framework". I added "SharePointPnPCoreOnline" package to console application to console application of both .net core and .net framework. Below is the output:

 

  • .NET Framework - Console Application  -  Working
  • .NET Core - Console Application -  Failed

Is there any seperate nuget or tweaks to existinng core project (PnP.Core) to make "SharePointPnPCoreOnline" package working for .NET Core -  Console Application

 

Advance Thanks!!

Sri

7 Replies

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

    I don't know about any concrete plans to support this. In the meanwhile there is a UserVoice idea you could vote for:

    https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/16585795-support-net-core-with-csom

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

    Nope, a .NET Core Compatible NuGet package does not exist...

      • Darren Parkinson's avatar
        Darren Parkinson
        Brass Contributor

        I'd like to know this too please.  I had to set my target to net4.6.1 which immediately removes cross platform capability.

         

        For reference, here is my csproj file:

        <Project Sdk="Microsoft.NET.Sdk">
          <PropertyGroup>
            <OutputType>Exe</OutputType>
            <TargetFramework>net4.6.1</TargetFramework>
          </PropertyGroup>
          <ItemGroup>
            <PackageReference Include="SharePointPnPCoreOnline" Version="2.18.1709.0" />
            <PackageReference Include="System.Security.SecureString" Version="4.3.0" />
          </ItemGroup>
        </Project>