File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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+
98124Write-Host " Solution and projects have been successfully created in $WorkingDirectory ."
You can’t perform that action at this time.
0 commit comments