# Generating Version Files KSPBuildTools can generate .version files for use with KSP-AVC and CKAN To use, add the following to your csproj, filling in the URLs and paths for your own mod: ```xml $(RepoRootPath)GameData/MyMod/mymod.version https://github.com/username/repo/releases/latest/download/mymod.version https://github.com/username.repo/releases/latest ``` The resulting file looks like this: ```json { "NAME": "my-mod", "VERSION": "1.0.0", "URL": "https://github.com/username/repo/releases/latest/download/mymod.version", "DOWNLOAD": "https://github.com/username.repo/releases/latest", "KSP_VERSION": "1.12", "KSP_VERSION_MIN": "1.8", "KSP_VERSION_MAX": "1.12" } ``` The `` node is where the resulting .version file will be generated when your mod is compiled. It should be added to your .gitignore file. The `VERSION` field is filled in with the `$(FileVersion)` MSBuild variable. This can be overridden with a `` metadata node within ``. The `KSP_VERSION`, `KSP_VERSION_MIN` and `KSP_VERSION_MAX` fields default to compatibility with ksp 1.8 to 1.12. These values can be overridden with the ``, `` and `` metadata fields. ## Starting from an existing file The `include` value can also be set to a json file including any other values you may want to include, with just the above properties updated before writing to the destination ```xml $(RepoRootPath)GameData/MyMod/mymod.version ```