Skip to content

Commit 85e80ef

Browse files
committed
build c-sharp-example at every build
1 parent 3d6316e commit 85e80ef

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.github/workflows/build-test-distribute.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ jobs:
204204

205205
- name: Build NuGet package
206206
run: nuget.exe pack Package.nuspec -OutputFileNamesWithoutVersion
207-
208-
- name: Build .NET examples
209-
run: msbuild -m source\examples\c-sharp-examples\c-sharp-examples.sln -p:Configuration=${{ matrix.config }}
210207

211208
- name: Upload NuGet Package
212209
uses: actions/upload-artifact@v4

.github/workflows/build-test-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ jobs:
164164
- name: Build .NET
165165
if: matrix.runner == 'windows-2022'
166166
run: msbuild -m source\MeshLibDotNet.sln -p:Configuration=${{ matrix.config }}
167+
168+
- name: Build .NET examples
169+
run: msbuild -m source\examples\c-sharp-examples\c-sharp-examples.sln -p:Configuration=${{ matrix.config }}
167170

168171
- name: Build MRBind
169172
if: ${{inputs.mrbind}}

examples/c-sharp-examples/c-sharp-examples.csproj

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,26 @@
66
<RootNamespace>c_sharp_examples</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
9-
<Platforms>AnyCPU;x64</Platforms>
10-
<RestoreAdditionalProjectSources>
11-
$(MSBuildThisFileDirectory)/../../
12-
</RestoreAdditionalProjectSources>
9+
<Platforms>x64</Platforms>
10+
<BaseOutputPath>..\..\source</BaseOutputPath>
11+
</PropertyGroup>
12+
13+
<PropertyGroup>
14+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
15+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
16+
</PropertyGroup>
17+
18+
<PropertyGroup>
19+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
20+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
21+
<PlatformTarget>x64</PlatformTarget>
22+
<Nullable>enable</Nullable>
1323
</PropertyGroup>
1424

1525
<ItemGroup>
16-
<PackageReference Include="MeshLib" Version="*-*" />
26+
<Reference Include="MRDotNet">
27+
<HintPath>..\..\source\x64\Release\MRDotNet.dll</HintPath>
28+
</Reference>
1729
</ItemGroup>
1830

1931
</Project>

0 commit comments

Comments
 (0)