Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ jobs:
- name: Restore
run: dotnet restore ${{ env.SolutionFile }}

- name: Build submodule
shell: cmd
run: BuildSubmodule.bat

- name: Build Release
if: inputs.release
run: dotnet build ${{ env.SolutionFile }} -c ${{ inputs.configuration }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## Version 7.35.0 - 2026-09-25

### Added

- Added `ScheduledActivity` and `ScheduledActivities` protos in `Common\Activity` proto.
Comment thread
Copilot marked this conversation as resolved.

## Version 7.34.0 - 2026-09-23

### Added
Expand Down
18 changes: 11 additions & 7 deletions src/ONE.Models.CSharp/BuildSubmodule.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
@rem Clean up temporary flat proto files and previous generated cs files for a clean generation
IF EXIST "..\ONE.Interfaces.ProtocolBuffers\proto\flat" rd /q /s "..\ONE.Interfaces.ProtocolBuffers\proto\flat"
IF EXIST "generated" rd /q /s "generated"

set "BASE_DIR=%~dp0"
cd "%BASE_DIR%" || exit /b 1
IF EXIST "..\ONE.Interfaces.ProtocolBuffers\proto\flat" rd /q /s "..\ONE.Interfaces.ProtocolBuffers\proto\flat" || exit /b 1
IF EXIST "generated" rd /q /s "generated" || exit /b 1

@rem Generate all the C# classes from proto files
cd ..\ONE.Interfaces.ProtocolBuffers\generators
Powershell.exe -executionpolicy Bypass -File gen_all.ps1
Powershell.exe -executionpolicy Bypass -File gen_all.ps1 || exit /b 1

@rem Create folder
mkdir ..\..\ONE.Models.CSharp\generated
mkdir ..\..\ONE.Models.CSharp\generated || exit /b 1

@rem Copy to local folder
copy ..\proto\flat\out\csharp\* ..\..\ONE.Models.CSharp\generated
copy ..\proto\flat\out\csharp\* ..\..\ONE.Models.CSharp\generated || exit /b 1

if errorlevel 1 exit /b %errorlevel%

exit /b 0
15 changes: 14 additions & 1 deletion src/ONE.Models.CSharp/ONE.Models.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<!--For Release packages update
the VersionPrefix and remove any VersionSuffix-->
<VersionPrefix>7.34.0</VersionPrefix>
<VersionPrefix>7.35.0</VersionPrefix>
<!--For Feature packages update the VersionSuffix with the jira ticket number-->
<VersionSuffix></VersionSuffix>
<LangVersion>latest</LangVersion>
Expand All @@ -27,4 +27,17 @@
<PackageReference Include="Google.Protobuf" Version="3.19.1" />
</ItemGroup>

<Target
Name="BuildProtocolBufferSubmodule"
BeforeTargets="CoreCompile"
Condition="'$(BuildingProject)' == 'true'">
<Exec
Command="call &quot;$(MSBuildProjectDirectory)\BuildSubmodule.bat&quot;"

@mathitharmalingam-aqi mathitharmalingam-aqi Sep 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The batch file usage is not new - it was part of the github action.

WorkingDirectory="$(MSBuildProjectDirectory)" />
<ItemGroup>
<Compile Remove="generated\**\*.cs" />
<Compile Include="generated\**\*.cs" />
</ItemGroup>
</Target>

</Project>
Loading