Skip to content

Commit e8b92c0

Browse files
committed
Add back removed attributes
1 parent 8b0c203 commit e8b92c0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<ItemGroup>
5050
<PackageReference Include="Microsoft.Windows.CsWinRT" />
51-
<PackageReference Include="Microsoft.PowerShell.SDK">
51+
<PackageReference Include="Microsoft.PowerShell.SDK" GeneratePathProperty="true">
5252
<ExcludeAssets>contentFiles</ExcludeAssets>
5353
</PackageReference>
5454
<PackageReference Include="Newtonsoft.Json" />

src/Microsoft.Management.Configuration.UnitTests/Microsoft.Management.Configuration.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3939
</PackageReference>
4040
<PackageReference Include="Moq" />
41-
<PackageReference Include="Microsoft.PowerShell.SDK" />
41+
<PackageReference Include="Microsoft.PowerShell.SDK" GeneratePathProperty="true" />
4242
</ItemGroup>
4343

4444
<ItemGroup>

src/PowerShell/Microsoft.WinGet.Client.Cmdlets/Microsoft.WinGet.Client.Cmdlets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<ItemGroup>
3838
<PackageReference Include="Newtonsoft.Json" />
39-
<PackageReference Include="PowerShellStandard.Library" />
39+
<PackageReference Include="PowerShellStandard.Library" PrivateAssets="all" />
4040
<PackageReference Include="StyleCop.Analyzers">
4141
<PrivateAssets>all</PrivateAssets>
4242
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/PowerShell/Microsoft.WinGet.Client.Engine/Microsoft.WinGet.Client.Engine.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@
4444

4545
<ItemGroup>
4646
<PackageReference Include="Octokit" />
47-
<PackageReference Include="PowerShellStandard.Library" />
47+
<PackageReference Include="PowerShellStandard.Library" PrivateAssets="all" />
4848
<PackageReference Include="Semver" />
4949
<PackageReference Include="StyleCop.Analyzers">
5050
<PrivateAssets>all</PrivateAssets>
5151
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5252
</PackageReference>
5353
<PackageReference Include="System.Security.Principal.Windows" />
5454
<PackageReference Include="Newtonsoft.Json" />
55-
<PackageReference Include="Microsoft.CSharp" />
56-
<PackageReference Include="Microsoft.Windows.CsWinRT" />
57-
<PackageReference Include="Microsoft.Windows.SDK.Contracts" />
58-
<PackageReference Include="System.Net.Http" />
55+
<PackageReference Include="Microsoft.CSharp" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
56+
<PackageReference Include="Microsoft.Windows.CsWinRT" Condition="'$(TargetFramework)' == '$(CoreFramework)'" />
57+
<PackageReference Include="Microsoft.Windows.SDK.Contracts" PrivateAssets="all" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
58+
<PackageReference Include="System.Net.Http" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
5959
</ItemGroup>
6060

6161
<ItemGroup>

src/PowerShell/Microsoft.WinGet.Configuration.Cmdlets/Microsoft.WinGet.Configuration.Cmdlets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<ItemGroup>
3333
<PackageReference Include="Newtonsoft.Json" />
34-
<PackageReference Include="PowerShellStandard.Library" />
34+
<PackageReference Include="PowerShellStandard.Library" PrivateAssets="all" />
3535
<PackageReference Include="StyleCop.Analyzers">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/PowerShell/Microsoft.WinGet.Configuration.Engine/Microsoft.WinGet.Configuration.Engine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<ItemGroup>
3333
<PackageReference Include="Newtonsoft.Json" />
34-
<PackageReference Include="PowerShellStandard.Library" />
34+
<PackageReference Include="PowerShellStandard.Library" PrivateAssets="all" />
3535
<PackageReference Include="StyleCop.Analyzers">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)