src/Chocolatey.PowerShell/ReadMe.md
The Chocolatey.PowerShell project within the Chocolatey CLI solution is the compiled PowerShell cmdlets.
Because the Chocolatey.PowerShell module is a compiled module, debugging it is a little more involved than a script based module. If you need to debug cmdlets within a Chocolatey CLI execution, you can merely create a package that calls the Chocolatey.PowerShell function you are debugging, and it will work. However, if you need to test the functions outside of a Chocolatey CLI invocation, that is a little bit more involved. Fortunately, Marc-Andr� Moreau provides and excellent guide on debugging a binary PowerShell module from Visual Studio. The below steps are greatly simplified and targetted specifically at the Chocolatey.PowerShell project.
Chocolatey.PowerShell.csproj.user file beside the Chocolatey.PowerShell.csproj file (located at $ChocoSourceRepository/src/Chocolatey.PowerShell).Chocolatey.PowerShell.csproj.user file.Chocolatey.PowerShell project as the startup project.Import-Module ./Chocolatey.PowerShell.dll.<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartAction>Program</StartAction>
<StartProgram>c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</StartProgram>
</PropertyGroup>
</Project>