Skip to content

Failed to install addin when running from Windows powershell.exe #4478

Closed

Description

@GeertvanHorrik

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake .NET Tool

Cake version

latest 5.1 alpha

Operating system

Windows

Operating system architecture

x64

CI Server

No response

What are you seeing?

I am using %temp%/cake-build/addins in the config for the addins and tools.

When running this from powershell (A):

.\build.ps1 --target initialize --verbosity verbose --debug

The directory for the addins is C:/Users/DEVELO~1/AppData/Local/Temp/cake-build/addins

When running cake directly (B), the directory is C:/Users/developer/AppData/Local/Temp/cake-build/addins

The directories when searching for files in NuGet packages are:

A: ../../../../../../../developer/AppData/Local/Temp/cake-build/addins/Cake.FileHelpers.7.0.0/lib/net8.0/Cake.FileHelpers.dll
B: lib/net6.0/Cake.FileHelpers.dll

The first one clearly fails to figure out the (relative) directory of the NuGet package.

Will try to figure out what's causing this and create a PR.

What is expected?

Steps to Reproduce

Output log

No response

Activity

  1. added a commit that references this issue on Jun 5, 2025
    4e4013c
  2. added this to the v5.1.0 milestone on Jun 5, 2025
  3. changed the title [-]Failed to install addin when running from powershell[/-] [+]Failed to install addin when running from Windows powershell.exe[/+] on Jun 5, 2025
  4. github-actions commented on Oct 4, 2025

    @github-actions

    🎉 This issue has been resolved in version v5.1.0 🎉

    The release is available on:

    Your GitReleaseManager bot ðŸ“Ķ🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions