Skip to content

Commit efbf26e

Browse files
10-days-till-xmas10_days_till_xmasManlyMarco
authored
Use <GUID> property if present for BepInExPluginGuid (#20)
* Use <GUID> property if present for BepInExPluginGuid * Add GUID tag info to PluginInfoProps readme --------- Co-authored-by: 10_days_till_xmas <x10-days-till-xmas@outlook.com> Co-authored-by: ManlyMarco <39247311+ManlyMarco@users.noreply.github.com>
1 parent 93b638d commit efbf26e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

BepInEx.PluginInfoProps/BepInEx.PluginInfoProps.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project>
22
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedFile.cs">
33
<PropertyGroup>
4+
<BepInExPluginGuid Condition="'$(BepInExPluginGuid)' == ''">$(GUID)</BepInExPluginGuid>
45
<BepInExPluginGuid Condition="'$(BepInExPluginGuid)' == ''">$(AssemblyName)</BepInExPluginGuid>
56
<BepInExPluginName Condition="'$(BepInExPluginName)' == ''">$(Product)</BepInExPluginName>
67
<BepInExPluginVersion Condition="'$(BepInExPluginVersion)' == ''">$(Version)</BepInExPluginVersion>

BepInEx.PluginInfoProps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Generates `MyPluginInfo.cs` based on csproj tags.
77
Define the following properties in your `csproj`:
88

99
```xml
10-
<AssemblyName>Example.Plugin</AssemblyName>
10+
<GUID>Example.Plugin</GUID> <!-- Optional. If missing, <AssemblyName> is used as GUID instead. -->
1111
<Product>My first plugin</Product>
1212
<Version>1.0.0</Version>
1313
```

0 commit comments

Comments
 (0)