Skip to content

Commit

Permalink
Release 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Mar 3, 2024
1 parent 2ccdfe6 commit a43ef19
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Harmony/Harmony.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<Configurations>DebugThin;DebugFat;ReleaseThin;ReleaseFat</Configurations>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<ClearOutputDirectory>True</ClearOutputDirectory>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='net5.0' Or '$(TargetFramework)'=='net6.0' Or '$(TargetFramework)'=='net7.0' Or '$(TargetFramework)'=='net8.0'">
Expand All @@ -62,16 +64,12 @@
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
<ClearOutputDirectory>True</ClearOutputDirectory>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='ReleaseFat'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
<ClearOutputDirectory>True</ClearOutputDirectory>
<CopyDebugSymbolFilesFromPackages>true</CopyDebugSymbolFilesFromPackages>
</PropertyGroup>

Expand Down
26 changes: 26 additions & 0 deletions pack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Ensure the script is executed in the root of the Harmony project
if (-not (Test-Path .git) -or -not (Test-Path Harmony.sln)) {
Write-Host "This script must be run from the root of the Harmony project."
exit
}

# Clear out old pack results from Harmony\bin and clean the project once for all configurations
Write-Host "Cleaning Harmony\bin directory and project..."
if (Test-Path Harmony\bin) {
Remove-Item Harmony\bin -Recurse
}
New-Item -ItemType Directory -Path Harmony\bin | Out-Null

# Clean the project
dotnet clean --nologo --verbosity minimal

# Define configurations
$configurations = @('ReleaseFat', 'ReleaseThin', 'DebugFat', 'DebugThin')

# Loop through each configuration for building and packing
foreach ($config in $configurations) {
Write-Host "Processing configuration: $config"
# Building the project for the specific configuration
dotnet build --nologo --configuration $config --verbosity minimal
dotnet pack --nologo --configuration $config --verbosity minimal
}

0 comments on commit a43ef19

Please sign in to comment.