Skip to content

Commit

Permalink
Merge C# test & dist solutions (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Sep 4, 2024
1 parent b1afb78 commit 58d8716
Show file tree
Hide file tree
Showing 131 changed files with 2,266 additions and 2,846 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dotnet_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ jobs:
- name: Run dotnet format
run: |
dotnet format --verify-no-changes csharp/msbuild/ice.sln
dotnet format --verify-no-changes csharp/msbuild/ice.test.sln
57 changes: 12 additions & 45 deletions csharp/msbuild/ice.proj
Original file line number Diff line number Diff line change
Expand Up @@ -37,68 +37,35 @@
Condition="'$(OS)' != 'Windows_NT'"/>
</Target>

<ItemGroup>
<ItemGroup Condition="'$(ICE_BIN_DIST)' != 'all'">
<!-- .NET Solution files -->
<DistSolution Include="ice.sln">
<Properties>Configuration=$(Configuration);Platform=Any CPU;CppPlatform=$(CppPlatform)</Properties>
</DistSolution>

<TestSolution Include="ice.test.sln">
<SolutionFile Include="ice.sln">
<Properties>Configuration=$(Configuration);Platform=Any CPU;CppPlatform=$(CppPlatform)</Properties>
</TestSolution>
</SolutionFile>
</ItemGroup>

<Target Name="NuGetRestoreDist" Condition="'$(ICE_BIN_DIST)' != 'all'">
<MSBuild Projects="@(DistSolution)"
<Target Name="NuGetRestore">
<MSBuild Projects="@(SolutionFile)"
BuildInParallel="true"
Properties="%(Properties)"
Targets="Restore"/>
</Target>

<Target Name="BuildDist"
DependsOnTargets="SliceCompilers;NuGetRestoreDist"
Condition="'$(ICE_BIN_DIST)' != 'all'">

<MSBuild Projects="@(DistSolution)"
<Target Name="Build"
DependsOnTargets="SliceCompilers;NuGetRestore">
<MSBuild Projects="@(SolutionFile)"
BuildInParallel="true"
Properties="%(Properties)"/>

</Target>

<Target Name="CleanDist" Condition="'$(ICE_BIN_DIST)' != 'all'">

<MSBuild Projects="@(DistSolution)"
<Target Name="Clean">
<MSBuild Projects="@(SolutionFile)"
BuildInParallel="true"
Properties="%(Properties)"
Targets="Clean" />

</Target>

<Target Name="NuGetRestore" DependsOnTargets="NuGetRestoreDist">
<MSBuild Projects="@(TestSolution)"
BuildInParallel="true"
Properties="%(Properties)"
Targets="Restore"/>
</Target>

<Target Name="Build" DependsOnTargets="BuildDist;NuGetRestore">

<MSBuild Projects="@(TestSolution)"
BuildInParallel="true"
Properties="%(Properties)"/>

</Target>

<Target Name="Clean" DependsOnTargets="CleanDist">

<MSBuild Projects="@(TestSolution)"
BuildInParallel="true"
Properties="%(Properties)"
Targets="Clean" />

</Target>

<Target Name="WindowsNuGetPack" DependsOnTargets="BuildDist" Condition="'$(OS)' == 'Windows_NT'">
<Target Name="WindowsNuGetPack" DependsOnTargets="Build" Condition="'$(OS)' == 'Windows_NT'">
<RemoveDir Directories="zeroc.ice.net" />

<!-- Build iceboxnet with net8.0 target framework (default) -->
Expand Down Expand Up @@ -139,7 +106,7 @@
WorkingDirectory="zeroc.ice.net"/>
</Target>

<Target Name="UnixNuGetPack" DependsOnTargets="BuildDist" Condition="'$(OS)' != 'Windows_NT'">
<Target Name="UnixNuGetPack" DependsOnTargets="Build" Condition="'$(OS)' != 'Windows_NT'">
<RemoveDir Directories="zeroc.ice.net" />
<!-- Build iceboxnet with net8.0 target framework (default) -->
<MSBuild Projects="$(MSBuildThisFileDirectory)..\src\IceBoxNet\IceBoxNet.csproj"
Expand Down
2,117 changes: 2,117 additions & 0 deletions csharp/msbuild/ice.sln

Large diffs are not rendered by default.

2,663 changes: 0 additions & 2,663 deletions csharp/msbuild/ice.test.sln

This file was deleted.

4 changes: 2 additions & 2 deletions csharp/test/Glacier2/router/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<Reference Include="../../../../../lib/net8.0/Glacier2.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
<ProjectReference Include="../../../../../src/Glacier2/Glacier2.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
4 changes: 2 additions & 2 deletions csharp/test/Glacier2/router/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<Reference Include="../../../../../lib/net8.0/Glacier2.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
<ProjectReference Include="../../../../../src/Glacier2/Glacier2.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<Reference Include="../../../../../lib/net8.0/Glacier2.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
<ProjectReference Include="../../../../../src/Glacier2/Glacier2.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<Reference Include="../../../../../lib/net8.0/Glacier2.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
<ProjectReference Include="../../../../../src/Glacier2/Glacier2.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/admin/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/admin/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/ami/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/ami/msbuild/collocated/collocated.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/ami/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/assemblies/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/assemblies/msbuild/core/core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/assemblies/msbuild/user/user.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/background/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/background/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/binding/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/binding/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/defaultValue/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/dictMapping/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/dictMapping/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/echo/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/enums/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/enums/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/exceptions/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/exceptions/msbuild/server/server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion csharp/test/Ice/executor/msbuild/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</When>
<Otherwise>
<ItemGroup>
<Reference Include="../../../../../lib/net8.0/Ice.dll" />
<ProjectReference Include="../../../../../src/Ice/Ice.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
Loading

0 comments on commit 58d8716

Please sign in to comment.