Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IO.IOException , when the output directory has the original nuget package . #1810

Open
UnnecessaryPunctuation opened this issue Jun 7, 2022 · 0 comments

Comments

@UnnecessaryPunctuation
Copy link

Squirrel version(s)
Using Squirrel 2.0.1 : \packages\squirrel.windows.2.0.1\tools.

Description
When using a power shell script to call nuget and squirrel.
If Nuget output and Squirrel are in the same directory.
Squirrel will throw Unhandled exception: System.IO.IOException: The process cannot access the file 'xxx.nupkg' because it is being used by another process

[07/06/22 14:58:22] fatal: Finished with unhandled exception: System.IO.IOException: Le processus ne peut pas accéder au fichier 'XYZ\bin\Debug\DevDebug.1.0.1.nupkg', car il est en cours d'utilisation par un autre processus.
à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
à Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, Boolean packageAs64Bit, String frameworkVersion, Boolean generateDeltas)
à Squirrel.Update.Program.executeCommandLine(String[] args)
à Squirrel.Update.Program.main(String[] args)

But no issue if I change one of the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant