-
Notifications
You must be signed in to change notification settings - Fork 297
/
Directory.Build.props
34 lines (32 loc) · 1.6 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<Project>
<!-- Use these properties to change version numbers globally -->
<PropertyGroup>
<!-- Plugin version -->
<Version>5.4.2</Version>
<!-- XUnity.Common version -->
<VersionCommon>1.0.3</VersionCommon>
<!-- XUnity.AutoTranslator.Plugin.ExtProtocol version -->
<VersionExtProtocol>1.0.1</VersionExtProtocol>
<!-- XUnity.ResourceRedirector version -->
<VersionRedirector>2.1.0</VersionRedirector>
</PropertyGroup>
<PropertyGroup>
<Authors>gravydevsupreme, Bepis, others at https://github.com/bbepis/XUnity.AutoTranslator</Authors>
<Copyright>Copyright © 2018 / MIT License</Copyright>
<PackageReleaseNotes>https://github.com/bbepis/XUnity.AutoTranslator/blob/master/CHANGELOG.md</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/bbepis/XUnity.AutoTranslator</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>unity;xunity</PackageTags>
</PropertyGroup>
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedFile.cs">
<PropertyGroup>
<GeneratedText><![CDATA[namespace $(RootNamespace) { internal static class GeneratedInfo { public const string PROJECT_VERSION = "$(Version)"%3B } }]]></GeneratedText>
<GeneratedFilePath>$(IntermediateOutputPath)GeneratedInfo.cs</GeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GeneratedFilePath)" />
<FileWrites Include="$(GeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile Lines="$(GeneratedText)" File="$(GeneratedFilePath)" Overwrite="true" />
</Target>
</Project>