Python Microsoft Visual Studio 2019 Community PowerShell設定 新しいページはコチラ
提供: yonewiki
(→概要) |
(→概要) |
||
54行: | 54行: | ||
<syntaxhighlight2 lang="python"> | <syntaxhighlight2 lang="python"> | ||
− | . : このシステムではスクリプトの実行が無効になっているため、ファイル C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile | + | . : このシステムではスクリプトの実行が無効になっているため、ファイル C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile.ps1 を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID=135170) を参照してください。 |
− | .ps1 を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID= | + | |
− | + | ||
発生場所 行:1 文字:3 | 発生場所 行:1 文字:3 | ||
+ . 'C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile.ps1' | + . 'C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile.ps1' | ||
72行: | 70行: | ||
− | + | のような感じのコマンドです。コマンド自体は正しいですが、再度profileとして、profile.ps1を呼び出しても動きません。以下のようなエラーが出ます。 | |
<syntaxhighlight2 lang="python"> | <syntaxhighlight2 lang="python"> | ||
− | profile : 用語 'profile' は、コマンドレット、関数、スクリプト | + | profile : 用語 'profile' は、コマンドレット、関数、スクリプト ファイル、または操作可能なプログラムの名前として認識されません。名前が正しく記述されていることを確認し、パスが含まれている場合はそのパスが正しいことを確認してから、再試行してください。 |
− | + | ||
− | + | ||
発生場所 行:1 文字:1 | 発生場所 行:1 文字:1 | ||
+ profile | + profile |