Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

AreNuGetPackagesSafe task failed unexpectedly #11

@jkariotisAtNexIt

Description

@jkariotisAtNexIt

Error 1 The "AreNuGetPackagesSafe" task failed unexpectedly.
System.IO.IOException: The process cannot access the file 'C:\Projects\Alme\Agent\Development\NextIT.Alme.Server\packages\SafeNuGet.1.0.9\build\cache\unsafepackages.xml' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileInfo.OpenRead()
at Owasp.SafeNuGet.Unsafe.PackageListLoader.GetCachedUnsafePackages(String cachePath, Int32 cacheTimeInMinutes, Boolean& cacheHit)
at Owasp.SafeNuGet.AreNuGetPackagesSafe.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() NextIT.Utilities.Generics

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions