Skip to content

Commit 52d8521

Browse files
committed
upgrade to net 461 and use in full clr as well
1 parent 4767772 commit 52d8521

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

Engine/Engine.csproj

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
<PropertyGroup>
44
<VersionPrefix>1.16.1</VersionPrefix>
5-
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
66
<AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer</AssemblyName>
77
<PackageId>Engine</PackageId>
88
<RootNamespace>Microsoft.Windows.PowerShell.ScriptAnalyzer</RootNamespace> <!-- Namespace needs to match Assembly name for ressource binding -->
99
</PropertyGroup>
1010

11-
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
11+
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
1212
<Reference Include="System.ComponentModel.Composition" />
1313
<Reference Include="System" />
1414
</ItemGroup>
1515

16-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net451' ">
16+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
1717
<DebugType>portable</DebugType>
1818
</PropertyGroup>
1919

@@ -31,6 +31,7 @@
3131

3232
<ItemGroup>
3333
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
34+
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
3435
</ItemGroup>
3536

3637
<ItemGroup>
@@ -48,14 +49,6 @@
4849
</EmbeddedResource>
4950
</ItemGroup>
5051

51-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
52-
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
53-
</ItemGroup>
54-
55-
<ItemGroup Condition="'$(TargetFramework)' == 'net451'">
56-
<PackageReference Include="System.Management.Automation" Version="6.0.0-alpha13" />
57-
</ItemGroup>
58-
5952
<PropertyGroup Condition=" '$(Configuration)' == 'PSV3Release' ">
6053
<DefineConstants>$(DefineConstants);PSV3;PSV5</DefineConstants>
6154
</PropertyGroup>

Rules/Rules.csproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<VersionPrefix>1.16.1</VersionPrefix>
5-
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
66
<AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules</AssemblyName>
77
<PackageId>Rules</PackageId>
88
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard2.0' ">$(PackageTargetFallback)</PackageTargetFallback>
@@ -15,14 +15,14 @@
1515
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
1616
</ItemGroup>
1717

18-
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
18+
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
1919
<Reference Include="System.ComponentModel.Composition" />
2020
<Reference Include="System.Data.Entity.Design" />
2121
<Reference Include="System" />
2222
<Reference Include="Microsoft.CSharp" />
2323
</ItemGroup>
2424

25-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net451' ">
25+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
2626
<DebugType>portable</DebugType>
2727
</PropertyGroup>
2828

@@ -45,13 +45,12 @@
4545
</EmbeddedResource>
4646
</ItemGroup>
4747

48-
<ItemGroup Condition="'$(TargetFramework)' == 'net451'">
49-
<PackageReference Include="System.Management.Automation" Version="6.0.0-alpha13" />
48+
<ItemGroup>
49+
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
50+
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0-alpha08" />
5051
</ItemGroup>
5152

5253
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
53-
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
54-
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0-alpha08" />
5554
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" />
5655
<Compile Remove="UseSingularNouns.cs" />
5756
</ItemGroup>

0 commit comments

Comments
 (0)