diff --git a/.gitignore b/.gitignore index 498fc50..552f1fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.vs/ +lib/ build/ bin/ obj/ diff --git a/PSHostsFile/CmdLets/GetHostsFileEntry.cs b/PSHostsFile/CmdLets/GetHostsFileEntry.cs index 59e1629..2a6a9ce 100644 --- a/PSHostsFile/CmdLets/GetHostsFileEntry.cs +++ b/PSHostsFile/CmdLets/GetHostsFileEntry.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Management.Automation; -using PSHostsFile.Core; +using System.Management.Automation; namespace PSHostsFile.CmdLets diff --git a/PSHostsFile/CmdLets/RemoveHostsFileEntry.cs b/PSHostsFile/CmdLets/RemoveHostsFileEntry.cs index ef2a539..b6f84e0 100644 --- a/PSHostsFile/CmdLets/RemoveHostsFileEntry.cs +++ b/PSHostsFile/CmdLets/RemoveHostsFileEntry.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Management.Automation; -using System.Text; -using PSHostsFile.Core; +using System.Management.Automation; namespace PSHostsFile.CmdLets { diff --git a/PSHostsFile/CmdLets/SetHostsFileEntry.cs b/PSHostsFile/CmdLets/SetHostsFileEntry.cs index 7816e84..f4c0efc 100644 --- a/PSHostsFile/CmdLets/SetHostsFileEntry.cs +++ b/PSHostsFile/CmdLets/SetHostsFileEntry.cs @@ -2,8 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using System.Text; -using PSHostsFile.Core; namespace PSHostsFile.CmdLets { diff --git a/PSHostsFile/Core/Remove.cs b/PSHostsFile/Core/Remove.cs index ac6bbac..9cc644e 100644 --- a/PSHostsFile/Core/Remove.cs +++ b/PSHostsFile/Core/Remove.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; using System.Text.RegularExpressions; diff --git a/PSHostsFile/HostsFile.cs b/PSHostsFile/HostsFile.cs index 6def251..223d899 100644 --- a/PSHostsFile/HostsFile.cs +++ b/PSHostsFile/HostsFile.cs @@ -1,10 +1,9 @@ -using System; +using PSHostsFile.Core; +using System; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Text.RegularExpressions; -using PSHostsFile.Core; namespace PSHostsFile { diff --git a/PSHostsFile/PSHostsFile.csproj b/PSHostsFile/PSHostsFile.csproj index 9111a51..31218df 100644 --- a/PSHostsFile/PSHostsFile.csproj +++ b/PSHostsFile/PSHostsFile.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,7 +10,7 @@ Properties PSHostsFile PSHostsFile - v3.5 + v4.8 512 @@ -22,6 +22,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -30,6 +31,7 @@ TRACE prompt 4 + false true diff --git a/PSHostsFileTest/AssertFile.cs b/PSHostsFileTest/AssertFile.cs index 1ae361c..e86df5e 100644 --- a/PSHostsFileTest/AssertFile.cs +++ b/PSHostsFileTest/AssertFile.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; +using PowerAssert; using System.IO; -using System.Linq; -using System.Text; -using NUnit.Framework; -using PowerAssert; namespace PSHostsFileTest { diff --git a/PSHostsFileTest/BetterTests/GetHostsFileEntryTests.cs b/PSHostsFileTest/BetterTests/GetHostsFileEntryTests.cs index 216200d..83b7a0a 100644 --- a/PSHostsFileTest/BetterTests/GetHostsFileEntryTests.cs +++ b/PSHostsFileTest/BetterTests/GetHostsFileEntryTests.cs @@ -1,13 +1,8 @@ -using System; -using System.Collections.Generic; +using NJasmine; +using PSHostsFile; using System.Collections.ObjectModel; using System.Linq; using System.Management.Automation; -using System.Management.Automation.Runspaces; -using System.Text; -using NJasmine; -using PSHostsFile; -using PSHostsFile.CmdLets; namespace PSHostsFileTest.BetterTests { diff --git a/PSHostsFileTest/BetterTests/PowershallRunspaceFactory.cs b/PSHostsFileTest/BetterTests/PowershallRunspaceFactory.cs index 5cceab9..1f7c050 100644 --- a/PSHostsFileTest/BetterTests/PowershallRunspaceFactory.cs +++ b/PSHostsFileTest/BetterTests/PowershallRunspaceFactory.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections.Generic; +using PSHostsFile.CmdLets; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.Text; -using PSHostsFile.CmdLets; namespace PSHostsFileTest.BetterTests { diff --git a/PSHostsFileTest/BetterTests/SetHostsFileEntryTests.cs b/PSHostsFileTest/BetterTests/SetHostsFileEntryTests.cs index 2da6b7b..414f98e 100644 --- a/PSHostsFileTest/BetterTests/SetHostsFileEntryTests.cs +++ b/PSHostsFileTest/BetterTests/SetHostsFileEntryTests.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; +using NJasmine; using System.Linq; using System.Management.Automation.Runspaces; using System.Text; -using NJasmine; namespace PSHostsFileTest.BetterTests { diff --git a/PSHostsFileTest/PSHostsFileTest.csproj b/PSHostsFileTest/PSHostsFileTest.csproj index 3fe1762..5ce6f3d 100644 --- a/PSHostsFileTest/PSHostsFileTest.csproj +++ b/PSHostsFileTest/PSHostsFileTest.csproj @@ -1,5 +1,7 @@  - + + + Debug AnyCPU @@ -10,9 +12,11 @@ Properties PSHostsFileTest PSHostsFileTest - v3.5 + v4.8 512 + + true @@ -22,6 +26,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -30,6 +35,7 @@ TRACE prompt 4 + false @@ -41,8 +47,8 @@ ..\packages\NJasmine.NUnit.0.2.4.0\lib\NJasmine.NUnit.dll - - ..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll + + ..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll ..\packages\PowerAssert.1.0.2\lib\PowerAssert.dll @@ -79,6 +85,13 @@ + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + - - - - - - - - - - - - - - - - diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/launcher.log.conf b/packages/NUnit.Runners.2.6.0.12051/tools/launcher.log.conf deleted file mode 100644 index 6a9ced8..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/launcher.log.conf +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Failure.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Failure.jpg deleted file mode 100644 index c245548..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Failure.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Ignored.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Ignored.jpg deleted file mode 100644 index 0549b70..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Ignored.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Inconclusive.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Inconclusive.jpg deleted file mode 100644 index 8d36153..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Inconclusive.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Skipped.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Skipped.jpg deleted file mode 100644 index 3d84255..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Skipped.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Success.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Success.jpg deleted file mode 100644 index 15ec1b7..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Circles/Success.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Failure.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Failure.jpg deleted file mode 100644 index 658905f..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Failure.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Ignored.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Ignored.jpg deleted file mode 100644 index 95b7fdb..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Ignored.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Inconclusive.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Inconclusive.jpg deleted file mode 100644 index 32a0ff7..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Inconclusive.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Skipped.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Skipped.jpg deleted file mode 100644 index 3d84255..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Skipped.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Success.jpg b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Success.jpg deleted file mode 100644 index 3d8e760..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Classic/Success.jpg and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Failure.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Failure.png deleted file mode 100644 index 2e400b2..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Failure.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Ignored.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Ignored.png deleted file mode 100644 index 05715cb..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Ignored.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Inconclusive.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Inconclusive.png deleted file mode 100644 index 4807b7c..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Inconclusive.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Skipped.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Skipped.png deleted file mode 100644 index 7c9fc64..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Skipped.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Success.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Success.png deleted file mode 100644 index 2a30150..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Default/Success.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Failure.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Failure.png deleted file mode 100644 index ba03e84..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Failure.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Ignored.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Ignored.png deleted file mode 100644 index 9271d6e..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Ignored.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Inconclusive.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Inconclusive.png deleted file mode 100644 index 76219b5..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Inconclusive.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/SeriousWarning.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/SeriousWarning.png deleted file mode 100644 index 6a578cc..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/SeriousWarning.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Skipped.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Skipped.png deleted file mode 100644 index 7c9fc64..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Skipped.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Success.png b/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Success.png deleted file mode 100644 index 346fe8f..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/Images/Tree/Visual Studio/Success.png and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/log4net.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/log4net.dll deleted file mode 100644 index 20a2e1c..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/log4net.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-console-runner.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-console-runner.dll deleted file mode 100644 index b0e611a..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-console-runner.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-gui-runner.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-gui-runner.dll deleted file mode 100644 index ebff05e..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit-gui-runner.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.dll deleted file mode 100644 index 5f748be..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.interfaces.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.interfaces.dll deleted file mode 100644 index 72b9486..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.core.interfaces.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uiexception.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uiexception.dll deleted file mode 100644 index 9129c03..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uiexception.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uikit.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uikit.dll deleted file mode 100644 index 76c1af4..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.uikit.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.util.dll b/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.util.dll deleted file mode 100644 index 28d603c..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/lib/nunit.util.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe deleted file mode 100644 index aa2b8e9..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe.config deleted file mode 100644 index 43adb3b..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent-x86.exe.config +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe deleted file mode 100644 index 3068f41..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe.config deleted file mode 100644 index 43adb3b..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-agent.exe.config +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe deleted file mode 100644 index 1a641e9..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe.config deleted file mode 100644 index 3a2afb3..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console-x86.exe.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe deleted file mode 100644 index 0735eef..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe.config deleted file mode 100644 index 3a2afb3..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-console.exe.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-editor.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-editor.exe deleted file mode 100644 index 7e0c55f..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-editor.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe deleted file mode 100644 index d90b9f5..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe.config deleted file mode 100644 index 7bd69c5..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit-x86.exe.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe b/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe deleted file mode 100644 index 110b626..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe.config deleted file mode 100644 index 7bd69c5..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.exe.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.framework.dll b/packages/NUnit.Runners.2.6.0.12051/tools/nunit.framework.dll deleted file mode 100644 index eaea9ee..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe deleted file mode 100644 index 10bc00c..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe.config deleted file mode 100644 index 2da8776..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-agent.exe.config +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe deleted file mode 100644 index 3f09f05..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe.config b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe.config deleted file mode 100644 index 2da8776..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit-launcher.exe.config +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.framework.dll b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.framework.dll deleted file mode 100644 index 44bf6ad..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.tests.dll b/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.tests.dll deleted file mode 100644 index 9e4f4fd..0000000 Binary files a/packages/NUnit.Runners.2.6.0.12051/tools/pnunit.tests.dll and /dev/null differ diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/runpnunit.bat b/packages/NUnit.Runners.2.6.0.12051/tools/runpnunit.bat deleted file mode 100644 index f41cb5a..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/runpnunit.bat +++ /dev/null @@ -1,3 +0,0 @@ -start pnunit-agent 8080 . -start pnunit-agent 8081 . -pnunit-launcher test.conf diff --git a/packages/NUnit.Runners.2.6.0.12051/tools/test.conf b/packages/NUnit.Runners.2.6.0.12051/tools/test.conf deleted file mode 100644 index 63cc7bd..0000000 --- a/packages/NUnit.Runners.2.6.0.12051/tools/test.conf +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - Testing - - - Testing - pnunit.tests.dll - TestLibraries.Testing.EqualTo19 - $agent_host:8080 - - - - - - - Parallel_Tests - - - ParallelTest_A_Test - pnunit.tests.dll - TestLibraries.ParallelExample.ParallelTest_A - $agent_host:8080 - - - 2 - - - - ParallelTest_B_Test - pnunit.tests.dll - TestLibraries.ParallelExample.ParallelTest_B - $agent_host:8080 - - 1 - - - - - - - - - Parallel_Barriers - - - Parallel_Barriers_TestA - pnunit.tests.dll - TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersA - $agent_host:8080 - - - - START_BARRIER - WAIT_BARRIER - - - - Parallel_Barriers_TestB - pnunit.tests.dll - TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersB - $agent_host:8081 - - - - START_BARRIER - WAIT_BARRIER - - - - - - - - \ No newline at end of file diff --git a/packages/NUnit3TestAdapter.3.16.1/.signature.p7s b/packages/NUnit3TestAdapter.3.16.1/.signature.p7s new file mode 100644 index 0000000..dde3db4 Binary files /dev/null and b/packages/NUnit3TestAdapter.3.16.1/.signature.p7s differ diff --git a/packages/NUnit3TestAdapter.3.16.1/LICENSE.txt b/packages/NUnit3TestAdapter.3.16.1/LICENSE.txt new file mode 100644 index 0000000..853e5f5 --- /dev/null +++ b/packages/NUnit3TestAdapter.3.16.1/LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) 2011-2020 Charlie Poole, 2014-2020 Terje Sandstrom + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/packages/NUnit3TestAdapter.3.16.1/NUnit3TestAdapter.3.16.1.nupkg b/packages/NUnit3TestAdapter.3.16.1/NUnit3TestAdapter.3.16.1.nupkg new file mode 100644 index 0000000..5d6d81f Binary files /dev/null and b/packages/NUnit3TestAdapter.3.16.1/NUnit3TestAdapter.3.16.1.nupkg differ diff --git a/packages/PowerAssert.1.0.2/.signature.p7s b/packages/PowerAssert.1.0.2/.signature.p7s new file mode 100644 index 0000000..923f867 Binary files /dev/null and b/packages/PowerAssert.1.0.2/.signature.p7s differ diff --git a/packages/PowerAssert.1.0.2/PowerAssert.1.0.2.nupkg b/packages/PowerAssert.1.0.2/PowerAssert.1.0.2.nupkg index 9d0fede..49d03e0 100644 Binary files a/packages/PowerAssert.1.0.2/PowerAssert.1.0.2.nupkg and b/packages/PowerAssert.1.0.2/PowerAssert.1.0.2.nupkg differ diff --git a/packages/psake.4.0.1.0/psake.4.0.1.0.nupkg b/packages/psake.4.0.1.0/psake.4.0.1.0.nupkg deleted file mode 100644 index dca571b..0000000 Binary files a/packages/psake.4.0.1.0/psake.4.0.1.0.nupkg and /dev/null differ diff --git a/packages/psake.4.0.1.0/tools/README.markdown b/packages/psake.4.0.1.0/tools/README.markdown deleted file mode 100644 index 3de8cef..0000000 --- a/packages/psake.4.0.1.0/tools/README.markdown +++ /dev/null @@ -1,54 +0,0 @@ -Welcome to the psake project. -============================= - -psake is a build automation tool written in PowerShell. It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts. -psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existent command-line knowledge. - -psake is pronounced sake – as in Japanese rice wine. It does NOT rhyme with make, bake, or rake. - -## How to get started: - -**Step 1:** Download and extract the project - -You will need to "unblock" the zip file before extracting - PowerShell by default does not run files downloaded from the internet. -Just right-click the zip and click on "properties" and click on the "unblock" button. - -**Step 2:** CD into the directory where you extracted the project (where the psake.psm1 file is) - -> Import-Module .\psake.psm1 - -If you encounter the following error "Import-Module : ...psake.psm1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. - -1. Run PowerShell as administrator -2. Set-ExecutionPolicy RemoteSigned - -> Get-Help Invoke-psake -Full -> - this will show you help and examples of how to use psake - -**Step 3:** Run some examples - -> CD .\examples -> -> Invoke-psake -> - This will execute the "default" task in the "default.ps1" -> -> Invoke-psake .\default.ps1 Clean -> - will execute the single task in the default.ps1 script - -## How To Contribute, Collaborate, Communicate - -If you'd like to get involved with psake, we have discussion groups over at google: **[psake-dev](http://groups.google.com/group/psake-dev)** **[psake-users](http://groups.google.com/group/psake-users)** - -Anyone can fork the main repository and submit patches, as well. And lastly, the [wiki](http://wiki.github.com/JamesKovacs/psake/) and [issues list](http://github.com/JamesKovacs/psake/issues) are also open for additions, edits, and discussion. - -Also check out the **[psake-contrib](http://github.com/JamesKovacs/psake-contrib)** project for scripts,modules and functions to help you with a build - -## Contributors - -Many thanks for contributions to psake are due (in alphabetical order): - -* candland -* Staxmanade -* lanwin -* smbecker -* stej \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/chocolateyInstall.ps1 b/packages/psake.4.0.1.0/tools/chocolateyInstall.ps1 deleted file mode 100644 index 044e685..0000000 --- a/packages/psake.4.0.1.0/tools/chocolateyInstall.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -$nugetPath = 'C:\NuGet' -$nugetExePath = Join-Path $nuGetPath 'bin' -$packageBatchFileName = Join-Path $nugetExePath "psake.bat" - -$psakeDir = (Split-Path -parent $MyInvocation.MyCommand.Definition) -#$path = ($psakeDir | Split-Path | Join-Path -ChildPath 'psake.cmd') -$path = Join-Path $psakeDir 'psake.cmd' -Write-Host "Adding $packageBatchFileName and pointing to $path" -"@echo off -""$path"" %*" | Out-File $packageBatchFileName -encoding ASCII - - -write-host "PSake is now ready. You can type 'psake' from any command line at any path. Get started by typing 'psake /?'" -Start-Sleep 6 \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/en-US/psake.psm1-help.xml b/packages/psake.4.0.1.0/tools/en-US/psake.psm1-help.xml deleted file mode 100644 index c67ebd4..0000000 --- a/packages/psake.4.0.1.0/tools/en-US/psake.psm1-help.xml +++ /dev/null @@ -1,1919 +0,0 @@ - - - - - Invoke-psake - - Runs a psake build script. - - - - - Invoke - psake - - - - This function runs a psake build script - - - - Invoke-psake - - buildFile - String - - - taskList - String[] - - - framework - String - - - docs - SwitchParameter - - - parameters - Hashtable - - - properties - Hashtable - - - - - - buildFile - - The path to the psake build script to execute - - String - - String - - - 'default.ps1' - - - taskList - - A comma-separated list of task names to execute - - String[] - - String[] - - - - - - framework - - The version of the .NET framework you want to build. You can append x86 or x64 to force a specific framework. If not specified, x86 or x64 will be detected based on the bitness of the PowerShell process. -Possible values: '1.0', '1.1', '2.0', '2.0x86', '2.0x64', '3.0', '3.0x86', '3.0x64', '3.5', '3.5x86', '3.5x64', '4.0', '4.0x86', '4.0x6' - - String - - String - - - '3.5' - - - docs - - Prints a list of tasks and their descriptions - - SwitchParameter - - SwitchParameter - - - - - - parameters - - A hashtable containing parameters to be passed into the current build script. These parameters will be processed before the 'Properties' function of the script is processed. This means you can access parameters from within the 'Properties' function! - - - Hashtable - - Hashtable - - - - - - properties - - A hashtable containing properties to be passed into the current build script. These properties will override matching properties that are found in the 'Properties' function of the script. - - Hashtable - - Hashtable - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - ---- Exceptions ---- - If there is an exception thrown during the running of a build script and the build script was invoked by a windows service then psake will execute the "exit" command (with a default value of "1") which in turn sets the PowerShell $lastexitcode variable otherwise psake will set the '$psake.build_success' variable to $true or $false depending on whether an exception was thrown. - - - - ---- $psake variable ---- - When the psake module is loaded a variable called $psake is created which is a hashtable -containing some variables that can be used to configure psake: - -$psake.build_success = $false # indicates that the current build was successful -$psake.version = "4.00" # contains the current version of psake -$psake.build_script_file = $null # contains a System.IO.FileInfo for the current build file -$psake.build_script_dir # contains the fully qualified path to the current build file -$psake.framework_version = "" # contains the framework version # for the current build - -You should see the following when you display the contents of the $psake variable right after importing psake - -PS projects:\psake> Import-Module .\psake.psm1 -PS projects:\psake> $psake - -Name Value ----- ----- -version 4.00 -build_script_file -build_script_dir -build_success False -framework_version - -After a build is executed the following $psake values are updated (build_script_file, build_script_dir, build_success, and framework_version) - -PS projects:\psake> Invoke-psake .\examples\default.ps1 -Executing task: Clean -Executed Clean! -Executing task: Compile -Executed Compile! -Executing task: Test -Executed Test! - -Build Succeeded! - ----------------------------------------------------------------------- -Build Time Report ----------------------------------------------------------------------- -Name Duration ----- -------- -Clean 00:00:00.0798486 -Compile 00:00:00.0869948 -Test 00:00:00.0958225 -Total: 00:00:00.2712414 - -PS projects:\psake> $psake - -Name Value ----- ----- -version 4.00 -build_script_file C:\Users\Jorge\Documents\Projects\psake\examples\default.ps1 -build_script_dir C:\Users\Jorge\Documents\Projects\psake\examples -build_success True -framework_version 3.5 - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - Invoke-psake - - Description - ----------- - Runs the 'default' task in the '.build.ps1' build script - - - - - - - - - - - - -------------- EXAMPLE 2 -------------- - - C:\PS> - - Invoke-psake '.\build.ps1' Tests,Package - - Description - ----------- - Runs the 'Tests' and 'Package' tasks in the '.build.ps1' build script - - - - - - - - - - - - -------------- EXAMPLE 3 -------------- - - C:\PS> - - Invoke-psake Tests - - Description - ----------- - This example will run the 'Tests' tasks in the 'default.ps1' build script. The 'default.ps1' is assumed to be in the current directory. - - - - - - - - - - - - -------------- EXAMPLE 4 -------------- - - C:\PS> - - Invoke-psake 'Tests, Package' - - Description - ----------- - This example will run the 'Tests' and 'Package' tasks in the 'default.ps1' build script. The 'default.ps1' is assumed to be in the current directory. - NOTE: The quotes around the list of tasks to execute is required if you want to execute more than 1 task. - - - - - - - - - - - -------------- EXAMPLE 5 -------------- - - C:\PS> - - Invoke-psake .\build.ps1 -docs - - Description - ----------- - Prints a report of all the tasks and their dependencies and descriptions and then exits - - - - - - - - - - - - -------------- EXAMPLE 6 -------------- - - C:\PS> - - Invoke-psake .\parameters.ps1 -parameters @{"p1"="v1";"p2"="v2"} - - Description - ----------- - Runs the build script called 'parameters.ps1' and passes in parameters 'p1' and 'p2' with values 'v1' and 'v2' - Here's the .\parameters.ps1 build script: - - - properties { - $my_property = $p1 + $p2 -} - -task default -depends TestParams - -task TestParams { - Assert ($my_property -ne $null) '$my_property should not be null' -} - - Notice how you can refer to the parameters that were passed into the script from within the “properties” function. The value of the $p1 variable should be the string “v1” and the value of the $p2 variable should be “v2”. - - - - - - - - - - -------------- EXAMPLE 7 -------------- - - C:\PS> - - Invoke-psake .\properties.ps1 -properties @{"x"="1";"y"="2"} - - Description - ----------- - Runs the build script called 'properties.ps1' and passes in parameters 'x' and 'y' with values '1' and '2' - This feature allows you to over-ride existing properties in your build script. - - Here's the .\properties.ps1 build script - properties { - $x = $null - $y = $null - $z = $null -} - -task default -depends TestProperties - -task TestProperties { - Assert ($x -ne $null) "x should not be null" - Assert ($y -ne $null) "y should not be null" - Assert ($z -eq $null) "z should be null" -} - - - - - - - - - - - - - Task - - - - Include - - - - Properties - - - - FormatTaskName - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - TaskTearDown - - Adds a scriptblock to the build that will be executed after each task - - - - - - - - - - This function will accept a scriptblock that will be executed after each -task in the build script. - - - - TaskTearDown - - teardown - ScriptBlock - - - - - - teardown - - A scriptblock to execute - - ScriptBlock - - ScriptBlock - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script is shown below: - -Task default -depends Test - -Task Test -depends Compile, Clean { -} - -Task Compile -depends Clean { -} - -Task Clean { -} - -TaskTearDown { - "Running 'TaskTearDown' for task $context.Peek().currentTaskName" -} - - Description - ----------- - The script above produces the following output: - Executing task, Clean... -Running 'TaskTearDown' for task Clean -Executing task, Compile... -Running 'TaskTearDown' for task Compile -Executing task, Test... -Running 'TaskTearDown' for task Test - -Build Succeeded - - - - - - - - - - - - Task - - - - Include - - - - Properties - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - TaskSetup - - Adds a scriptblock that will be executed before each task - - - - - - - - - - This function will accept a scriptblock that will be executed before each -task in the build script. - - - - TaskSetup - - setup - ScriptBlock - - - - - - setup - - A scriptblock to execute - - ScriptBlock - - ScriptBlock - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script is shown below: - -Task default -depends Test - -Task Test -depends Compile, Clean { -} - -Task Compile -depends Clean { -} - -Task Clean { -} - -TaskSetup { - "Running 'TaskSetup' for task $context.Peek().currentTaskName" -} - - Description - ----------- - The script above produces the following output: - Running 'TaskSetup' for task Clean -Executing task, Clean... -Running 'TaskSetup' for task Compile -Executing task, Compile... -Running 'TaskSetup' for task Test -Executing task, Test... - -Build Succeeded - - - - - - - - - - - - Task - - - - Include - - - - Properties - - - - Invoke-psake - - - - FormatTaskName - - - - TaskTearDown - - - - Assert - - - - - - - - FormatTaskName - - This function allows you to change how psake renders the task name during a build. - - - - - - - - - - This function takes either a string which represents a format string (formats using the -f format operator see “help about_operators”) or it can accept a script block that has a single parameter that is the name of the task that will be executed. - - - - FormatTaskName - - format - String or ScriptBlock - - - - - - format - - A format string or a scriptblock to execute - - String or ScriptBlock - - String or ScriptBlock - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script that uses a format string is shown below: - -Task default -depends TaskA, TaskB, TaskC - -FormatTaskName "-------- {0} --------" - -Task TaskA { - "TaskA is executing" -} - -Task TaskB { - "TaskB is executing" -} - -Task TaskC { - "TaskC is executing" -} - - Description - ----------- - The script above produces the following output: - -------- TaskA -------- -TaskA is executing --------- TaskB -------- -TaskB is executing --------- TaskC -------- -TaskC is executing - -Build Succeeded! - - - - - - - - - - -------------- EXAMPLE 2 -------------- - - C:\PS> - - A sample build script that uses a ScriptBlock is shown below: - -Task default -depends TaskA, TaskB, TaskC - -FormatTaskName { - param($taskName) - write-host "Executing Task: $taskName" -foregroundcolor blue -} - -Task TaskA { - "TaskA is executing" -} - -Task TaskB { - "TaskB is executing" -} - -Task TaskC { - "TaskC is executing" -} - - Description - ----------- - The preceding example uses the scriptblock parameter to the FormatTaskName function to render each task name in the color blue. - Note: the $taskName parameter is arbitrary it could be named anything - - - - - - - - - - - - Task - - - - Include - - - - Properties - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - Include - - Include the functions or code of another powershell script file into the current build script's scope - - - - - - - - - - A build script may declare an "includes" function which allows you to define a file containing powershell code to be included and added to the scope of the currently running build script. - - - - Include - - fileNamePathToInclude - String - - - - - - fileNamePathToInclude - - A string containing the path and name of the powershell file to include - - String - - String - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script is shown below: - -Include ".\build_utils.ps1" - -Task default -depends Test - -Task Test -depends Compile, Clean { -} - -Task Compile -depends Clean { -} - -Task Clean { -} - - Description - ----------- - The script above includes all the functions and variables defined in the ".\build_utils.ps1" script into the current build script's scope - Note: You can have more than 1 "Include" function defined in the build script - - - - - - - - - - - - Task - - - - FormatTaskName - - - - Properties - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - Properties - - Define a scriptblock that contains assignments to variables that will be available to all tasks in the build script - - - - - - - - - - A build script may declare a "Properies" function which allows you to define variables that will be available to all the "Task" functions in the build script. - - - - Properties - - properties - ScriptBlock - - - - - - properties - - The script block containing all the variable assignment statements - - ScriptBlock - - ScriptBlock - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script is shown below: - -Properties { - $build_dir = "c:\build" - $connection_string = "datasource=localhost;initial catalog=northwind;integrated security=sspi" -} - -Task default -depends Test - -Task Test -depends Compile, Clean { -} - -Task Compile -depends Clean { -} - -Task Clean { -} - - Description - ----------- - Note: You can have more than 1 "Properties" function defined in the build script - - - - - - - - - - - - - - - Task - - - - FormatTaskName - - - - Include - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - Task - - Defines a build task to be executed by psake - - - - - - - - - - This function creates a 'task' object that will be used by the psake engine to execute a build task. Note: There must be at least one task called 'default' in the build script - - - - Task - - Name - String - - - Action - ScriptBlock - - - PreAction - ScriptBlock - - - PostAction - ScriptBlock - - - Precondition - ScriptBlock - - - Postcondition - ScriptBlock - - - ContinueOnError - Boolean - - - Depends - String[] - - - Description - String[] - - - - - - Name - - The name of the task - - String - - String - - - - - - Action - - A scriptblock containing the statements to execute for the task. - - ScriptBlock - - ScriptBlock - - - - - - PreAction - - A scriptblock to be executed before the 'Action' scriptblock. Note: This parameter is ignored if the 'Action' scriptblock is not defined. - - ScriptBlock - - ScriptBlock - - - - - - PostAction - - A scriptblock to be executed after the 'Action' scriptblock. Note: This parameter is ignored if the 'Action' scriptblock is not defined. - - ScriptBlock - - ScriptBlock - - - - - - Precondition - - A scriptblock that is executed to determine if the task is executed or skipped. This scriptblock should return $true or $false - - ScriptBlock - - ScriptBlock - - - - - - Postcondition - - A scriptblock that is executed to determine if the task completed its job correctly. An exception is thrown if the scriptblock returns $false. - - ScriptBlock - - ScriptBlock - - - - - - ContinueOnError - - If this switch parameter is set then the task will not cause the build to fail when an exception is thrown by the task - - SwitchParameter - - SwitchParameter - - - - - - Depends - - An array of task names that this task depends on. These tasks will be executed before the current task is executed. - - String[] - - String[] - - - - - - Description - - A description of the task. - - String - - String - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - A sample build script is shown below: - -Task default -Depends Test - -Task Test -Depends Compile, Clean { - "This is a test" -} - -Task Compile -Depends Clean { - "Compile" -} - -Task Clean { - "Clean" -} - -The 'default' task is required and should not contain an 'Action' parameter. -It uses the 'Depends' parameter to specify that 'Test' is a dependency - -The 'Test' task uses the 'Depends' parameter to specify that 'Compile' and 'Clean' are dependencies -The 'Compile' task depends on the 'Clean' task. - -Note: -The 'Action' parameter is defaulted to the script block following the 'Clean' task. - -An equivalent 'Test' task is shown below: - -Task Test -Depends Compile, Clean -Action { - $testMessage -} - -The output for the above sample build script is shown below: -Executing task, Clean... -Clean -Executing task, Compile... -Compile -Executing task, Test... -This is a test - -Build Succeeded! - ----------------------------------------------------------------------- -Build Time Report ----------------------------------------------------------------------- -Name Duration ----- -------- -Clean 00:00:00.0065614 -Compile 00:00:00.0133268 -Test 00:00:00.0225964 -Total: 00:00:00.0782496 - - - - - - - - - - - - - - - - Properties - - - - FormatTaskName - - - - Include - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Assert - - - - - - - - Assert - - Helper function for "Design by Contract" assertion checking. - - - - - - - - - - This is a helper function that makes the code less noisy by eliminating many of the "if" statements that are normally required to verify assumptions in the code. - - - - Assert - - conditionToCheck - Boolean - - - failureMessage - String - - - - - - conditionToCheck - - The boolean condition to evaluate - - Boolean - - Boolean - - - - - - failureMessage - - The error message used for the exception if the conditionToCheck parameter is false - - String - - String - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - Assert $false "This always throws an exception" - - - - - - - - - - - - - -------------- EXAMPLE 2 -------------- - - C:\PS> - - Assert ( ($i % 2) -eq 0 ) "$i is not an even number" - - Description - ----------- - This exmaple may throw an exception if $i is not an even number - - Note: - It might be necessary to wrap the condition with paranthesis to force PS to evaluate the condition -so that a boolean value is calculated and passed into the 'conditionToCheck' parameter. - -Example: - Assert 1 -eq 2 "1 doesn't equal 2" - -PS will pass 1 into the condtionToCheck variable and PS will look for a parameter called "eq" and -throw an exception with the following message "A parameter cannot be found that matches parameter name 'eq'" - -The solution is to wrap the condition in () so that PS will evaluate it first. - - Assert (1 -eq 2) "1 doesn't equal 2" - - - - - - - - - - - - - Task - - - - FormatTaskName - - - - Include - - - - Invoke-psake - - - - TaskSetup - - - - TaskTearDown - - - - Properties - - - - - - - - Exec - - Helper function for executing command-line programs. - - - - - - - - - - This is a helper function that runs a scriptblock and checks the PS variable $lastexitcode to see if an error occcured. If an error is detected then an exception is thrown. This function allows you to run command-line programs without having to explicitly check fthe $lastexitcode variable. - - - - Exec - - cmd - ScriptBlock - - - errorMessage - String - - - - - - cmd - - The scriptblock to execute. This scriptblock will typically contain the command-line invocation. - - ScriptBlock - - Boolean - - - - - - failureMessage - - The error message used for the exception that is thrown. - - String - - String - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - exec { svn info $repository_trunk } "Error executing SVN. Please verify SVN command-line client is installed" - - This example calls the svn command-line client. - - - - - - - - - - - - - - Assert - - - - FormatTaskName - - - - Include - - - - Invoke-psake - - - - Properties - - - - Task - - - - TaskSetup - - - - TaskTearDown - - - - - - - - Invoke-Task - - Executes another task in the current build script. - - - - - - - - - - This is a function that will allow you to invoke a Task from within another Task in the current build script. - - - - Invoke-Task - - taskName - String - - - - - - taskName - - The name of the task to execute. - - String - - String - - - - - - - - - None - - - - - - - - - - - - None - - - - - - - - - - - - - - - - - - - -------------- EXAMPLE 1 -------------- - - C:\PS> - - Invoke-Task "Compile" - - This example calls the "Compile" task. - - - - - - - - - - - - - - Assert - - - - Exec - - - - FormatTaskName - - - - Include - - - - Invoke-psake - - - - Properties - - - - Task - - - - TaskSetup - - - - TaskTearDown - - - - - diff --git a/packages/psake.4.0.1.0/tools/examples/checkvariables.ps1 b/packages/psake.4.0.1.0/tools/examples/checkvariables.ps1 deleted file mode 100644 index 91ac17a..0000000 --- a/packages/psake.4.0.1.0/tools/examples/checkvariables.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -Properties { - $x = 1 - $y = 2 -} - -FormatTaskName "[{0}]" - -Task default -Depends Verify - -Task Verify -Description "This task verifies psake's variables" { - - $assertions = @( - ((Test-Path 'variable:\psake'), "'psake' variable was not exported from module"), - (($variable:psake.ContainsKey("build_success")), "psake variable does not contain 'build_success'"), - (($variable:psake.ContainsKey("version")), "psake variable does not contain 'version'"), - (($variable:psake.ContainsKey("build_script_file")), "psake variable does not contain 'build_script_file'"), - (($variable:psake.ContainsKey("framework_version")), "psake variable does not contain 'framework_version'"), - ((!$variable:psake.build_success), 'psake.build_success should be $false'), - ((![string]::IsNullOrEmpty($variable:psake.version)), 'psake.version was null or empty'), - (($variable:psake.build_script_file -ne $null), '$psake.build_script_file was null'), - (($variable:psake.build_script_file.Name -eq "checkvariables.ps1"), ("psake variable: {0} was not equal to 'VerifyVariables.ps1'" -f $psake.build_script_file.Name)), - ((![string]::IsNullOrEmpty($variable:psake.framework_version)), 'psake variable: $psake.framework_version was null or empty'), - (($variable:psake.context.Peek().tasks.Count -ne 0), 'psake variable: $tasks had length zero'), - (($variable:psake.context.Peek().properties.Count -ne 0), 'psake variable: $properties had length zero'), - (($variable:psake.context.Peek().includes.Count -eq 0), 'psake variable: $includes should have had length zero'), - (($variable:psake.context.Peek().formatTaskNameString -ne ""), 'psake variable: $formatTaskNameString was not set correctly'), - (($variable:psake.context.Peek().currentTaskName -eq "Verify"), 'psake variable: $currentTaskName was not set correctly') - ) - - foreach ($assertion in $assertions) - { - Assert ( $assertion[0] ) $assertion[1] - } -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/continueonerror.ps1 b/packages/psake.4.0.1.0/tools/examples/continueonerror.ps1 deleted file mode 100644 index 08a366c..0000000 --- a/packages/psake.4.0.1.0/tools/examples/continueonerror.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -Task default -Depends TaskA - -Task TaskA -Depends TaskB { - "Task - A" -} - -Task TaskB -Depends TaskC -ContinueOnError { - "Task - B" - throw "I failed on purpose!" -} - -Task TaskC { - "Task - C" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/default.ps1 b/packages/psake.4.0.1.0/tools/examples/default.ps1 deleted file mode 100644 index 4aca358..0000000 --- a/packages/psake.4.0.1.0/tools/examples/default.ps1 +++ /dev/null @@ -1,23 +0,0 @@ -properties { - $testMessage = 'Executed Test!' - $compileMessage = 'Executed Compile!' - $cleanMessage = 'Executed Clean!' -} - -task default -depends Test - -task Test -depends Compile, Clean { - $testMessage -} - -task Compile -depends Clean { - $compileMessage -} - -task Clean { - $cleanMessage -} - -task ? -Description "Helper to display task info" { - Write-Documentation -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/formattaskname_scriptblock.ps1 b/packages/psake.4.0.1.0/tools/examples/formattaskname_scriptblock.ps1 deleted file mode 100644 index e4919b9..0000000 --- a/packages/psake.4.0.1.0/tools/examples/formattaskname_scriptblock.ps1 +++ /dev/null @@ -1,24 +0,0 @@ -properties { - $testMessage = 'Executed Test!' - $compileMessage = 'Executed Compile!' - $cleanMessage = 'Executed Clean!' -} - -task default -depends Test - -formatTaskName { - param($taskName) - write-host $taskName -foregroundcolor Green -} - -task Test -depends Compile, Clean { - $testMessage -} - -task Compile -depends Clean { - $compileMessage -} - -task Clean { - $cleanMessage -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/formattaskname_string.ps1 b/packages/psake.4.0.1.0/tools/examples/formattaskname_string.ps1 deleted file mode 100644 index 6687490..0000000 --- a/packages/psake.4.0.1.0/tools/examples/formattaskname_string.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -properties { - $testMessage = 'Executed Test!' - $compileMessage = 'Executed Compile!' - $cleanMessage = 'Executed Clean!' -} - -task default -depends Test - -formatTaskName "-------{0}-------" - -task Test -depends Compile, Clean { - $testMessage -} - -task Compile -depends Clean { - $compileMessage -} - -task Clean { - $cleanMessage -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/nested.ps1 b/packages/psake.4.0.1.0/tools/examples/nested.ps1 deleted file mode 100644 index 36fc830..0000000 --- a/packages/psake.4.0.1.0/tools/examples/nested.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -Properties { - $x = 1 -} - -Task default -Depends RunNested1, RunNested2, CheckX - -Task RunNested1 { - Invoke-psake .\nested\nested1.ps1 -} - -Task RunNested2 { - Invoke-psake .\nested\nested2.ps1 -} - -Task CheckX{ - Assert ($x -eq 1) '$x was not 1' -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/nested/nested1.ps1 b/packages/psake.4.0.1.0/tools/examples/nested/nested1.ps1 deleted file mode 100644 index 81790ec..0000000 --- a/packages/psake.4.0.1.0/tools/examples/nested/nested1.ps1 +++ /dev/null @@ -1 +0,0 @@ -Properties { $x = 100 } Task default -Depends Nested1CheckX Task Nested1CheckX{ Assert ($x -eq 100) '$x was not 100' } \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/nested/nested2.ps1 b/packages/psake.4.0.1.0/tools/examples/nested/nested2.ps1 deleted file mode 100644 index 7a4a2b8..0000000 --- a/packages/psake.4.0.1.0/tools/examples/nested/nested2.ps1 +++ /dev/null @@ -1 +0,0 @@ -Properties { $x = 200 } Task default -Depends Nested2CheckX Task Nested2CheckX{ Assert ($x -eq 200) '$x was not 200' } \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/parameters.ps1 b/packages/psake.4.0.1.0/tools/examples/parameters.ps1 deleted file mode 100644 index 63c7e12..0000000 --- a/packages/psake.4.0.1.0/tools/examples/parameters.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -properties { - $my_property = $p1 + $p2 -} - -task default -depends TestParams - -task TestParams { - Assert ($my_property -ne $null) '$my_property should not be null' -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/passingParametersString/build.Release.Version.bat b/packages/psake.4.0.1.0/tools/examples/passingParametersString/build.Release.Version.bat deleted file mode 100644 index 9a734cc..0000000 --- a/packages/psake.4.0.1.0/tools/examples/passingParametersString/build.Release.Version.bat +++ /dev/null @@ -1,3 +0,0 @@ -powershell -Command "& {Import-Module .\..\..\psake.psm1; Invoke-psake .\parameters.ps1 -parameters @{"buildConfiguration"='Release';} }" - -Pause \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/passingParametersString/parameters.ps1 b/packages/psake.4.0.1.0/tools/examples/passingParametersString/parameters.ps1 deleted file mode 100644 index 2259320..0000000 --- a/packages/psake.4.0.1.0/tools/examples/passingParametersString/parameters.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -properties { - $buildOutputPath = ".\bin\$buildConfiguration" -} - -task default -depends DoRelease - -task DoRelease { - Assert ("$buildConfiguration" -ne $null) "buildConfiguration should not have been null" - Assert ("$buildConfiguration" -eq 'Release') "buildConfiguration=[$buildConfiguration] should have been 'Release'" - - Write-Host "" - Write-Host "" - Write-Host "" - Write-Host -NoNewline "Would build output into path " - Write-Host -NoNewline -ForegroundColor Green "$buildOutputPath" - Write-Host -NoNewline " for build configuration " - Write-Host -ForegroundColor Green "$buildConfiguration" - Write-Host -NoNewline "." - Write-Host "" - Write-Host "" - Write-Host "" -} diff --git a/packages/psake.4.0.1.0/tools/examples/preandpostaction.ps1 b/packages/psake.4.0.1.0/tools/examples/preandpostaction.ps1 deleted file mode 100644 index fcb36e6..0000000 --- a/packages/psake.4.0.1.0/tools/examples/preandpostaction.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends Test - -task Test -depends Compile, Clean -PreAction {"Pre-Test"} -Action { - "Test" -} -PostAction {"Post-Test"} - -task Compile -depends Clean { - "Compile" -} - -task Clean { - "Clean" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/examples/properties.ps1 b/packages/psake.4.0.1.0/tools/examples/properties.ps1 deleted file mode 100644 index eb758c1..0000000 --- a/packages/psake.4.0.1.0/tools/examples/properties.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -properties { - $x = $null - $y = $null - $z = $null -} - -task default -depends TestProperties - -task TestProperties { - Assert ($x -ne $null) "x should not be null" - Assert ($y -ne $null) "y should not be null" - Assert ($z -eq $null) "z should be null" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/images/SakeBottle.jpg b/packages/psake.4.0.1.0/tools/images/SakeBottle.jpg deleted file mode 100644 index a3f6692..0000000 Binary files a/packages/psake.4.0.1.0/tools/images/SakeBottle.jpg and /dev/null differ diff --git a/packages/psake.4.0.1.0/tools/images/SakeBottleLicense.txt b/packages/psake.4.0.1.0/tools/images/SakeBottleLicense.txt deleted file mode 100644 index 7563976..0000000 --- a/packages/psake.4.0.1.0/tools/images/SakeBottleLicense.txt +++ /dev/null @@ -1,4 +0,0 @@ -SakeBottle.jpg -An American produced bottle of Ginjo Sake. -Shawn Clark Lazyeights Photography http://lazyeights.net/cpg/displayimage.php?pos=-122 -This work is licensed under the Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/). \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/images/psake.pdn b/packages/psake.4.0.1.0/tools/images/psake.pdn deleted file mode 100644 index 8bd0bef..0000000 Binary files a/packages/psake.4.0.1.0/tools/images/psake.pdn and /dev/null differ diff --git a/packages/psake.4.0.1.0/tools/images/psake.png b/packages/psake.4.0.1.0/tools/images/psake.png deleted file mode 100644 index 8ce869f..0000000 Binary files a/packages/psake.4.0.1.0/tools/images/psake.png and /dev/null differ diff --git a/packages/psake.4.0.1.0/tools/init.ps1 b/packages/psake.4.0.1.0/tools/init.ps1 deleted file mode 100644 index 5ae4d2d..0000000 --- a/packages/psake.4.0.1.0/tools/init.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -param($installPath, $toolsPath, $package) - -$psakeModule = Join-Path $toolsPath psake.psm1 -import-module $psakeModule - -@" -======================== -psake - Automated builds with powershell -======================== -"@ | Write-Host \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake-buildTester.ps1 b/packages/psake.4.0.1.0/tools/psake-buildTester.ps1 deleted file mode 100644 index 80e4e5b..0000000 --- a/packages/psake.4.0.1.0/tools/psake-buildTester.ps1 +++ /dev/null @@ -1,85 +0,0 @@ -function Main() -{ - write-host "Running psake build tests" -ForeGroundColor GREEN - remove-module psake -ea SilentlyContinue - import-module .\psake.psm1 - $psake.run_by_psake_build_tester = $true - $results = runBuilds - remove-module psake - - "" - $results | Sort 'Name' | % { if ($_.Result -eq "Passed") { write-host ($_.Name + " (Passed)") -ForeGroundColor 'GREEN'} else { write-host ($_.Name + " (Failed)") -ForeGroundColor 'RED'}} - "" - - $failed = $results | ? { $_.Result -eq "Failed" } - if ($failed) - { - write-host "One or more of the build files failed" -ForeGroundColor RED - exit 1 - } - else - { - write-host "All Builds Passed" -ForeGroundColor GREEN - exit 0 - } -} - -function runBuilds() -{ - $buildFiles = ls specs\*.ps1 - $testResults = @() - - #Add a fake build file to the $buildFiles array so that we can verify - #that Invoke-psake fails - $non_existant_buildfile = "" | select Name, FullName - $non_existant_buildfile.Name = "specifying_a_non_existant_buildfile_should_fail.ps1" - $non_existant_buildfile.FullName = "c:\specifying_a_non_existant_buildfile_should_fail.ps1" - $buildFiles += $non_existant_buildfile - - foreach($buildFile in $buildFiles) - { - $testResult = "" | select Name, Result - $testResult.Name = $buildFile.Name - - invoke-psake $buildFile.FullName -Parameters @{'p1'='v1'; 'p2'='v2'} -Properties @{'x'='1'; 'y'='2'} | Out-Null - $testResult.Result = (getResult $buildFile.Name $psake.build_success) - $testResults += $testResult - if ($testResult.Result -eq "Passed") - { - write-host "." -ForeGroundColor GREEN -NoNewLine - } - else - { - write-host "F" -ForeGroundColor RED -NoNewLine - } - } - - return $testResults -} - -function getResult([string]$fileName, [bool]$buildSucceeded) -{ - $shouldSucceed = $null - if ($fileName.EndsWith("_should_pass.ps1")) - { - $shouldSucceed = $true - } - elseif ($fileName.EndsWith("_should_fail.ps1")) - { - $shouldSucceed = $false - } - else - { - throw "Invalid specification syntax. Specs should end with _should_pass or _should_fail. $fileName" - } - if ($buildSucceeded -eq $shouldSucceed) - { - "Passed" - } - else - { - "Failed" - } -} - -main \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake-config.ps1 b/packages/psake.4.0.1.0/tools/psake-config.ps1 deleted file mode 100644 index 1c47c41..0000000 --- a/packages/psake.4.0.1.0/tools/psake-config.ps1 +++ /dev/null @@ -1,49 +0,0 @@ -#------------------------------------------------------------------- -#Specify defaults and do not auto-load modules -#------------------------------------------------------------------- -$psake.config = new-object psobject -property @{ - defaultBuildFileName="default.ps1"; - taskNameFormat="Executing {0}"; - exitCode="1"; - verboseError=$false; - modules=(new-object psobject -property @{ autoload=$false }) -} - -<# -------------------------------------------------------------------- -Specify defaults and auto-load modules from .\modules folder -------------------------------------------------------------------- -$psake.config = new-object psobject -property @{ - defaultBuildFileName="default.ps1"; - taskNameFormat="Executing {0}"; - exitCode="1"; - verboseError=$false; - modules=(new-object psobject -property @{ autoload=$true}) -} - -------------------------------------------------------------------- -Specify defaults and auto-load modules from .\my_modules folder -------------------------------------------------------------------- -$psake.config = new-object psobject -property @{ - defaultBuildFileName="default.ps1"; - taskNameFormat="Executing {0}"; - exitCode="1"; - verboseError=$false; - modules=(new-object psobject -property @{ autoload=$true; directory=".\my_modules" }) -} - -------------------------------------------------------------------- -Specify defaults and explicitly load module(s) -------------------------------------------------------------------- -$psake.config = new-object psobject -property @{ - defaultBuildFileName="default.ps1"; - taskNameFormat="Executing {0}"; - exitCode="1"; - verboseError=$false; - modules=(new-object psobject -property @{ - autoload=$false; - module=(new-object psobject -property @{path="c:\module1dir\module1.ps1"}), - (new-object psobject -property @{path="c:\module1dir\module2.ps1"}) - }) -} -#> \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake-help.ps1 b/packages/psake.4.0.1.0/tools/psake-help.ps1 deleted file mode 100644 index fa65031..0000000 --- a/packages/psake.4.0.1.0/tools/psake-help.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -# Helper script to return help text. - -remove-module psake -ea 'SilentlyContinue' -$scriptPath = Split-Path -parent $MyInvocation.MyCommand.path -import-module (join-path $scriptPath psake.psm1) -Get-Help Invoke-psake -full -exit $lastexitcode \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake.cmd b/packages/psake.4.0.1.0/tools/psake.cmd deleted file mode 100644 index 3e9649b..0000000 --- a/packages/psake.4.0.1.0/tools/psake.cmd +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -SET DIR=%~dp0% - -if '%1'=='/?' goto usage -if '%1'=='-?' goto usage -if '%1'=='?' goto usage -if '%1'=='/help' goto usage -if '%1'=='help' goto usage - -powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake.ps1' %*" - -goto :eof -:usage -powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake-help.ps1'" \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake.ps1 b/packages/psake.4.0.1.0/tools/psake.ps1 deleted file mode 100644 index 1ea6617..0000000 --- a/packages/psake.4.0.1.0/tools/psake.ps1 +++ /dev/null @@ -1,30 +0,0 @@ -# Helper script for those who want to run psake without importing the module. -# Example: -# .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0" - -# Must match parameter definitions for psake.psm1/invoke-psake -# otherwise named parameter binding fails -param( - [Parameter(Position=0,Mandatory=0)] - [string]$buildFile = 'default.ps1', - [Parameter(Position=1,Mandatory=0)] - [string[]]$taskList = @(), - [Parameter(Position=2,Mandatory=0)] - [string]$framework = '3.5', - [Parameter(Position=3,Mandatory=0)] - [switch]$docs = $false, - [Parameter(Position=4,Mandatory=0)] - [System.Collections.Hashtable]$parameters = @{}, - [Parameter(Position=5, Mandatory=0)] - [System.Collections.Hashtable]$properties = @{} -) - -remove-module psake -ea 'SilentlyContinue' -$scriptPath = Split-Path -parent $MyInvocation.MyCommand.path -import-module (join-path $scriptPath psake.psm1) -if (-not(test-path $buildFile)) -{ - $buildFile = (join-path $scriptPath $buildFile) -} -invoke-psake $buildFile $taskList $framework $docs $parameters $properties -exit $lastexitcode \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/psake.psm1 b/packages/psake.4.0.1.0/tools/psake.psm1 deleted file mode 100644 index a8fd4e0..0000000 --- a/packages/psake.4.0.1.0/tools/psake.psm1 +++ /dev/null @@ -1,646 +0,0 @@ -# psake -# Copyright (c) 2010 James Kovacs -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -#Requires -Version 2.0 - -#Ensure that only one instance of the psake module is loaded -remove-module psake -erroraction silentlycontinue - -#-- Public Module Functions --# - -# .ExternalHelp psake.psm1-help.xml -function Invoke-Task -{ - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)] [string]$taskName - ) - - Assert $taskName ($msgs.error_invalid_task_name) - - $taskKey = $taskName.ToLower() - - $currentContext = $psake.context.Peek() - $tasks = $currentContext.tasks - $executedTasks = $currentContext.executedTasks - $callStack = $currentContext.callStack - - Assert ($tasks.Contains($taskKey)) ($msgs.error_task_name_does_not_exist -f $taskName) - - if ($executedTasks.Contains($taskKey)) { return } - - Assert (!$callStack.Contains($taskKey)) ($msgs.error_circular_reference -f $taskName) - - $callStack.Push($taskKey) - - $task = $tasks.$taskKey - - $precondition_is_valid = & $task.Precondition - - if (!$precondition_is_valid) { - $msgs.precondition_was_false -f $taskName - } else { - if ($taskKey -ne 'default') { - $stopwatch = [System.Diagnostics.Stopwatch]::StartNew() - - if ($task.PreAction -or $task.PostAction) { - Assert ($task.Action -ne $null) $msgs.error_missing_action_parameter - } - - if ($task.Action) { - try { - foreach($childTask in $task.DependsOn) { - Invoke-Task $childTask - } - - $currentContext.currentTaskName = $taskName - - & $currentContext.taskSetupScriptBlock - - if ($task.PreAction) { - & $task.PreAction - } - - if ($currentContext.formatTaskName -is [ScriptBlock]) { - & $currentContext.formatTaskName $taskName - } else { - $currentContext.formatTaskName -f $taskName - } - - & $task.Action - - if ($task.PostAction) { - & $task.PostAction - } - - & $currentContext.taskTearDownScriptBlock - } catch { - if ($task.ContinueOnError) { - "-"*70 - $msgs.continue_on_error -f $taskName,$_ - "-"*70 - } else { - throw $_ - } - } - } else { - #no Action was specified but we still execute all the dependencies - foreach($childTask in $task.DependsOn) { - Invoke-Task $childTask - } - } - $stopwatch.stop() - $task.Duration = $stopwatch.Elapsed - } else { - foreach($childTask in $task.DependsOn) { - Invoke-Task $childTask - } - } - - Assert (& $task.Postcondition) ($msgs.postcondition_failed -f $taskName) - } - - $poppedTaskKey = $callStack.Pop() - Assert ($poppedTaskKey -eq $taskKey) ($msgs.error_corrupt_callstack -f $taskKey,$poppedTaskKey) - - $executedTasks.Push($taskKey) -} - -# .ExternalHelp psake.psm1-help.xml -function Exec -{ - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)][scriptblock]$cmd, - [Parameter(Position=1,Mandatory=0)][string]$errorMessage = ($msgs.error_bad_command -f $cmd) - ) - & $cmd - if ($lastexitcode -ne 0) { - throw ("Exec: " + $errorMessage) - } -} - -# .ExternalHelp psake.psm1-help.xml -function Assert -{ - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)]$conditionToCheck, - [Parameter(Position=1,Mandatory=1)]$failureMessage - ) - if (!$conditionToCheck) { - throw ("Assert: " + $failureMessage) - } -} - -# .ExternalHelp psake.psm1-help.xml -function Task -{ - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)] [string]$name = $null, - [Parameter(Position=1,Mandatory=0)] [scriptblock]$action = $null, - [Parameter(Position=2,Mandatory=0)] [scriptblock]$preaction = $null, - [Parameter(Position=3,Mandatory=0)] [scriptblock]$postaction = $null, - [Parameter(Position=4,Mandatory=0)] [scriptblock]$precondition = {$true}, - [Parameter(Position=5,Mandatory=0)] [scriptblock]$postcondition = {$true}, - [Parameter(Position=6,Mandatory=0)] [switch]$continueOnError = $false, - [Parameter(Position=7,Mandatory=0)] [string[]]$depends = @(), - [Parameter(Position=8,Mandatory=0)] [string]$description = $null - ) - - if ($name -eq 'default') { - Assert (!$action) ($msgs.error_default_task_cannot_have_action) - } - - $newTask = @{ - Name = $name - DependsOn = $depends - PreAction = $preaction - Action = $action - PostAction = $postaction - Precondition = $precondition - Postcondition = $postcondition - ContinueOnError = $continueOnError - Description = $description - Duration = 0 - } - - $taskKey = $name.ToLower() - - $currentContext = $psake.context.Peek() - - Assert (!$currentContext.tasks.ContainsKey($taskKey)) ($msgs.error_duplicate_task_name -f $name) - - $currentContext.tasks.$taskKey = $newTask -} - -# .ExternalHelp psake.psm1-help.xml -function Properties { - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)][scriptblock]$properties - ) - $psake.context.Peek().properties += $properties -} - -# .ExternalHelp psake.psm1-help.xml -function Include { - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)][string]$fileNamePathToInclude - ) - Assert (test-path $fileNamePathToInclude) ($msgs.error_invalid_include_path -f $fileNamePathToInclude) - $psake.context.Peek().includes.Enqueue((Resolve-Path $fileNamePathToInclude)); -} - -# .ExternalHelp psake.psm1-help.xml -function FormatTaskName { - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)]$format - ) - $psake.context.Peek().formatTaskName = $format -} - -# .ExternalHelp psake.psm1-help.xml -function TaskSetup { - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)][scriptblock]$setup - ) - $psake.context.Peek().taskSetupScriptBlock = $setup -} - -# .ExternalHelp psake.psm1-help.xml -function TaskTearDown { - [CmdletBinding()] - param( - [Parameter(Position=0,Mandatory=1)][scriptblock]$teardown - ) - $psake.context.Peek().taskTearDownScriptBlock = $teardown -} - -# .ExternalHelp psake.psm1-help.xml -function Invoke-psake { - [CmdletBinding()] - param( - [Parameter(Position = 0, Mandatory = 0)][string] $buildFile = $psake.config.defaultBuildFileName, - [Parameter(Position = 1, Mandatory = 0)][string[]] $taskList = @(), - [Parameter(Position = 2, Mandatory = 0)][string] $framework = '3.5', - [Parameter(Position = 3, Mandatory = 0)][switch] $docs = $false, - [Parameter(Position = 4, Mandatory = 0)][hashtable] $parameters = @{}, - [Parameter(Position = 5, Mandatory = 0)][hashtable] $properties = @{} - ) - - try { - "psake version {0}`nCopyright (c) 2010 James Kovacs`n" -f $psake.version - $psake.build_success = $false - $psake.framework_version = $framework - - $psake.context.push(@{ - "formatTaskName" = $psake.config.taskNameFormat; - "taskSetupScriptBlock" = {}; - "taskTearDownScriptBlock" = {}; - "executedTasks" = new-object System.Collections.Stack; - "callStack" = new-object System.Collections.Stack; - "originalEnvPath" = $env:path; - "originalDirectory" = get-location; - "originalErrorActionPreference" = $global:ErrorActionPreference; - "tasks" = @{}; - "properties" = @(); - "includes" = new-object System.Collections.Queue; - }) - - $currentContext = $psake.context.Peek() - - <# - If the default.ps1 file exists and the given "buildfile" isn 't found assume that the given - $buildFile is actually the target Tasks to execute in the default.ps1 script. - #> - if ((test-path $psake.config.defaultBuildFileName ) -and !(test-path $buildFile)) { - $taskList = $buildFile.Split(', ') - $buildFile = $psake.config.defaultBuildFileName - } - - # Execute the build file to set up the tasks and defaults - Assert (test-path $buildFile) ($msgs.error_build_file_not_found -f $buildFile) - - $psake.build_script_file = get-item $buildFile - $psake.build_script_dir = $psake.build_script_file.DirectoryName - - Load-Configuration $psake.build_script_dir - - Load-Modules - - $stopwatch = [System.Diagnostics.Stopwatch]::StartNew() - - set-location $psake.build_script_dir - - . $psake.build_script_file.FullName - - if ($docs) { - Write-Documentation - Cleanup-Environment - return - } - - Configure-BuildEnvironment - - # N.B. The initial dot (.) indicates that variables initialized/modified - # in the propertyBlock are available in the parent scope. - while ($currentContext.includes.Count -gt 0) { - $includeBlock = $currentContext.includes.Dequeue() - . $includeBlock - } - - foreach ($key in $parameters.keys) { - if (test-path "variable:\$key") { - set-item -path "variable:\$key" -value $parameters.$key | out-null - } else { - new-item -path "variable:\$key" -value $parameters.$key | out-null - } - } - - foreach ($propertyBlock in $currentContext.properties) { - . $propertyBlock - } - - foreach ($key in $properties.keys) { - if (test-path "variable:\$key") { - set-item -path "variable:\$key" -value $properties.$key | out-null - } - } - - # Execute the list of tasks or the default task - if ($taskList) { - foreach ($task in $taskList) { - invoke-task $task - } - } elseif ($currentContext.tasks.default) { - invoke-task default - } else { - throw $msgs.error_no_default_task - } - - $stopwatch.Stop() - - "`n" + $msgs.build_success + "`n" - - Write-TaskTimeSummary - - $psake.build_success = $true - } catch { - if ($psake.config.verboseError) { - $error_message = "{0}: An Error Occurred. See Error Details Below: `n" -f (Get-Date) - $error_message += ("-" * 70) + "`n" - $error_message += Resolve-Error $_ - $error_message += ("-" * 70) + "`n" - $error_message += "Script Variables" + "`n" - $error_message += ("-" * 70) + "`n" - $error_message += get-variable -scope script | format-table | out-string - } else { - $error_message = "{0}: An Error Occurred: `n{1}" -f (Get-Date), $_ - } - - $psake.build_success = $false - - if (!$psake.run_by_psake_build_tester) { - #if we are running in a nested scope (i.e. running a psake script from a psake script) then we need to re-throw the exception - #so that the parent script will fail otherwise the parent script will report a successful build - $inNestedScope = ($psake.context.count -gt 1) - if ( $inNestedScope ) { - throw $_ - } else { - write-host $error_message -foregroundcolor red - } - - # Need to return a non-zero DOS exit code so that CI server's (Hudson, TeamCity, etc...) can detect a failed job - if ((IsChildOfService)) { - exit($psake.config.exitCode) - } - } - } finally { - Cleanup-Environment - } -} #Invoke-psake - -#-- Private Module Functions --# -function Load-Modules { - $modules = $null - - if ($psake.config.modules.autoload) { - if ($psake.config.modules.directory) { - Assert (test-path $psake.config.modules.directory) ($msgs.error_invalid_module_dir -f $psake.config.modules.directory) - $modules = get-item(join-path $psake.config.modules.directory "*.psm1") - } - elseif (test-path (join-path $PSScriptRoot "modules")) { - $modules = get-item (join-path (join-path $PSScriptRoot "modules") "*.psm1") - } - } else { - if ($psake.config.modules.module) { - $modules = $psake.config.modules.module | % { - Assert (test-path $_.path) ($msgs.error_invalid_module_path -f $_.path); - get-item $_.path - } - } - } - - if ($modules) { - $modules | % { - "loading module: $_"; - $module = import-module $_ -passthru; - if (!$module) { - throw ($msgs.error_loading_module -f $_.Name) - } - } - "" - } -} - -function Load-Configuration { - param( - [string] $configdir = $PSScriptRoot - ) - - $psakeConfigFilePath = (join-path $configdir "psake-config.ps1") - - if (test-path $psakeConfigFilePath) { - try { - . $psakeConfigFilePath - } catch { - throw "Error Loading Configuration from psake-config.ps1: " + $_ - } - } else { - if (!$psake.config) { - $psake.config = new-object psobject -property @{ - defaultBuildFileName = "default.ps1"; - taskNameFormat = "Executing {0}"; - exitCode = "1"; - verboseError = $false; - modules = (new-object PSObject -property @{ - autoload = $false - }) - } - } - } -} - -function IsChildOfService { - param( - [int] $currentProcessID = $PID - ) - - $currentProcess = gwmi -Query "select * from win32_process where processid = '$currentProcessID'" - - #System Idle Process - if ($currentProcess.ProcessID -eq 0) { - return $false - } - - $service = Get-WmiObject -Class Win32_Service -Filter "ProcessId = '$currentProcessID'" - - #We are invoked by a windows service - if ($service) { - return $true - } else { - $parentProcess = gwmi -Query "select * from win32_process where processid = '$($currentProcess.ParentProcessID)'" - return IsChildOfService $parentProcess.ProcessID - } -} - -function Configure-BuildEnvironment { - if ($framework.Length -ne 3 -and $framework.Length -ne 6) { - throw ($msgs.error_invalid_framework -f $framework) - } - $versionPart = $framework.Substring(0, 3) - $bitnessPart = $framework.Substring(3) - $versions = $null - switch ($versionPart) { - '1.0' { - $versions = @('v1.0.3705') - } - '1.1' { - $versions = @('v1.1.4322') - } - '2.0' { - $versions = @('v2.0.50727') - } - '3.0' { - $versions = @('v2.0.50727') - } - '3.5' { - $versions = @('v3.5', 'v2.0.50727') - } - '4.0' { - $versions = @('v4.0.30319') - } - default { - throw ($msgs.error_unknown_framework -f $versionPart, $framework) - } - } - - $bitness = 'Framework' - if ($versionPart -ne '1.0' -and $versionPart -ne '1.1') { - switch ($bitnessPart) { - 'x86' { - $bitness = 'Framework' - } - 'x64' { - $bitness = 'Framework64' - } - $null { - $ptrSize = [System.IntPtr]::Size - switch ($ptrSize) { - 4 { - $bitness = 'Framework' - } - 8 { - $bitness = 'Framework64' - } - default { - throw ($msgs.error_unknown_pointersize -f $ptrSize) - } - } - } - default { - throw ($msgs.error_unknown_bitnesspart -f $bitnessPart, $framework) - } - } - } - $frameworkDirs = $versions | foreach { "$env:windir\Microsoft.NET\$bitness\$_\" } - - $frameworkDirs | foreach { Assert (test-path $_) ($msgs.error_no_framework_install_dir_found -f $_)} - - $env:path = ($frameworkDirs -join ";") + ";$env:path" - #if any error occurs in a PS function then "stop" processing immediately - #this does not effect any external programs that return a non-zero exit code - $global:ErrorActionPreference = "Stop" -} - -function Cleanup-Environment { - if ($psake.context.Count -gt 0) { - $currentContext = $psake.context.Peek() - $env:path = $currentContext.originalEnvPath - Set-Location $currentContext.originalDirectory - $global:ErrorActionPreference = $currentContext.originalErrorActionPreference - [void] $psake.context.Pop() - } -} - -#borrowed from Jeffrey Snover http://blogs.msdn.com/powershell/archive/2006/12/07/resolve-error.aspx -function Resolve-Error($ErrorRecord = $Error[0]) { - $error_message = "`nErrorRecord:{0}ErrorRecord.InvocationInfo:{1}Exception:{2}" - $formatted_errorRecord = $ErrorRecord | format-list * -force | out-string - $formatted_invocationInfo = $ErrorRecord.InvocationInfo | format-list * -force | out-string - $formatted_exception = "" - $Exception = $ErrorRecord.Exception - for ($i = 0; $Exception; $i++, ($Exception = $Exception.InnerException)) { - $formatted_exception += ("$i" * 70) + "`n" - $formatted_exception += $Exception | format-list * -force | out-string - $formatted_exception += "`n" - } - - return $error_message -f $formatted_errorRecord, $formatted_invocationInfo, $formatted_exception -} - -function Write-Documentation { - $currentContext = $psake.context.Peek() - $currentContext.tasks.Keys | foreach-object { - if ($_ -eq "default") { - return - } - - $task = $currentContext.tasks.$_ - new-object PSObject -property @{ - Name = $task.Name; - Description = $task.Description; - "Depends On" = $task.DependsOn -join ", " - } - } | sort 'Name' | format-table -Auto -} - -function Write-TaskTimeSummary { - "-" * 70 - "Build Time Report" - "-" * 70 - $list = @() - $currentContext = $psake.context.Peek() - while ($currentContext.executedTasks.Count -gt 0) { - $taskKey = $currentContext.executedTasks.Pop() - $task = $currentContext.tasks.$taskKey - if ($taskKey -eq "default") { - continue - } - $list += new-object PSObject -property @{ - Name = $task.Name; - Duration = $task.Duration - } - } - [Array]::Reverse($list) - $list += new-object PSObject -property @{ - Name = "Total:"; - Duration = $stopwatch.Elapsed - } - $list | format-table -auto | out-string -stream | ? { $_ } #using "Out-String -Stream" to filter out the blank line that Format-Table prepends -} - -DATA msgs { -convertfrom-stringdata @' - error_invalid_task_name = Task name should not be null or empty string - error_task_name_does_not_exist = task [{0}] does not exist - error_circular_reference = Circular reference found for task, {0} - error_missing_action_parameter = Action parameter must be specified when using PreAction or PostAction parameters - error_corrupt_callstack = CallStack was corrupt. Expected {0}, but got {1}. - error_invalid_framework = Invalid .NET Framework version, {0}, specified - error_unknown_framework = Unknown .NET Framework version, {0}, specified in {1} - error_unknown_pointersize = Unknown pointer size ({0}) returned from System.IntPtr. - error_unknown_bitnesspart = Unknown .NET Framework bitness, {0}, specified in {1} - error_no_framework_install_dir_found = No .NET Framework installation directory found at {0} - error_bad_command = Error executing command: {0} - error_default_task_cannot_have_action = 'default' task cannot specify an action - error_duplicate_task_name = Task {0} has already been defined. - error_invalid_include_path = Unable to include {0}. File not found. - error_build_file_not_found = Could not find the build file, {0}. - error_no_default_task = default task required - error_invalid_module_dir = Unable to load modules from directory: {0} - error_invalid_module_path = Unable to load module at path: {0} - error_loading_module = Error loading module: {0} - postcondition_failed = Postcondition failed for {0} - precondition_was_false = Precondition was false not executing {0} - continue_on_error = Error in Task [{0}] {1} - build_success = Build Succeeded! -'@ -} - -import-localizeddata -bindingvariable msgs -erroraction silentlycontinue - -$script:psake = @{} -$psake.build_success = $false # indicates that the current build was successful -$psake.version = "4.00" # contains the current version of psake -$psake.build_script_file = $null # contains a System.IO.FileInfo for the current build file -$psake.build_script_dir = "" # contains a string with fully-qualified path to current build script -$psake.framework_version = "" # contains the framework version # for the current build -$psake.run_by_psake_build_tester = $false # indicates that build is being run by psake-BuildTester -$psake.context = new-object system.collections.stack # holds onto the current state of all variables - -Load-Configuration - -export-modulemember -function invoke-psake, invoke-task, task, properties, include, formattaskname, tasksetup, taskteardown, assert, exec -variable psake \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/bad_PreAndPostActions_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/bad_PreAndPostActions_should_fail.ps1 deleted file mode 100644 index facdfb8..0000000 --- a/packages/psake.4.0.1.0/tools/specs/bad_PreAndPostActions_should_fail.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -task default -depends Test - -task Test -depends Compile, Clean -PreAction {"Pre-Test"} -PostAction {"Post-Test"} - -task Compile -depends Clean { - "Compile" -} - -task Clean { - "Clean" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/calling_invoke-task_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/calling_invoke-task_should_pass.ps1 deleted file mode 100644 index e986dfd..0000000 --- a/packages/psake.4.0.1.0/tools/specs/calling_invoke-task_should_pass.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends A,B - -task A { -} - -task B { - "inside task B before calling task C" - invoke-task C - "inside task B after calling task C" -} - -task C { -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/circular_dependency_in_tasks_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/circular_dependency_in_tasks_should_fail.ps1 deleted file mode 100644 index 9cea08e..0000000 --- a/packages/psake.4.0.1.0/tools/specs/circular_dependency_in_tasks_should_fail.ps1 +++ /dev/null @@ -1,3 +0,0 @@ -task default -depends A -task A -depends B { } -task B -depends A { } diff --git a/packages/psake.4.0.1.0/tools/specs/default_task_with_action_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/default_task_with_action_should_fail.ps1 deleted file mode 100644 index 5d20507..0000000 --- a/packages/psake.4.0.1.0/tools/specs/default_task_with_action_should_fail.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -task default { - "Starting to do stuff..." - "Adding stuff... 1 + 1 =" + (1+1) - "Stuff done!" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/dotNet4_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/dotNet4_should_pass.ps1 deleted file mode 100644 index c2f5370..0000000 --- a/packages/psake.4.0.1.0/tools/specs/dotNet4_should_pass.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -$framework = '4.0' - -task default -depends MsBuild - -task MsBuild { - exec { msbuild /version } -} diff --git a/packages/psake.4.0.1.0/tools/specs/duplicate_tasks_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/duplicate_tasks_should_fail.ps1 deleted file mode 100644 index f21c77a..0000000 --- a/packages/psake.4.0.1.0/tools/specs/duplicate_tasks_should_fail.ps1 +++ /dev/null @@ -1,3 +0,0 @@ -task A {} -task B {} -task A {} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/explicitly_specified_32bit_build_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/explicitly_specified_32bit_build_should_pass.ps1 deleted file mode 100644 index bda606d..0000000 --- a/packages/psake.4.0.1.0/tools/specs/explicitly_specified_32bit_build_should_pass.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -$framework = '3.5x86' - -task default -depends MsBuild - -task MsBuild { - exec { msbuild /version } -} diff --git a/packages/psake.4.0.1.0/tools/specs/failing_postcondition_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/failing_postcondition_should_fail.ps1 deleted file mode 100644 index 70f12f1..0000000 --- a/packages/psake.4.0.1.0/tools/specs/failing_postcondition_should_fail.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends A,B,C - -task A { - "TaskA" -} - -task B -postcondition { return $false } { - "TaskB" -} - -task C { - "TaskC" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/missing_task_should_fail.ps1 b/packages/psake.4.0.1.0/tools/specs/missing_task_should_fail.ps1 deleted file mode 100644 index 587d89d..0000000 --- a/packages/psake.4.0.1.0/tools/specs/missing_task_should_fail.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -task default -depends Test - -task Test -depends Compile, Clean { - Write-Host "Running PSake" -} diff --git a/packages/psake.4.0.1.0/tools/specs/multiline_blocks_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/multiline_blocks_should_pass.ps1 deleted file mode 100644 index 9ac8925..0000000 --- a/packages/psake.4.0.1.0/tools/specs/multiline_blocks_should_pass.ps1 +++ /dev/null @@ -1,6 +0,0 @@ -task default -depends doStuff -task doStuff { - "Starting to do stuff..." - "Adding stuff... 1 + 1 =" + (1+1) - "Stuff done!" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/nested/nested1.ps1 b/packages/psake.4.0.1.0/tools/specs/nested/nested1.ps1 deleted file mode 100644 index 81790ec..0000000 --- a/packages/psake.4.0.1.0/tools/specs/nested/nested1.ps1 +++ /dev/null @@ -1 +0,0 @@ -Properties { $x = 100 } Task default -Depends Nested1CheckX Task Nested1CheckX{ Assert ($x -eq 100) '$x was not 100' } \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/nested/nested2.ps1 b/packages/psake.4.0.1.0/tools/specs/nested/nested2.ps1 deleted file mode 100644 index 7a4a2b8..0000000 --- a/packages/psake.4.0.1.0/tools/specs/nested/nested2.ps1 +++ /dev/null @@ -1 +0,0 @@ -Properties { $x = 200 } Task default -Depends Nested2CheckX Task Nested2CheckX{ Assert ($x -eq 200) '$x was not 200' } \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/nested_builds_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/nested_builds_should_pass.ps1 deleted file mode 100644 index 36fc830..0000000 --- a/packages/psake.4.0.1.0/tools/specs/nested_builds_should_pass.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -Properties { - $x = 1 -} - -Task default -Depends RunNested1, RunNested2, CheckX - -Task RunNested1 { - Invoke-psake .\nested\nested1.ps1 -} - -Task RunNested2 { - Invoke-psake .\nested\nested2.ps1 -} - -Task CheckX{ - Assert ($x -eq 1) '$x was not 1' -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1 deleted file mode 100644 index a00c572..0000000 --- a/packages/psake.4.0.1.0/tools/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -$framework = '3.5' - -task default -depends AspNetCompiler - -task AspNetCompiler { - aspnet_compiler - if ($LastExitCode -ne 1) { - throw 'Error: Could not execute aspnet_compiler' - } -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/simple_properties_and_tasks_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/simple_properties_and_tasks_should_pass.ps1 deleted file mode 100644 index cd5d71f..0000000 --- a/packages/psake.4.0.1.0/tools/specs/simple_properties_and_tasks_should_pass.ps1 +++ /dev/null @@ -1,19 +0,0 @@ -properties { - $testMessage = 'Executed Test!' - $compileMessage = 'Executed Compile!' - $cleanMessage = 'Executed Clean!' -} - -task default -depends Test - -task Test -depends Compile, Clean { - $testMessage -} - -task Compile -depends Clean { - $compileMessage -} - -task Clean { - $cleanMessage -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/tasksetup_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/tasksetup_should_pass.ps1 deleted file mode 100644 index 46fb278..0000000 --- a/packages/psake.4.0.1.0/tools/specs/tasksetup_should_pass.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -TaskSetup { - "executing task setup" -} - -Task default -depends Compile, Test, Deploy - -Task Compile { - "Compiling" -} - -Task Test -depends Compile { - "Testing" -} - -Task Deploy -depends Test { - "Deploying" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_PreAndPostActions_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_PreAndPostActions_should_pass.ps1 deleted file mode 100644 index fcb36e6..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_PreAndPostActions_should_pass.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends Test - -task Test -depends Compile, Clean -PreAction {"Pre-Test"} -Action { - "Test" -} -PostAction {"Post-Test"} - -task Compile -depends Clean { - "Compile" -} - -task Clean { - "Clean" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_msbuild_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_msbuild_should_pass.ps1 deleted file mode 100644 index 72fbc77..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_msbuild_should_pass.ps1 +++ /dev/null @@ -1,4 +0,0 @@ -task default -depends DisplayNotice -task DisplayNotice { - exec { msbuild /version } -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_parameters_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_parameters_should_pass.ps1 deleted file mode 100644 index 63c7e12..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_parameters_should_pass.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -properties { - $my_property = $p1 + $p2 -} - -task default -depends TestParams - -task TestParams { - Assert ($my_property -ne $null) '$my_property should not be null' -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_postcondition_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_postcondition_should_pass.ps1 deleted file mode 100644 index 0173c5b..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_postcondition_should_pass.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends A,B,C - -task A { - "TaskA" -} - -task B -postcondition { return $true } { - "TaskB" -} - -task C { - "TaskC" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_precondition_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_precondition_should_pass.ps1 deleted file mode 100644 index 8be98a6..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_precondition_should_pass.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -task default -depends A,B,C - -task A { - "TaskA" -} - -task B -precondition { return $false } { - "TaskB" -} - -task C -precondition { return $true } { - "TaskC" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/using_properties_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/using_properties_should_pass.ps1 deleted file mode 100644 index eb758c1..0000000 --- a/packages/psake.4.0.1.0/tools/specs/using_properties_should_pass.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -properties { - $x = $null - $y = $null - $z = $null -} - -task default -depends TestProperties - -task TestProperties { - Assert ($x -ne $null) "x should not be null" - Assert ($y -ne $null) "y should not be null" - Assert ($z -eq $null) "z should be null" -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/specs/writing_psake_variables_should_pass.ps1 b/packages/psake.4.0.1.0/tools/specs/writing_psake_variables_should_pass.ps1 deleted file mode 100644 index b6a412e..0000000 --- a/packages/psake.4.0.1.0/tools/specs/writing_psake_variables_should_pass.ps1 +++ /dev/null @@ -1,36 +0,0 @@ -properties { - $x = 1 -} - -FormatTaskName "[{0}]" - -task default -depends Verify - -task Verify -description "This task verifies psake's variables" { - - #Verify the exported module variables - cd variable: - Assert (Test-Path "psake") "variable psake was not exported from module" - - Assert ($psake.ContainsKey("build_success")) "'psake' variable does not contain key 'build_success'" - Assert ($psake.ContainsKey("version")) "'psake' variable does not contain key 'version'" - Assert ($psake.ContainsKey("build_script_file")) "'psake' variable does not contain key 'build_script_file'" - Assert ($psake.ContainsKey("framework_version")) "'psake' variable does not contain key 'framework_version'" - Assert ($psake.ContainsKey("build_script_dir")) "'psake' variable does not contain key 'build_script_dir'" - Assert ($psake.ContainsKey("config")) "'psake' variable does not contain key 'config'" - - Assert (!$psake.build_success) '$psake.build_success should be $false' - Assert ($psake.version) '$psake.version was null or empty' - Assert ($psake.build_script_file) '$psake.build_script_file was null' - Assert ($psake.build_script_file.Name -eq "writing_psake_variables_should_pass.ps1") ("psake variable: {0} was not equal to 'writing_psake_variables_should_pass.ps1'" -f $psake.build_script_file.Name) - Assert ($psake.build_script_dir) '$psake variable: $psake.build_script_dir was null or empty' - Assert ($psake.framework_version) '$psake variable: $psake.framework_version was null or empty' - - Assert ($psake.context.Count -eq 1) '$psake.context should have had a length of one (1) during script execution' - - Assert ($psake.config) '$psake.config is $null' - Assert ($psake.config.defaultBuildFileName -eq "default.ps1") '$psake.config.defaultBuildFileName not equal to "default.ps1"' - Assert ($psake.config.taskNameFormat -eq "Executing {0}") '$psake.config.taskNameFormat not equal to "Executing {0}"' - Assert ($psake.config.verboseError -eq $false) '$psake.config.verboseError not equal to $true' - Assert ($psake.config.modules) '$psake.config.modules is $null' -} \ No newline at end of file diff --git a/packages/psake.4.0.1.0/tools/tabexpansion/PsakeTabExpansion.ps1 b/packages/psake.4.0.1.0/tools/tabexpansion/PsakeTabExpansion.ps1 deleted file mode 100644 index e5a45a2..0000000 --- a/packages/psake.4.0.1.0/tools/tabexpansion/PsakeTabExpansion.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -$global:psakeSwitches = @('-docs', '-task', '-properties', '-parameters') - -function script:psakeSwitches($filter) { - $psakeSwitches | where { $_ -like "$filter*" } -} - -function script:psakeDocs($filter, $file) { - if ($file -eq $null -or $file -eq '') { $file = 'default.ps1' } - psake $file -docs | out-string -Stream |% { if ($_ -match "^[^ ]*") { $matches[0]} } |? { $_ -ne "Name" -and $_ -ne "----" -and $_ -like "$filter*" } -} - -function script:psakeFiles($filter) { - ls "$filter*.ps1" |% { $_.Name } -} - -function PsakeTabExpansion($lastBlock) { - switch -regex ($lastBlock) { - '(invoke-psake|psake) ([^\.]*\.ps1)? ?.* ?\-ta?s?k? (\S*)$' { # tasks only - psakeDocs $matches[3] $matches[2] | sort - } - '(invoke-psake|psake) ([^\.]*\.ps1)? ?.* ?(\-\S*)$' { # switches only - psakeSwitches $matches[3] | sort - } - '(invoke-psake|psake) ([^\.]*\.ps1) ?.* ?(\S*)$' { # switches or tasks - @(psakeDocs $matches[3] $matches[2]) + @(psakeSwitches $matches[3]) | sort - } - '(invoke-psake|psake) (\S*)$' { - @(psakeFiles $matches[2]) + @(psakeDocs $matches[2] 'default.ps1') + @(psakeSwitches $matches[2]) | sort - } - } -} diff --git a/packages/psake.4.0.1.0/tools/tabexpansion/Readme.PsakeTab.txt b/packages/psake.4.0.1.0/tools/tabexpansion/Readme.PsakeTab.txt deleted file mode 100644 index 51d5c3f..0000000 --- a/packages/psake.4.0.1.0/tools/tabexpansion/Readme.PsakeTab.txt +++ /dev/null @@ -1,39 +0,0 @@ -_________________________________________________________ -A powershell script for tab completion of psake module build commands - - tab completion for file name: psake d -> psake .\default.ps1 - - tab completion for parameters (docs,task,parameters,properties): psake -t -> psake -task - - tab completion for task: psake -t c -> psake -task Clean ---------------------------------------------------------- - -_________________________________________________________ -Profile example ---------------------------------------------------------- -Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) -. ./PsakeTabExpansion.ps1 -Pop-Location - -if(-not (Test-Path Function:\DefaultTabExpansion)) { - Rename-Item Function:\TabExpansion DefaultTabExpansion -} - -# Set up tab expansion and include psake expansion -function TabExpansion($line, $lastWord) { - $lastBlock = [regex]::Split($line, '[|;]')[-1] - - switch -regex ($lastBlock) { - # Execute psake tab completion for all psake-related commands - '(Invoke-psake|psake) (.*)' { PsakeTabExpansion $lastBlock } - # Fall back on existing tab expansion - default { DefaultTabExpansion $line $lastWord } - } -} ---------------------------------------------------------- - -_________________________________________________________ -Based on work by: - - - Keith Dahlby, http://solutionizing.net/ - - Mark Embling, http://www.markembling.info/ - - Jeremy Skinner, http://www.jeremyskinner.co.uk/ - - Dusty Candland, http://www.candland.net/blog ----------------------------------------------------------