mirror of
https://github.com/BepInEx/BepInEx.ConfigurationManager.git
synced 2026-11-21 07:29:24 -10:00
65 lines
2.9 KiB
XML
65 lines
2.9 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<!-- This is the master version, only change this one -->
|
|
<Version>19.1</Version>
|
|
|
|
<!-- Sets the 'Product name' field on the dll file -->
|
|
<Product>BepInEx.ConfigurationManager</Product>
|
|
<!-- Sets the 'File description' field on the dll file -->
|
|
<AssemblyTitle>Universal in-game configuration manager for BepInEx plugins</AssemblyTitle>
|
|
<!-- Sets the 'Company' field on the dll file -->
|
|
<Authors>https://github.com/BepInEx/BepInEx.ConfigurationManager</Authors>
|
|
<!-- Sets the 'Copyright' field on the dll file -->
|
|
<Copyright>Copyright © 2019 / LGPL-3.0</Copyright>
|
|
|
|
<Deterministic>true</Deterministic>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>embedded</DebugType>
|
|
<FileAlignment>512</FileAlignment>
|
|
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<Nullable>disable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<!-- Create a release zip file (after successful Release build) -->
|
|
<Target Name="CreateReleaseZip" AfterTargets="Build" Condition="'$(Configuration)' == 'Release' And '$(AssemblyName)' == 'ConfigurationManager'">
|
|
<PropertyGroup>
|
|
<CopyDir>$(OutputPath)\..\TEMP_COPY_$(AssemblyName)</CopyDir>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<BuildFiles Include="$(OutputPath)\*"/>
|
|
<TranslationFiles Include="$(SolutionDir)\Translations\**\*"/>
|
|
</ItemGroup>
|
|
|
|
<RemoveDir Directories="$(CopyDir)" />
|
|
<Copy DestinationFolder="$(CopyDir)\BepInEx\plugins\ConfigurationManager" SourceFiles="@(BuildFiles)" />
|
|
<Copy DestinationFolder="$(CopyDir)\BepInEx\Translation\%(RecursiveDir)" SourceFiles="@(TranslationFiles)" />
|
|
|
|
<!-- https://learn.microsoft.com/en-us/visualstudio/msbuild/zipdirectory-task?view=vs-2022 -->
|
|
<ZipDirectory SourceDirectory="$(CopyDir)" DestinationFile="$(OutputPath)\..\BepInEx.ConfigurationManager$(ZipPostfix)_v$(Version).zip" Overwrite="true" />
|
|
<RemoveDir Directories="$(CopyDir)" />
|
|
</Target>
|
|
|
|
<!-- Allow using of the csproj properties defined above in the code itself -->
|
|
<Target Name="AddGeneratedConstantsFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedConstantsFile.cs">
|
|
<PropertyGroup>
|
|
<GeneratedText>
|
|
<![CDATA[namespace $(RootNamespace) {
|
|
internal static class Constants {
|
|
public const string Version = "$(Version)"%3B
|
|
public const string Name = "$(Product)"%3B
|
|
public const string Description = "$(AssemblyTitle)"%3B
|
|
public const string Website = "$(Authors)"%3B
|
|
public const string Copyright = "$(Copyright)"%3B
|
|
}
|
|
}]]>
|
|
</GeneratedText>
|
|
<GeneratedFilePath>$(IntermediateOutputPath)GeneratedConstantsFile.cs</GeneratedFilePath>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="$(GeneratedFilePath)" />
|
|
<FileWrites Include="$(GeneratedFilePath)" />
|
|
</ItemGroup>
|
|
<WriteLinesToFile Lines="$(GeneratedText)" File="$(GeneratedFilePath)" WriteOnlyWhenDifferent="true" Overwrite="true" />
|
|
</Target>
|
|
</Project> |