Git Product home page Git Product logo

credentialmanagement's People

Contributors

ilyalozovyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

credentialmanagement's Issues

Using NuGet packets CredentialManagement on .NET6 - Warning NU1701

I am using the NuGet CredentialManagement package in a .NET6 project (Target OS Windows; Build x86). When compiling I get the following error message:

warning NU1701: Package 'CredentialManagement 1.0.2' was restored using '.NETFramework,version=v4.6.1, .NETFramework,version=v4.6.2, .NETFramework,version=v4.7, . NETFramework,version=v4.7.1, .NETFramework,version=v4.7.2, .NETFramework,version=v4.8, .NETFramework,version=v4.8.1' instead of the project target framework 'net6.0-windows7.0'. This package may not be fully compatible with your project.

Questions:

  1. Can I ignore this error message?
  2. Does CredentialManager no longer work properly on .NET6?
  3. Do I still need an installed .NET Framework 4.8.1 in addition to the .NET6 runtime?

Greetings Chris

releasing memory?

Credential.cs marshals a string on line 228:

      `credential.CredentialBlob = Marshal.StringToCoTaskMemUni(Password);`

Does the unmanaged memory need freeing afterwards, such as

      `Marshal.FreeCoTaskMem(credential.CredentialBlob);`

?

Please add GetLastError When Win32API command, fails

Hi.

Whenever a Win32API fails and SetLastError set to true on the DLL import, it's possible to add get the actual error.

referred code:

bool result = NativeMethods.CredWrite(ref credential, 0);

Possible way to get the actual error:

int lastError = System.Runtime.InteropServices.Marshal.GetLastWin32Error();
var message = String.Format("'CredWrite' throw an error (error code: {0})", lastError);
throw new Win32Exception(lastError, message);

Thanks.

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.