Skip to content

Commit

Permalink
Add basic support for Directory.Build.props
Browse files Browse the repository at this point in the history
Only supports `Directory.Build.props` in base directory.
Should fix jellyfin/jellyfin#11238
Related to changes in jellyfin/jellyfin-meta-plugins#27
See also jellyfin/jellyfin-plugin-webhook#116 for PR adding this file.
See https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 for documentation on the file.
  • Loading branch information
oddstr13 committed Mar 29, 2024
1 parent c50dc5d commit b7a2d62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jprm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ def build_plugin(path, output=None, build_cfg=None, version=None, dotnet_config=
projects.append(os.path.join(path, fn))
break

dbp_file = os.path.join(path, "Directory.Build.props")
if os.path.exists(dbp_file):
projects.append(dbp_file)

for project in projects:
set_project_version(project, version=version)
set_project_framework(project, framework=dotnet_framework)
Expand Down

0 comments on commit b7a2d62

Please sign in to comment.