Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 0 additions & 80 deletions .github/workflows/publish.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/test.yml

This file was deleted.

22 changes: 11 additions & 11 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.PARAMETER Configuration
The configuration of the build (`Debug` or `Release`) [Default: `Debug`]
.PARAMETER TargetFramework
The target framework of the build (`net7.0` or `net8.0`) [Default: `net8.0`]
The target framework of the build (`net8.0`, `net9.0` or `net10.0`) [Default: `net9.0`]
.PARAMETER Clean
If specified, cleans the project before building.
.EXAMPLE
Expand All @@ -24,17 +24,17 @@ param(
[ValidateSet('Debug', 'Release')]
[string] $Configuration = 'Debug',

# The target framework of the build (`net7.0` or `net8.0`) [Default: `net8.0`]
[ValidateSet("net7.0", "net8.0")]
# The target framework of the build (`net8.0`, `net9.0` or `net10.0`) [Default: `net9.0`]
[ValidateSet("net8.0", "net9.0", "net10.0")]
[ValidateNotNullOrEmpty()]
[string] $TargetFramework = "net8.0",
[string] $TargetFramework = "net9.0",

# Clean the project before building
[switch] $Clean
)

# Path to the Predictor project
$Project = "$PSScriptRoot\Predictor\PSFavoritePredictor.csproj"
$Project = Join-Path $PSScriptRoot "Predictor" "PSFavoritePredictor.csproj"

# Clean the project if the -Clean switch is specified
if ($Clean) {
Expand All @@ -55,16 +55,16 @@ if ($LASTEXITCODE -ne 0) {
# Items to copy to the Module directory
$Items = @(
@{
Source = "$PSScriptRoot\Predictor\bin\$Configuration\$TargetFramework\PSFavoritePredictor.dll"
Destination = "$PSScriptRoot\Module\Library\PSFavoritePredictor.dll"
Source = Join-Path $PSScriptRoot "Predictor" "bin" $Configuration $TargetFramework "PSFavoritePredictor.dll"
Destination = Join-Path $PSScriptRoot "Module" "Library" "PSFavoritePredictor.dll"
},
@{
Source = "$PSScriptRoot\README.md"
Destination = "$PSScriptRoot\Module\README.md"
Source = Join-Path $PSScriptRoot "README.md"
Destination = Join-Path $PSScriptRoot "Module" "README.md"
},
@{
Source = "$PSScriptRoot\LICENSE"
Destination = "$PSScriptRoot\Module\LICENSE"
Source = Join-Path $PSScriptRoot "LICENSE"
Destination = Join-Path $PSScriptRoot "Module" "LICENSE"
}
)

Expand Down
5 changes: 2 additions & 3 deletions Predictor/PSFavoritePredictor.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.1" />
<PackageReference Include="System.Management.Automation" Version="7.4.1" />
<PackageReference Include="System.Management.Automation" Version="7.5.0" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>PSFavoritePredictor</RootNamespace>
Expand Down