File tree 5 files changed +12
-14
lines changed
5 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,7 @@ extends:
80
80
inputs :
81
81
packageType : sdk
82
82
useGlobalJson : true
83
- - pwsh : |
84
- Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
85
- Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
86
- ./tools/installPSResources.ps1 -PSRepository CFS
83
+ - pwsh : ./tools/installPSResources.ps1 -PSRepository CFS
87
84
displayName : Install PSResources
88
85
- pwsh : ./build.ps1 -Configuration Release -All
89
86
displayName : Build
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<VersionPrefix >$(ModuleVersion)</VersionPrefix >
5
- <TargetFrameworks >net6 ;net462</TargetFrameworks >
5
+ <TargetFrameworks >net8 ;net462</TargetFrameworks >
6
6
<AssemblyName >Microsoft.Windows.PowerShell.ScriptAnalyzer</AssemblyName >
7
7
<AssemblyVersion >$(ModuleVersion)</AssemblyVersion >
8
8
<PackageId >Engine</PackageId >
18
18
<DebugType >portable</DebugType >
19
19
</PropertyGroup >
20
20
21
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net6 ' " >
21
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net8 ' " >
22
22
<DefineConstants >$(DefineConstants);CORECLR</DefineConstants >
23
23
</PropertyGroup >
24
24
25
- <ItemGroup Condition =" '$(TargetFramework)' == 'net6 ' " >
25
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8 ' " >
26
26
<Compile Remove =" SafeDirectoryCatalog.cs" />
27
27
</ItemGroup >
28
28
69
69
</PropertyGroup >
70
70
71
71
72
- <ItemGroup Condition =" '$(TargetFramework)' == 'net6 '" >
72
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8 '" >
73
73
<PackageReference Include =" System.Management.Automation" />
74
74
</ItemGroup >
75
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net6 '" >
75
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net8 '" >
76
76
<DefineConstants >$(DefineConstants);PSV7;CORECLR</DefineConstants >
77
77
</PropertyGroup >
78
78
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<VersionPrefix >$(ModuleVersion)</VersionPrefix >
5
- <TargetFrameworks >net6 ;net462</TargetFrameworks >
5
+ <TargetFrameworks >net8 ;net462</TargetFrameworks >
6
6
<AssemblyName >Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules</AssemblyName >
7
7
<AssemblyVersion >$(ModuleVersion)</AssemblyVersion >
8
8
<PackageId >Rules</PackageId >
16
16
17
17
</ItemGroup >
18
18
19
- <ItemGroup Condition =" '$(TargetFramework)' == 'net6 ' " >
19
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8 ' " >
20
20
<PackageReference Include =" Newtonsoft.Json" />
21
21
<PackageReference Include =" System.Reflection.TypeExtensions" />
22
22
<PackageReference Include =" Microsoft.Management.Infrastructure" />
61
61
<DefineConstants >$(DefineConstants);PSV3;PSV4</DefineConstants >
62
62
</PropertyGroup >
63
63
64
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net6 '" >
64
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net8 '" >
65
65
<DefineConstants >$(DefineConstants);PSV7;CORECLR</DefineConstants >
66
66
</PropertyGroup >
67
67
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function Start-ScriptAnalyzerBuild
144
144
145
145
$framework = ' net462'
146
146
if ($PSVersion -eq 7 ) {
147
- $framework = ' net6 '
147
+ $framework = ' net8 '
148
148
}
149
149
150
150
# build the appropriate assembly
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 6.0.427"
3
+ "version" : " 8.0.406" ,
4
+ "rollForward" : " latestFeature"
4
5
}
5
6
}
You can’t perform that action at this time.
0 commit comments