Migrate solution files from .sln to .slnx#1262
Conversation
Cherry pick to beta failed, 1 conflicted file in commit f28ec9e
|
Manual cherry pick to beta success |
…der in output path With TargetFrameworks (plural), MSBuild outputs to bin/Release/net10.0/ even for a single TFM, causing getBLOB_PATH() base path mismatch in GXDBFilePathTest. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Cherry pick to beta success |
|
|
||
| - name: Build temporary solution | ||
| run: dotnet build dotnet\CodeqlSolution.sln --framework net8.0 | ||
| run: dotnet build dotnet\CodeqlSolution.slnx --framework net8.0 |
There was a problem hiding this comment.
Shouldn't the --framework argument be updated to net10.0?
| dotnet new sln --format sln --name $TempSolution --output dotnet --force | ||
| dotnet msbuild dotnet\DotNetStandardClasses.sln /t:DumpProjects -p:DumpSolutionName=$TempSolution /m:1 -p:DumpSolutionTargetFrameworkDefault=net8 | ||
| dotnet new sln --name $TempSolution --output dotnet --force | ||
| dotnet msbuild dotnet\DotNetStandardClasses.slnx /t:DumpProjects -p:DumpSolutionName=$TempSolution /m:1 -p:DumpSolutionTargetFrameworkDefault=net8 |
There was a problem hiding this comment.
Shouldn't the -p:DumpSolutionTargetFrameworkDefault be updated to net10?
There was a problem hiding this comment.
All your suggestions have been applied. Thanks for the feedback
| run: | | ||
| dotnet new sln --name $SolutionFileName --output dotnet --force | ||
| dotnet msbuild dotnet/DotNetStandardClasses.sln /t:DumpProjectsAndCoreTests -p:DumpSolutionName=$SolutionFileName -p:DumpSolutionExtension=slnx /m:1 -p:DumpSolutionTargetFrameworkDefault=net8 | ||
| dotnet msbuild dotnet/DotNetStandardClasses.slnx /t:DumpProjectsAndCoreTests -p:DumpSolutionName=$SolutionFileName -p:DumpSolutionExtension=slnx /m:1 -p:DumpSolutionTargetFrameworkDefault=net8 |
There was a problem hiding this comment.
Shouldn't the -p:DumpSolutionTargetFrameworkDefault be updated to net10?
| @@ -65,7 +65,7 @@ jobs: | |||
| - name: Create temporary solution with .NET 8 projects | |||
There was a problem hiding this comment.
There's a message here referring to .NET 8
| <DumpSolutionName>TempSolution</DumpSolutionName> | ||
| <DumpSolutionExtension>sln</DumpSolutionExtension> | ||
| <DumpSolutionExtension>slnx</DumpSolutionExtension> | ||
| <DumpSolutionTargetFrameworkDefault>net8</DumpSolutionTargetFrameworkDefault> |
There was a problem hiding this comment.
Shouldn't this prop be updated to net10?
| # How to build | ||
|
|
||
| ## Requirements | ||
| - Visual Studio 2022 (17.8 or higher). |
There was a problem hiding this comment.
VS versions compatible with slnx are 2025 (17.14 or higher), but recommended 2026.
| - ```dotnet msbuild /p:TF=net8.0 /p:DeployDirectory=C:\KB\NetModel\web\bin DotNetStandardClasses.sln``` | ||
| - ```dotnet msbuild /p:TF=net10.0 /p:DeployDirectory=C:\KB\NetModel\web\bin DotNetStandardClasses.slnx``` | ||
|
|
||
| It compiles the solution and copies all the .NET 8 assemblies to the folder C:\KB\NetModel\web\bin. |
There was a problem hiding this comment.
There's a message with a reference to .NET 8
Cherry pick to beta success |
Migrate to .slnx solution format and update all references
Issue:208221