Code Monkey home page Code Monkey logo

Comments (6)

zarenner avatar zarenner commented on July 24, 2024

Hi @markphillips100,

There is not currently a version of the credential provider built for .NET Core 3.0 preview. While not on our immediate backlog, we are currently investigating different possible ways of distributing the credential provider (besides the current install script), and runtime support will certainly be a decision factor.

Is there anything blocking you from building and running your own .NET Core 3.0 version of the credential provider? If not, I'm happy to help with doing so if you are having issues.

from artifacts-credprovider.

zarenner avatar zarenner commented on July 24, 2024

Dup of #51 @shubham90 fyi

from artifacts-credprovider.

markphillips100 avatar markphillips100 commented on July 24, 2024

Sorry for my late response @zarenner . I'll look into building my own core 3 preview version for now. If I get into issues I'll be in touch.

from artifacts-credprovider.

markphillips100 avatar markphillips100 commented on July 24, 2024

@zarenner my attempts at creating a .net core 3-preview5 version have stumbled a little so wonder if you can help?

The solution builds fine in VS2019 16.1.0. All tests pass.

I'm getting an error from an Azure DevSpaces .vsts-ci.yaml build (PushNupkg:false) which occurs during the Build CredentialProvider task. Here's a snippet of the log:

/opt/hostedtoolcache/dncs/3.0.100-preview5-011568/x64/sdk/3.0.100-preview5-011568/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(145,5): error MSB4018: The "GenerateDepsFile" task failed unexpectedly. [/home/vsts/work/1/s/CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj]
/opt/hostedtoolcache/dncs/3.0.100-preview5-011568/x64/sdk/3.0.100-preview5-011568/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(145,5): error MSB4018: System.TypeLoadException: Could not load type of field 'Microsoft.NET.Build.Tasks.DependencyContextBuilder2:_filteredPackages' (12) due to: Could not resolve type with token 01000020 from typeref (expected class 'NuGet.Packaging.Core.PackageIdentity' in assembly 'NuGet.Packaging, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35') assembly:NuGet.Packaging, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:NuGet.Packaging.Core.PackageIdentity member:(null) [/home/vsts/work/1/s/CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj]

Setup and changes
I forked the repo and branched here. If you compare you'll see the changes I've made but in summary I did the following:

  1. SDK installer version changed to 3.0.100-preview5-011568
  2. Target netcoreapp3.0 in csproj file, and changed all occurrences of netcoreapp2.1 to netcoreapp3.0.

The error occurred with just those changes so I also did the following but the error occurs still:

  1. Updated NuGet.Protocol reference to 5.1 - not sure this is necessary or not
  2. Install NuGet 5.1 - again, not sure this is necessary or not.

from artifacts-credprovider.

zarenner avatar zarenner commented on July 24, 2024

Looks like you're hitting this issue (all same issue, just different info about it):

I've confirmed that building using dotnet (instead of the MSBuild task) succeeds:
https://dev.azure.com/zlrenner/ArtifactsCredProviderUnofficial/_build/results?buildId=410&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9

Let me know if you have trouble with the same.

from artifacts-credprovider.

markphillips100 avatar markphillips100 commented on July 24, 2024

Thanks @zarenner, builds fine now after switching to dotnet cli. I should be good from here.

from artifacts-credprovider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.