Skip to content

Commit da5f6ac

Browse files
committed
(#3835) Remove reference to Chocolatey.PowerShell
The chocolatey.console project had a reference to the Chocolatey.PowerShell when it wasn't needed. Before, this wasn't causing any problems, but with the uplift to the new csproj format, and the fact that it brings in transitive dependencies into a project, the fact that there is a StringResources in both chocolatey.lib and Chocolatey.PowerShell (the file is linked from one project to the other), it means that there are two references to the same thing, and as a result, as usage of StringResources is broken. Splitting the project reference seems like the correct course of action. The Chocolatey.PowerShell assembly is only used within the PowerShell execution of Chocolatey CLI, so no direct project reference should ever be needed.
1 parent 1c0ba6b commit da5f6ac

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/chocolatey.console/chocolatey.console.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
</ItemGroup>
100100
<ItemGroup>
101101
<ProjectReference Include="..\chocolatey\chocolatey.csproj" />
102-
<ProjectReference Include="..\Chocolatey.PowerShell\Chocolatey.PowerShell.csproj" />
103102
</ItemGroup>
104103
<ItemGroup>
105104
<None Include="..\..\docs\logo\chocolatey.ico">

0 commit comments

Comments
 (0)