File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 35
35
<Configurations >DebugThin;DebugFat;ReleaseThin;ReleaseFat</Configurations >
36
36
<PublishRepositoryUrl >true</PublishRepositoryUrl >
37
37
<EmbedUntrackedSources >true</EmbedUntrackedSources >
38
+ <ILRepackTargetsFile >$(SolutionDir)ILRepack.targets</ILRepackTargetsFile >
38
39
<AllowedOutputExtensionsInPackageBuildOutputFolder >$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder >
40
+ <ClearOutputDirectory >True</ClearOutputDirectory >
39
41
</PropertyGroup >
40
42
41
43
<PropertyGroup Condition =" '$(TargetFramework)'=='net5.0' Or '$(TargetFramework)'=='net6.0' Or '$(TargetFramework)'=='net7.0' Or '$(TargetFramework)'=='net8.0'" >
62
64
<Optimize >true</Optimize >
63
65
<DebugType >portable</DebugType >
64
66
<DebugSymbols >true</DebugSymbols >
65
- <ILRepackTargetsFile >$(SolutionDir)ILRepack.targets</ILRepackTargetsFile >
66
- <ClearOutputDirectory >True</ClearOutputDirectory >
67
67
</PropertyGroup >
68
68
69
69
<PropertyGroup Condition =" '$(Configuration)'=='ReleaseFat'" >
70
70
<Optimize >true</Optimize >
71
71
<DebugType >portable</DebugType >
72
72
<DebugSymbols >true</DebugSymbols >
73
- <ILRepackTargetsFile >$(SolutionDir)ILRepack.targets</ILRepackTargetsFile >
74
- <ClearOutputDirectory >True</ClearOutputDirectory >
75
73
<CopyDebugSymbolFilesFromPackages >true</CopyDebugSymbolFilesFromPackages >
76
74
</PropertyGroup >
77
75
Original file line number Diff line number Diff line change
1
+ # Ensure the script is executed in the root of the Harmony project
2
+ if (-not (Test-Path .git) -or -not (Test-Path Harmony.sln)) {
3
+ Write-Host " This script must be run from the root of the Harmony project."
4
+ exit
5
+ }
6
+
7
+ # Clear out old pack results from Harmony\bin and clean the project once for all configurations
8
+ Write-Host " Cleaning Harmony\bin directory and project..."
9
+ if (Test-Path Harmony\bin) {
10
+ Remove-Item Harmony\bin - Recurse
11
+ }
12
+ New-Item - ItemType Directory - Path Harmony\bin | Out-Null
13
+
14
+ # Clean the project
15
+ dotnet clean -- nologo -- verbosity minimal
16
+
17
+ # Define configurations
18
+ $configurations = @ (' ReleaseFat' , ' ReleaseThin' , ' DebugFat' , ' DebugThin' )
19
+
20
+ # Loop through each configuration for building and packing
21
+ foreach ($config in $configurations ) {
22
+ Write-Host " Processing configuration: $config "
23
+ # Building the project for the specific configuration
24
+ dotnet build -- nologo -- configuration $config -- verbosity minimal
25
+ dotnet pack -- nologo -- configuration $config -- verbosity minimal
26
+ }
You can’t perform that action at this time.
0 commit comments