-
Notifications
You must be signed in to change notification settings - Fork 0
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
Davinci Console Error #1
Comments
Hi, thanks for feedback. Was it PowerShell 5.1 (old one) or PowerShell 7 (current one)? |
Hi Frank, It was the old one, because we use the old one via task scheduler. |
ok, thanks. Will look for a workaround to eliminate this error. |
Hmm, cannot reproduce this error. Could please give me your command sequence from Windows Task Planer? That would be great. |
Import-Module PSDaVinci The task schdeduler just triggers this 2-line-script |
One last: Which Windows environment? |
Windows Server 2022 21H2 (Build 20348.2849) |
You can substitute this line with: $psVersion = $PSVersionTable.PSVersion.Major
if ($psVersion -ge 7) {
Write-Host $stringTable.StartDaVinciConsole -ForegroundColor $Host.PrivateData.VerboseForegroundColor
} else {
Write-Host $stringTable.StartDaVinciConsole
} WriteHost seems to have some incompatibilities with PowerShell 5.1. A new official module versions will come later. |
Start-DaVinciExport : Der Parameter "ForegroundColor" kann nicht gebunden werden. Der Wert "#FF00FFFF" vom Typ "System.Windows.Media.Color" kann nicht in den Typ "System.ConsoleColor"
konvertiert werden.
I fixed the bug by changing line 287 instead of $Host.PrivateData.VerboseForegroundColor i used Cyan hardcoded.
The text was updated successfully, but these errors were encountered: