Skip to content

Commit

Permalink
Merge pull request #88 from mdgrs-mei/move-to-net-8
Browse files Browse the repository at this point in the history
Move to .NET 8
  • Loading branch information
mdgrs-mei authored Nov 22, 2024
2 parents bcdfba6 + 09a61a9 commit bbad8e4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pester-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.200'
dotnet-version: '8.0.404'
- name: Build
shell: pwsh
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.200'
dotnet-version: '8.0.404'
- name: Build
shell: pwsh
run: |
Expand Down
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param (
[String]$Configuration = 'Debug'
)

$netVersion = 'net6.0'
$netVersion = 'net8.0'
$copyExtensions = @('.dll', '.pdb')
$src = "$PSScriptRoot/src"
$coreSrc = "$src/PowerShellRun"
Expand Down
2 changes: 1 addition & 1 deletion module/PowerShellRun/PowerShellRun.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

$netVersion = 'net6.0'
$netVersion = 'net8.0'
$dll = "$PSScriptRoot/bin/$netVersion/PowerShellRun.dll"
Import-Module $dll

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>PowerShellRun.Dependency</AssemblyName>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/PowerShellRun/PowerShellRun.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>PowerShellRun</AssemblyName>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\PowerShellRun.Dependency\PowerShellRun.Dependency.csproj" />
<PackageReference Include="System.Management.Automation" Version="7.2.0" PrivateAssets="all" />
<PackageReference Include="System.Management.Automation" Version="7.4.0" PrivateAssets="all" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion tests/RestartableSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
$root = Split-Path $PSScriptRoot -Parent
Enter-RSSession -OnStart {
$root = $args[0]
$netVersion = 'net6.0'
$build = "$root/Build.ps1"

& $build Debug
Expand Down

0 comments on commit bbad8e4

Please sign in to comment.