You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,14 @@ Here's an example from [kOS](https://github.com/KSP-KOS/KOS/blob/22808556c090ebe
39
39
40
40
Note that `KSPCommon.targets` makes use of `KSPCommon.props` for advanced users, which sets all the below properties but does not include the build targets. If you only want the properties and not the targets, you can use `KSPCommon.props` instead.
41
41
42
+
### Customization
43
+
44
+
Properties can be customized at several points:
45
+
46
+
- Per-project properties should be set in the `.csproj` file before importing `KSPCommon.targets`
47
+
- Per-mod properties for mods with more than one `.csproj` file should be set in `$(SolutionName).props` which will be imported by `KSPCommon.props`
48
+
- Per-user properties should be set in `KSPCommon.props.user`. This is usually where you want to set the path to your KSP installation. You should have `.user` files added to your `.gitignore` file.
49
+
42
50
The following properties are exposed to be customized per mod, project, or user. Properties that represent directories should *not* include a trailing slash.
Used by the `CKANInstall` target to set additional KSP versions to treat as compatible when installing dependencies.
69
77
70
-
### Customization
71
-
72
-
Properties can be customized at several points:
73
-
74
-
- Per-project properties should be set in the `.csproj` file before importing `KSPCommon.targets`
75
-
- Per-mod properties for mods with more than one `.csproj` file should be set in `$(SolutionName).props` which will be imported by `KSPCommon.props`
76
-
- Per-user properties should be set in `KSPCommon.props.user`. This is usually where you want to set the path to your KSP installation. You should have `.user` files added to your `.gitignore` file.
77
-
78
78
### Referencing Dependencies
79
79
80
-
Referencing assemblies (DLLs) from other mods should be done with a HintPath relative to `$(KSPRoot)`. In addition, you can include the CKAN identifier of the mod to make it installable with the `CKANInstall` target.
80
+
Referencing assemblies (DLLs) from other mods should be done with a HintPath relative to `$(KSPRoot)`. These should be placed *after* importing `KSPCommon.targets` so that `$(KSPRoot)` will be defined. In addition, you can include the CKAN identifier of the mod to make it installable with the `CKANInstall` target.
81
81
82
82
Example from [Shabby](https://github.com/KSPModdingLibs/Shabby/blob/e61ec5084b83c7e6941e62f43439cdd28fe867e6/Source/Shabby.csproj#L30):
0 commit comments