Skip to content

Commit 2f87df6

Browse files
committed
Add aggregate project
1 parent d92221d commit 2f87df6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

GenerateSolution.ps1

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,30 @@ foreach ($dll in $dlls.Keys) {
9595
dotnet sln $solutionFile add $projectFile
9696
}
9797

98+
# Create the main Riverside.Win32 project
99+
$mainProjectName = "Riverside.Win32"
100+
$mainProjectDir = Join-Path $WorkingDirectory $mainProjectName
101+
$mainProjectFile = Join-Path $mainProjectDir "$mainProjectName.csproj"
102+
103+
if (-not (Test-Path $mainProjectDir)) {
104+
New-Item -ItemType Directory -Path $mainProjectDir | Out-Null
105+
}
106+
107+
# Add main project .csproj content
108+
$mainCsprojContent = @"
109+
<Project Sdk="Microsoft.NET.Sdk">
110+
<PropertyGroup>
111+
<IncludeBuildOutput>false</IncludeBuildOutput>
112+
<IncludeSymbols>false</IncludeSymbols>
113+
<NoWarn>`$(NoWarn);NU5128</NoWarn>
114+
</PropertyGroup>
115+
<ItemGroup>
116+
<ProjectReference Include="..\Riverside.Win32.*\*.csproj" />
117+
</ItemGroup>
118+
</Project>
119+
"@
120+
$mainCsprojContent | Set-Content -Path $mainProjectFile
121+
122+
dotnet sln $solutionFile add $mainProjectFile
123+
98124
Write-Host "Solution and projects have been successfully created in $WorkingDirectory."

0 commit comments

Comments
 (0)