Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 30 additions & 8 deletions TensorSharp.slnx
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
<Solution>
<Project Path="AdvUtils/AdvUtils.csproj" />
<Project Path="InferenceConsole/InferenceConsole.csproj" />
<Project Path="InferenceEngine/InferenceEngine.csproj" />
<Project Path="InferenceWeb/InferenceWeb.csproj" />
<Project Path="TensorSharp.GGML/TensorSharp.GGML.csproj" />
<Project Path="TensorSharp/TensorSharp.csproj" />
</Solution>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use SLNX schema in .slnx files

Changing the root element to <Project> makes this a traversal MSBuild project, not an SLNX solution file. On toolchains that natively support .slnx (for example .NET SDK 9.0.200+ / VS 17.14+), .slnx is parsed with the SLNX serializer and expects a <Solution> root, so solution operations (such as dotnet sln ...) and builds targeting TensorSharp.slnx can fail as an invalid solution format. Since this repo documents dotnet build TensorSharp.slnx, keeping non-SLNX XML under a .slnx extension introduces a compatibility regression.

Useful? React with 👍 / 👎.

<ItemGroup>
<ProjectsToBuild Include="AdvUtils/AdvUtils.csproj" />
<ProjectsToBuild Include="InferenceConsole/InferenceConsole.csproj" />
<ProjectsToBuild Include="InferenceEngine/InferenceEngine.csproj" />
<ProjectsToBuild Include="InferenceWeb/InferenceWeb.csproj" />
<ProjectsToBuild Include="TensorSharp.GGML/TensorSharp.GGML.csproj" />
<ProjectsToBuild Include="TensorSharp/TensorSharp.csproj" />
</ItemGroup>

<Target Name="Build">
<MSBuild Projects="@(ProjectsToBuild)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=$(Platform)" />
</Target>

<Target Name="Clean">
<MSBuild Projects="@(ProjectsToBuild)"
Targets="Clean"
Properties="Configuration=$(Configuration);Platform=$(Platform)" />
</Target>

<Target Name="Restore">
<MSBuild Projects="@(ProjectsToBuild)"
Targets="Restore"
Properties="Configuration=$(Configuration);Platform=$(Platform)" />
</Target>

<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
</Project>