|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <VersionPrefix>1.18.3</VersionPrefix> |
5 | | - <TargetFrameworks>netstandard2.0;net452</TargetFrameworks> |
| 4 | + <VersionPrefix>1.19.0</VersionPrefix> |
| 5 | + <TargetFrameworks>netcoreapp3.1;netstandard2.0;net452</TargetFrameworks> |
6 | 6 | <AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules</AssemblyName> |
7 | 7 | <PackageId>Rules</PackageId> |
8 | 8 | <RootNamespace>Microsoft.Windows.PowerShell.ScriptAnalyzer</RootNamespace> <!-- Namespace needs to match Assembly name for ressource binding --> |
9 | 9 | </PropertyGroup> |
10 | 10 |
|
11 | 11 | <ItemGroup> |
12 | 12 | <ProjectReference Include="..\Engine\Engine.csproj" /> |
13 | | - <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> |
14 | | - <PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0" /> |
| 13 | + <ProjectReference Include="..\PSCompatibilityCollector\Microsoft.PowerShell.CrossCompatibility\Microsoft.PowerShell.CrossCompatibility.csproj" /> |
| 14 | + <PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> |
| 15 | + </ItemGroup> |
| 16 | + |
| 17 | + <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netcoreapp3.1' "> |
| 18 | + <PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" /> |
15 | 19 | </ItemGroup> |
16 | 20 |
|
17 | 21 | <ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> |
| 22 | + <PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0" /> |
18 | 23 | <Reference Include="System.ComponentModel.Composition" /> |
19 | 24 | <Reference Include="System.Data.Entity.Design" /> |
20 | 25 | </ItemGroup> |
|
42 | 47 | </EmbeddedResource> |
43 | 48 | </ItemGroup> |
44 | 49 |
|
45 | | - <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> |
| 50 | + <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netcoreapp3.1'"> |
46 | 51 | <PackageReference Include="System.Reflection.TypeExtensions" Version="4.5.1" /> |
47 | 52 | <Compile Remove="UseSingularNouns.cs" /> |
48 | 53 | </ItemGroup> |
49 | 54 |
|
50 | | - <ItemGroup> |
51 | | - <ProjectReference Include="..\PSCompatibilityCollector\Microsoft.PowerShell.CrossCompatibility\Microsoft.PowerShell.CrossCompatibility.csproj" /> |
52 | | - </ItemGroup> |
53 | | - |
54 | 55 | <PropertyGroup Condition=" '$(Configuration)' == 'PSV3Release' "> |
55 | 56 | <DefineConstants>$(DefineConstants);PSV3</DefineConstants> |
56 | 57 | </PropertyGroup> |
|
67 | 68 | <DefineConstants>$(DefineConstants);PSV3;PSV4</DefineConstants> |
68 | 69 | </PropertyGroup> |
69 | 70 |
|
| 71 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' AND '$(Configuration)' == 'PSV7Release'"> |
| 72 | + <DefineConstants>$(DefineConstants);PSV7;CORECLR</DefineConstants> |
| 73 | + </PropertyGroup> |
| 74 | + |
| 75 | + <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' AND '$(Configuration)' == 'PSV7Release'"> |
| 76 | + <PackageReference Include="Microsoft.PowerShell.SDK" Version="7.0.0" /> |
| 77 | + </ItemGroup> |
| 78 | + |
| 79 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' AND '$(Configuration)' == 'PSV6Release'"> |
| 80 | + <DefineConstants>$(DefineConstants);PSV6;CORECLR</DefineConstants> |
| 81 | + </PropertyGroup> |
| 82 | + |
| 83 | + <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' AND '$(Configuration)' == 'PSV6Release'"> |
| 84 | + <PackageReference Include="System.Management.Automation" Version="6.1.0" /> |
| 85 | + </ItemGroup> |
| 86 | + |
| 87 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' AND '$(Configuration)' == 'PSV7Debug'"> |
| 88 | + <DefineConstants>$(DefineConstants);PSV7;CORECLR</DefineConstants> |
| 89 | + </PropertyGroup> |
| 90 | + |
| 91 | + <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' AND '$(Configuration)' == 'PSV7Debug'"> |
| 92 | + <PackageReference Include="Microsoft.PowerShell.SDK" Version="7.0.0" /> |
| 93 | + </ItemGroup> |
| 94 | + |
| 95 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' AND '$(Configuration)' == 'PSV6Debug'"> |
| 96 | + <DefineConstants>$(DefineConstants);PSV6;CORECLR</DefineConstants> |
| 97 | + </PropertyGroup> |
| 98 | + |
| 99 | + <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' AND '$(Configuration)' == 'PSV6Debug'"> |
| 100 | + <PackageReference Include="System.Management.Automation" Version="6.1.0" /> |
| 101 | + </ItemGroup> |
| 102 | + |
70 | 103 | </Project> |
0 commit comments