Skip to content

[e] Can't delete folder \Documents\PowerShell\Modules\PSPublishModule. Fix error before continuing: Access to the path \PSPublishModule.dll' is denied. #43

@PrzemyslawKlys

Description

@PrzemyslawKlys

[i] Reading configuration
[i] Reading configuration [Time: 00:00:00.1720282]

[i] Project/Module Name: PSPublishModule
[i] Current PSGallery Version: 2.0.25
[i] Expected Version: 2.0.26
[i] Full module temporary path: C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule
[i] Full project path: C:\Support\GitHub\PSPublishModule\Module
[i] Full temporary path: C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule_TEMP_1936053266
[i] PSScriptRoot: C:\Support\GitHub\PSPublishModule\Module\Private
[i] Current PSEdition: Core
[i] Destination Desktop: C:\Users\przemyslaw.klys\Documents\WindowsPowerShell\Modules\PSPublishModule
[i] Destination Core: C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule

[+] Building net472 (Release)
[i] Preparing copying module files for PSPublishModule from C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\PSPublishModule.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\PSPublishModule.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Buffers.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Buffers.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Collections.Immutable.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Collections.Immutable.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Memory.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Memory.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Numerics.Vectors.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Numerics.Vectors.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Reflection.Metadata.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Reflection.Metadata.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Reflection.MetadataLoadContext.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Reflection.MetadataLoadContext.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish\System.Runtime.CompilerServices.Unsafe.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Default\System.Runtime.CompilerServices.Unsafe.dll'
[i] Preparing copying module files for PSPublishModule from C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net472\publish. Completed!
[+] Building net8.0 (Release)
[i] Preparing copying module files for PSPublishModule from C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net8.0\publish
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net8.0\publish\PSPublishModule.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Core\PSPublishModule.dll'
[+] Copying 'C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net8.0\publish\System.Reflection.MetadataLoadContext.dll' as file 'C:\Support\GitHub\PSPublishModule\Module\Lib\Core\System.Reflection.MetadataLoadContext.dll'
[i] Preparing copying module files for PSPublishModule from C:\Support\GitHub\PSPublishModule\PSPublishModule\bin\Release\net8.0\publish. Completed!
[i] Preparing structure
[-] Deleting old module (Desktop destination) C:\Users\przemyslaw.klys\Documents\WindowsPowerShell\Modules\PSPublishModule
[-] Deleting old module (Desktop destination) C:\Users\przemyslaw.klys\Documents\WindowsPowerShell\Modules\PSPublishModule [Time: 00:00:00.0140793]
[-] Deleting old module (Core destination) C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule
[e] Can't delete folder C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule. Fix error before continuing: Access to the path 'C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule\Lib\Core\PSPublishModule.dll' is denied.
[e] Deleting old module (Core destination) C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule [Error: Failure in action above. Check output above.]
[-] Deleting old module (Core destination) C:\Users\przemyslaw.klys\Documents\PowerShell\Modules\PSPublishModule [Time: 00:00:00.0150214]
[-] Cleaning up temporary path C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule
[-] Cleaning up temporary path C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule [Time: 00:00:00.0031318]
[-] Cleaning up temporary path C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule_TEMP_1936053266
[-] Cleaning up temporary path C:\Users\przemyslaw.klys\AppData\Local\Temp\PSPublishModule_TEMP_1936053266 [Time: 00:00:00.0018863]
[e] Preparing structure [Error: Failure in action above. Check output above.]
[i] Preparing structure [Time: 00:00:00.0467178]
[i] Module Build Failed [Time Total: 0 days, 0 hours, 0 minutes, 4 seconds, 888 milliseconds]

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