Skip to content

Commit 46af712

Browse files
committed
change KSPCommon.props.user to $(SolutionName).props.user
1 parent 28379a3 commit 46af712

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

KSPCommon.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</PropertyGroup>
2424

2525
<!--Import a props.user file if it exists, so that KSPRoot can be set globally for the whole mod if desired-->
26-
<Import Condition=" Exists('KSPCommon.props.user') " Project="KSPCommon.props.user"/>
26+
<Import Condition=" Exists('$(SolutionDir)$(SolutionName).props.user') " Project="$(SolutionDir)$(SolutionName).props.user"/>
2727

2828
<!--Parse KSP platform-specific paths -->
2929
<PropertyGroup Condition = " '$(ManagedRelativePath)' == '' ">

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,17 @@ Note that `KSPCommon.targets` makes use of `KSPCommon.props` for advanced users,
4343

4444
Properties can be customized at several points:
4545

46+
#### Canonical properties (committed to version control)
47+
4648
- 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+
- Properties for the whole mod should be set in `$(SolutionName).props` which will be imported by `KSPCommon.props`
50+
51+
#### Per-User properties (not committed to version control)
52+
53+
- Per-user per-project properties should be set in the `.props.user` file adjacent to each csproj file. This is typically where you set the `$(ReferencePath)` pointing to your KSP install (this can be set from inside VS!)
54+
- Per-user properties for the whole mod should be set in `$(SolutionName).props.user`. If you have multiple projects in the solution, you can set `$(KSPRoot)` in here so that you don't have to set it for each project.
55+
56+
You should have `.user` files added to your `.gitignore` file.
4957

5058
The following properties are exposed to be customized per mod, project, or user. Properties that represent directories should *not* include a trailing slash.
5159

0 commit comments

Comments
 (0)