File tree Expand file tree Collapse file tree 5 files changed +40
-20
lines changed
PSCompatibilityCollector/Microsoft.PowerShell.CrossCompatibility Expand file tree Collapse file tree 5 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 1+ <Project >
2+ <PropertyGroup >
3+ <ManagePackageVersionsCentrally >true</ManagePackageVersionsCentrally >
4+ </PropertyGroup >
5+ </Project >
Original file line number Diff line number Diff line change 1+ <Project >
2+ <ItemGroup >
3+ <!-- Newtonsoft.Json brings in an old version of CSharp. So, we are forcing a newer version. -->
4+ <PackageVersion Include =" Microsoft.CSharp" Version =" 4.7.0" />
5+ <PackageVersion Include =" Microsoft.Management.Infrastructure" Version =" 3.0.0" />
6+ <PackageVersion Include =" Microsoft.PowerShell.3.ReferenceAssemblies" Version =" 1.0.0" />
7+ <PackageVersion Include =" Microsoft.PowerShell.4.ReferenceAssemblies" Version =" 1.0.0" />
8+ <PackageVersion Include =" Microsoft.PowerShell.5.ReferenceAssemblies" Version =" 1.1.0" />
9+ <PackageVersion Include =" Microsoft.Win32.Registry" Version =" 5.0.0" />
10+ <!-- The version of Newtonsoft.Json needs to be newer than the version in the oldest supported version of PowerShell 7: https://github.com/PowerShell/PowerShell/blob/v7.2.17/src/System.Management.Automation/System.Management.Automation.csproj#L15 -->
11+ <PackageVersion Include =" Newtonsoft.Json" Version =" 13.0.3" />
12+ <PackageVersion Include =" Pluralize.NET" Version =" 1.0.2" />
13+ <PackageVersion Include =" PowerShellStandard.Library" Version =" 3.0.0-preview-02" />
14+ <PackageVersion Include =" System.Management.Automation" Version =" 7.0.13" />
15+ <PackageVersion Include =" System.Reflection.TypeExtensions" Version =" 4.7.0" />
16+ </ItemGroup >
17+ </Project >
Original file line number Diff line number Diff line change 4545 </ItemGroup >
4646
4747 <ItemGroup >
48- <PackageReference Include =" Microsoft.CSharp" Version = " 4.7.0 " />
48+ <PackageReference Include =" Microsoft.CSharp" />
4949 </ItemGroup >
5050
5151 <!--
7070
7171
7272 <ItemGroup Condition =" '$(TargetFramework)' == 'net6'" >
73- <PackageReference Include =" System.Management.Automation" Version = " 7.0.13 " />
73+ <PackageReference Include =" System.Management.Automation" />
7474 </ItemGroup >
7575 <PropertyGroup Condition =" '$(TargetFramework)' == 'net6'" >
7676 <DefineConstants >$(DefineConstants);PSV7;CORECLR</DefineConstants >
7777 </PropertyGroup >
7878
7979 <ItemGroup Condition =" '$(TargetFramework)' == 'net462' AND '$(Configuration)' == 'PSV3Release' AND '$(Configuration)' != 'PSV4Release'" >
80- <PackageReference Include =" Microsoft.PowerShell.3.ReferenceAssemblies" Version = " 1.0.0 " />
80+ <PackageReference Include =" Microsoft.PowerShell.3.ReferenceAssemblies" />
8181 </ItemGroup >
8282
8383 <ItemGroup Condition =" '$(TargetFramework)' == 'net462' AND '$(Configuration)' == 'PSV4Release'" >
84- <PackageReference Include =" Microsoft.PowerShell.4.ReferenceAssemblies" Version = " 1.0.0 " />
84+ <PackageReference Include =" Microsoft.PowerShell.4.ReferenceAssemblies" />
8585 </ItemGroup >
8686
8787 <ItemGroup Condition =" '$(TargetFramework)' == 'net462' AND '$(Configuration)' != 'PSV3Release'" >
88- <PackageReference Include =" Microsoft.PowerShell.5.ReferenceAssemblies" Version = " 1.1.0 " />
88+ <PackageReference Include =" Microsoft.PowerShell.5.ReferenceAssemblies" />
8989 </ItemGroup >
9090
9191 <PropertyGroup Condition =" '$(Configuration)' == 'PSV3Release' " >
Original file line number Diff line number Diff line change 1111 </PropertyGroup >
1212
1313 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
14- <!-- The version of Newtonsoft.Json needs to be newer than the version in the oldest supported version of PowerShell 7: https://github.com/PowerShell/PowerShell/blob/v7.2.17/src/System.Management.Automation/System.Management.Automation.csproj#L15 -->
15- <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.3" />
16- <PackageReference Include =" Microsoft.Win32.Registry" Version =" 5.0.0" />
17- <PackageReference Include =" Microsoft.Management.Infrastructure" Version =" 3.0.0" />
18- <PackageReference Include =" PowerShellStandard.Library" Version =" 3.0.0-preview-02" />
14+ <PackageReference Include =" Newtonsoft.Json" />
15+ <PackageReference Include =" Microsoft.Win32.Registry" />
16+ <PackageReference Include =" Microsoft.Management.Infrastructure" />
17+ <PackageReference Include =" PowerShellStandard.Library" />
1918 </ItemGroup >
2019
2120 <ItemGroup Condition =" '$(TargetFramework)' == 'net462'" >
22- <PackageReference Include =" Newtonsoft.Json" Version = " 13.0.3 " />
23- <PackageReference Include =" Microsoft.PowerShell.3.ReferenceAssemblies" Version = " 1.0.0 " />
24- <PackageReference Include =" Microsoft.Management.Infrastructure" Version =" 1.0.0" />
21+ <PackageReference Include =" Newtonsoft.Json" />
22+ <PackageReference Include =" Microsoft.PowerShell.3.ReferenceAssemblies" />
23+ <PackageReference Include =" Microsoft.Management.Infrastructure" VersionOverride =" 1.0.0" />
2524 </ItemGroup >
2625
2726 <ItemGroup >
28- <PackageReference Include =" Microsoft.CSharp" Version = " 4.7.0 " />
27+ <PackageReference Include =" Microsoft.CSharp" />
2928 </ItemGroup >
3029
3130</Project >
Original file line number Diff line number Diff line change 1717 </ItemGroup >
1818
1919 <ItemGroup Condition =" '$(TargetFramework)' == 'net6' " >
20- <!-- The version of Newtonsoft.Json needs to be newer than the version in the oldest supported version of PowerShell 7: https://github.com/PowerShell/PowerShell/blob/v7.2.17/src/System.Management.Automation/System.Management.Automation.csproj#L15 -->
21- <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.3" />
22- <PackageReference Include =" System.Reflection.TypeExtensions" Version =" 4.7.0" />
23- <PackageReference Include =" Microsoft.Management.Infrastructure" Version =" 3.0.0" />
24- <PackageReference Include =" Pluralize.NET" Version =" 1.0.2" />
20+ <PackageReference Include =" Newtonsoft.Json" />
21+ <PackageReference Include =" System.Reflection.TypeExtensions" />
22+ <PackageReference Include =" Microsoft.Management.Infrastructure" />
23+ <PackageReference Include =" Pluralize.NET" />
2524 </ItemGroup >
2625
2726 <ItemGroup Condition =" '$(TargetFramework)' == 'net462' " >
28- <PackageReference Include =" Newtonsoft.Json" Version = " 13.0.3 " />
27+ <PackageReference Include =" Newtonsoft.Json" />
2928 <Reference Include =" System.ComponentModel.Composition" />
3029 <Reference Include =" System.Data.Entity.Design" />
3130 </ItemGroup >
You can’t perform that action at this time.
0 commit comments