Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BepInEx.PluginInfoProps/BepInEx.PluginInfoProps.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedFile.cs">
<PropertyGroup>
<BepInExPluginGuid Condition="'$(BepInExPluginGuid)' == ''">$(GUID)</BepInExPluginGuid>
<BepInExPluginGuid Condition="'$(BepInExPluginGuid)' == ''">$(AssemblyName)</BepInExPluginGuid>
<BepInExPluginName Condition="'$(BepInExPluginName)' == ''">$(Product)</BepInExPluginName>
<BepInExPluginVersion Condition="'$(BepInExPluginVersion)' == ''">$(Version)</BepInExPluginVersion>
Expand Down
2 changes: 1 addition & 1 deletion BepInEx.PluginInfoProps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Generates `MyPluginInfo.cs` based on csproj tags.
Define the following properties in your `csproj`:

```xml
<AssemblyName>Example.Plugin</AssemblyName>
<GUID>Example.Plugin</GUID> <!-- Optional. If missing, <AssemblyName> is used as GUID instead. -->
<Product>My first plugin</Product>
<Version>1.0.0</Version>
```
Expand Down
Loading