Skip to content

Commit

Permalink
(chocolateyGH-8) Add System.Management.Automation binary
Browse files Browse the repository at this point in the history
Add SMA and reference it appropriately. Through research it has been
found to take a dependency on the v1 version of SMA and set the
reference in the visual studio projects to not use a specific version
and not copy it local. This means it depends on being available in the
GAC, which should be if .NET Framework 4+ is installed.

The reference to v1 allows it to work across all versions of Windows
that have at least PowerShell v2 installed.
  • Loading branch information
ferventcoder committed Jan 1, 2016
1 parent d062370 commit cc280bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file added lib/PowerShell/System.Management.Automation.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions src/chocolatey.console/chocolatey.console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Management.Automation">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\PowerShell\System.Management.Automation.dll</HintPath>
</Reference>
<Reference Include="System.Security" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
Expand Down
4 changes: 4 additions & 0 deletions src/chocolatey/chocolatey.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Management.Automation">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\PowerShell\System.Management.Automation.dll</HintPath>
</Reference>
<Reference Include="System.Reactive.Core">
<HintPath>..\packages\Rx-Core.2.1.30214.0\lib\Net40\System.Reactive.Core.dll</HintPath>
</Reference>
Expand Down

0 comments on commit cc280bf

Please sign in to comment.