The Sandbox Post

Single Post Permalink

View Thread: Windows PowerShell Visual Studio 2005 Templates (C# and VB.NET)
  • fatherjack

    David,

    I installed VS in a 'non standard' way - on my D:\ HDD. your vsi files wont install, leaving a message of:
    Installation stopped because the directory for the ProjectType value did not exist.  The project type is invalid for your installation of Visual Studio.
    Any ideas please?

    I am new to PS and cannot create and execute ANY .ps1 files. I get an error like this:
    PS C:\scripts\PS> . ls


        Directory: Microsoft.PowerShell.Core\FileSystem::C:\scripts\PS


    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        08/06/2007     10:42            Help
    -a---        08/06/2007     11:59   18127360 abexet1.xls
    -a---        08/06/2007     15:22       1558 changeimagetype.ps1
    -a---        08/06/2007     11:17    7208826 Copy of exet1.csv
    -a---        08/06/2007     10:44         51 errors1.ps1
    -a---        08/06/2007     10:44         91 errors2.ps1
    -a---        08/06/2007     11:59    7205486 exet1.csv
    -a---        08/06/2007     12:00          0 exet1errors.csv
    -a---        04/06/2007     11:02      28562 ExetHome_Full.txt
    -a---        29/05/2007     12:47        732 ExetPS.txt
    -a---        04/06/2007     09:56       5572 ExetPS_Full.txt
    -a---        04/06/2007     11:04          0 ExetShared_Full.txt
    -a---        08/06/2007     09:25         59 myscript.PS1


    PS C:\scripts\PS> changeimagetype
    The term 'changeimagetype' is not recognized as a cmdlet, function, operable program, or script file. Verify the term a
    nd try again.
    At line:1 char:15
    + changeimagetype <<<<

    PS C:\scripts\PS> . changeimagetype
    The term 'changeimagetype' is not recognized as a cmdlet, function, operable program, or script file. Verify the term a
    nd try again.
    At line:1 char:2
    + .  <<<< changeimagetype
    PS C:\scripts\PS> changeimagetype .
    The term 'changeimagetype' is not recognized as a cmdlet, function, operable program, or script file. Verify the term a
    nd try again.
    At line:1 char:16
    + changeimagetype  <<<< .
    PS C:\scripts\PS>

    i can see so many uses for powershell but this is stopping me progressing.

    thanks