- Download and install Visual Studio 2022 Community.
- No need to select workloads; Visual Studio will handle it automatically.
- Close Visual Studio Installer to ensure a smooth installation experience for workloads.
- If using Visual Studio 2022 17.9 preview, skip step 5, as automatic extension installation is supported in this version.
- Use git to clone the project
https://github.com/DGP-Studio/Snap.Hutao.git
to your local device. - Switch to the
develop
branch using git. - Open the project solution with your Visual Studio. Visual Studio will prompt you to install the necessary workloads, closing and reopening automatically.
- (For Visual Studio 2022 17.8) Install the Single-project MSIX Packaging Tools for VS 2022 provided by Microsoft in Visual Studio marketplace.
- Open the project solution with your Visual Studio, and you are ready to go.
- All code-related changes from authors' own branches are only allowed be merged to
develop
branch - Please use keywords to link your PR or commits with issues, so issues can be automatically closed once commits are merged into
main
branch.
Once the code in updated in develop
and main
branches, an Azure Pipeline CI script will build the latest code to Snap Hutao Alpha
package. Once the package is built, it will be released on GitHub Release page as a pre-released package.
You need to install Snap.Hutao.CI.cer certificate to your local machine, and then install the msix package in the release.
*If the latest release does not contains attached file, that means package is still in uploading process.
To help users solve problems faster and increase developers' efficiency in solving problems, Snap Hutao provides detailed documentation to explain common problems and issue templates to guide users to report program problems by submitting issues.
Before submitting a new issue, you should check the following pages:
- FAQ Document
- Common Program Exceptions Document
- Current Opened BUG Report Issues
When starting a new issue, please use the issue templates:
- Describe your issue in details to help developers to reproduce the issue
- Your description of reproduction should be a step-by-step story
- If your issue is about program crash
- Remember to provide your Device ID
- Check Windows Event Viewer, and attach associated
.NET Error
details in the issue body
Snap Hutao Document site is stored in repository DGP-Studio/Snap.Hutao.Docs, you can process the following steps to test the site in your local device:
- Download and install NodeJS 18
- Clone the repository
- Run
npm install
in the root directory of the document project - Run
npm run docs:dev
to start test on 8080 port
Snap.Hutao.Docs project structure is designed as multiple languages site. Each language has its independent folder under docs
directory.
If you wish to add another language document, you can start an issue in document repository to ask developer to setup an environment for you, or you can process the following steps by yourself:
- make a copy of
zh
folder, rename the new folder as the new language's code - Start your translation work in the new language folder
- In
docs/.vuepress/sidebar
folder, duplicatezh.ts
file- Rename the file to
{language_code}.ts
- In the line 4, change
/zh/
to/{language_code}/
- Translate all
text
field
- Rename the file to
- In
docs/.vuepress/navbar
folder, duplicatezh.ts
file- Rename the file to
{language_code}.ts
- Replace all
/zh/
to/{language_code}/
- Translate all
text
field
- Rename the file to
- In
docs/.vuepress/config.ts
file, add your language information inlocales
andplugins/docsearchPlugin/locales
dictionary - In
docs/.vuepress/theme.ts
file, add your language information inlocales
dictionary