You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For reasons I cannot determine, my "efpt.postrun.cmd" is no longer running correctly. Or to be more accurate, it runs, but the line that calls my powershell script now fails because the script is now run with a default folder of 'C:\WINDOWS\system32' rather than the project folder.
For many months, my "efpt.postrun.cmd" file contained the following line: pwsh -File .\TrackingManager\Db\_UpdateDbJsonTypes.ps1
the relative path was always found and my script ran without issue.
But recently that stopped working.
I was able to get things working only by updating the line to contain the full path: pwsh -File C:\Users\ted.barham\source\repos\TrackingManager\TrackingManager\Db\_UpdateDbJsonTypes.ps1
But this is not a solution as the full path is only valid on my machine, so it will never work on other developer machines.
Any idea why efpt.postrun.cmd is now defaulting to 'C:\WINDOWS\system32' rather than the project folder? Is there a 'switch' in efpt somewhere that I might have messed-up?
I have looked through the GIT history of my project files and I can't find anything that would seem to be responsible.
I am running VS 2022 Version 17.10.2.
I have updated Visual Studio recently, and maybe that's the root of my problem? (but wouldn't other people have reported it?)
The text was updated successfully, but these errors were encountered:
For reasons I cannot determine, my "efpt.postrun.cmd" is no longer running correctly. Or to be more accurate, it runs, but the line that calls my powershell script now fails because the script is now run with a default folder of 'C:\WINDOWS\system32' rather than the project folder.
For many months, my "efpt.postrun.cmd" file contained the following line:
pwsh -File .\TrackingManager\Db\_UpdateDbJsonTypes.ps1
the relative path was always found and my script ran without issue.
But recently that stopped working.
I was able to get things working only by updating the line to contain the full path:
pwsh -File C:\Users\ted.barham\source\repos\TrackingManager\TrackingManager\Db\_UpdateDbJsonTypes.ps1
But this is not a solution as the full path is only valid on my machine, so it will never work on other developer machines.
Any idea why efpt.postrun.cmd is now defaulting to 'C:\WINDOWS\system32' rather than the project folder? Is there a 'switch' in efpt somewhere that I might have messed-up?
I have looked through the GIT history of my project files and I can't find anything that would seem to be responsible.
I am running VS 2022 Version 17.10.2.
I have updated Visual Studio recently, and maybe that's the root of my problem? (but wouldn't other people have reported it?)
The text was updated successfully, but these errors were encountered: