Hi Shaojun,
To manage and track the version of a file in a way that integrates seamlessly with C# applications, you can consider using a configuration management file for robust version tracking.
To perform the above you can use a configuration file(‘appversioning.json’) and store the versioning of the files as appropriate key value pairs. To read the configuration in C#, you can use the ‘AddJsonFile()’ method from the ‘Microsoft.Extensions.Configuration’ to add the JSON file and use the corresponding versioning information.
Some other ways to manage and track CTF versions can be to:
- Use an external version file.
- Embedded version information in metadata using assembly attributes.
- Database management of versions
For more information on the ‘addJsonFile’ method refer the following documentation:
Hope this helps.