Skip to content

Commit 2d15e0c

Browse files
Update to .NET 8 preview 1 build (PowerShell#19194)
1 parent 79b4b5c commit 2d15e0c

File tree

44 files changed

+299
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+299
-90
lines changed

Analyzers.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22
<ItemGroup>
33
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" PrivateAssets="all" />
4-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.0" PrivateAssets="all" />
54
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406" PrivateAssets="all" />
65
</ItemGroup>
76
</Project>

DotnetRuntimeMetadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"channel": "7.0.1xx",
3+
"channel": "8.0.1xx-preview1",
44
"quality": "daily",
55
"qualityFallback": "preview",
6-
"packageVersionPattern": "7.0.1",
6+
"packageVersionPattern": "8.0.0-preview.1",
77
"sdkImageVersion": "7.0.101",
88
"nextChannel": "7.0.1xx-rc2",
99
"azureFeed": "",

PowerShell.Common.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@
138138
<Company>Microsoft Corporation</Company>
139139
<Copyright>(c) Microsoft Corporation.</Copyright>
140140

141-
<TargetFramework>net7.0</TargetFramework>
142-
<LangVersion>10.0</LangVersion>
141+
<TargetFramework>net8.0</TargetFramework>
142+
<LangVersion>11.0</LangVersion>
143143

144144
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
145145
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

assets/wix/files.wxs

Lines changed: 215 additions & 7 deletions
Large diffs are not rendered by default.

build.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,8 @@ function New-PSOptions {
877877
[ValidateSet('Debug', 'Release', 'CodeCoverage', 'StaticAnalysis', '')]
878878
[string]$Configuration,
879879

880-
[ValidateSet("net7.0")]
881-
[string]$Framework = "net7.0",
880+
[ValidateSet("net8.0")]
881+
[string]$Framework = "net8.0",
882882

883883
# These are duplicated from Start-PSBuild
884884
# We do not use ValidateScript since we want tab completion
@@ -3484,7 +3484,7 @@ function Clear-NativeDependencies
34843484
$filesToDeleteWinDesktop = @()
34853485

34863486
$deps = Get-Content "$PublishFolder/pwsh.deps.json" -Raw | ConvertFrom-Json -Depth 20
3487-
$targetRuntime = ".NETCoreApp,Version=v7.0/$($script:Options.Runtime)"
3487+
$targetRuntime = ".NETCoreApp,Version=v8.0/$($script:Options.Runtime)"
34883488

34893489
$runtimePackNetCore = $deps.targets.${targetRuntime}.PSObject.Properties.Name -like 'runtimepack.Microsoft.NETCore.App.Runtime*'
34903490
$runtimePackWinDesktop = $deps.targets.${targetRuntime}.PSObject.Properties.Name -like 'runtimepack.Microsoft.WindowsDesktop.App.Runtime*'

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "7.0.101"
3+
"version": "8.0.100-preview.1.23115.2"
44
}
55
}

nuget.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v2" />
5+
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v2" />
66
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
77
</packageSources>
88
<disabledPackageSources>

src/Microsoft.Management.UI.Internal/Microsoft.PowerShell.GraphicalHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<AssemblyName>Microsoft.PowerShell.GraphicalHost</AssemblyName>
88
<UseWPF>True</UseWPF>
99
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
10-
<TargetPlatformVersion>7.0</TargetPlatformVersion>
10+
<TargetPlatformVersion>8.0</TargetPlatformVersion>
1111
<RunAnalyzers>false</RunAnalyzers>
1212
</PropertyGroup>
1313

src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj

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

99
<ItemGroup>
1010
<ProjectReference Include="..\System.Management.Automation\System.Management.Automation.csproj" />
11-
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="7.0.0" />
11+
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0-preview.1.23110.8" />
1212
</ItemGroup>
1313

1414
<PropertyGroup>

src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj

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

4848
<ItemGroup>
4949
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
50-
<PackageReference Include="System.ServiceProcess.ServiceController" Version="7.0.0" />
50+
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0-preview.1.23110.8" />
5151
</ItemGroup>
5252

5353
</Project>

0 commit comments

Comments
 (0)