Skip to content

Dev#149

Merged
MingboPeng merged 5 commits intomasterfrom
dev
Sep 14, 2025
Merged

Dev#149
MingboPeng merged 5 commits intomasterfrom
dev

Conversation

@MingboPeng
Copy link
Owner

  • Update console path for net48 and net8 in release.yaml
  • Add steps to create net8-specific plugin zip
  • Update assets in .releaserc.json for net8 plugin
  • Modify Makefile to build and separate net8 and net48 files

- Modify rm commands to include both lowercase and uppercase 'OpenStudio' patterns
- Ensure proper cleanup of both plugin and net48 directories
…eme for net48

- Add GFuncItem class to IB_GroundHeatExchangerVertical for better G-function handling
- Implement IEquatable interface for GFuncItem and PlantEquipmentOperationSchemeItem
- Replace tuple with custom class in IB_PlantEquipmentOperationSchemeBase
- Update related methods to use new class structures
- Update GetValidData method to use out parameter instead of tuple
- Refactor GetObjsBeforeAndAfterBranch to use out parameters
- Remove unnecessary tuple usage in various methods
- Make minor code cleanup and formatting improvements
- Removed System.ValueTuple package reference from Ironbug.HVAC.csproj
- This change simplifies the project dependencies and potentially improves build performance
- Update console path for net48 and net8 in release.yaml
- Add steps to create net8-specific plugin zip
- Update assets in .releaserc.json for net8 plugin
- Modify Makefile to build and separate net8 and net48 files
@MingboPeng MingboPeng merged commit 477b9a9 into master Sep 14, 2025
1 of 2 checks passed
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @MingboPeng, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily updates the project's build and release infrastructure to accommodate .NET 8, ensuring that both .NET 4.8 and .NET 8 specific artifacts are correctly generated and packaged. Concurrently, it undertakes a significant refactoring effort in the C# codebase to eliminate the use of ValueTuples, replacing them with more explicit out parameters or dedicated data structures for enhanced maintainability and type safety.

Highlights

  • Build System Updates for .NET 8: The build and release configurations have been updated to properly support and generate artifacts for .NET 8, including separate plugin zips and console paths.
  • C# Code Refactoring: ValueTuple Removal: Extensive refactoring has been performed across several C# files to replace the use of ValueTuples with explicit 'out' parameters or custom nested classes, improving code clarity and removing the System.ValueTuple dependency.
  • Improved Data Encapsulation: New nested classes, GFuncItem and PlantEquipmentOperationSchemeItem, were introduced to provide better encapsulation for related data previously handled by ValueTuples.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for .NET 8 builds and refactors the C# codebase to enhance compatibility by removing ValueTuple. The build script modifications in Makefile and .releaserc.json are well-aligned with creating new build artifacts for .NET 8. The C# refactoring is a significant improvement, replacing tuples with out parameters or dedicated data classes, which is beneficial for serialization and cross-framework support. I have identified a couple of areas for improvement: a syntax issue in the Makefile's rm commands and some leftover debugging code in IB_PlantLoop.cs. Addressing these points will enhance the codebase's robustness and clarity. Overall, these are positive changes for the project.

Comment on lines +22 to +23
rm ./installer/plugin-net8/openstudio* ./installer/plugin-net8/OpenStudio* -r
rm ./installer/plugin/openstudio* ./installer/plugin/OpenStudio* -r

Choose a reason for hiding this comment

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

high

The -r option for the rm command is incorrectly placed after the file paths. While some rm implementations might tolerate this, it is not standard POSIX behavior and can fail on other systems. Options should precede file arguments. It is also good practice to use the -f flag to suppress errors if the files or directories to be removed do not exist.

	rm -rf ./installer/plugin-net8/openstudio* ./installer/plugin-net8/OpenStudio*
	rm -rf ./installer/plugin/openstudio* ./installer/plugin/OpenStudio*

Comment on lines +208 to +215
{
//var otherJ = other?.ToJson();
//var thisJ = this?.ToJson();

return false;
//var same = this.Equals(other);
//return false;
}

Choose a reason for hiding this comment

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

medium

This block contains commented-out debugging code and unreachable statements. This should be cleaned up to improve code readability and maintainability.

            {
                return false;
            }

@MingboPeng
Copy link
Owner Author

🎉 This PR is included in version 1.19.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant