-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (33 loc) · 1.53 KB
/
Directory.Build.props
File metadata and controls
34 lines (33 loc) · 1.53 KB
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>
<PropertyGroup>
<Version>0.9.60</Version>
<!-- API Configuration - Change these URLs to use your own instance -->
<ApiBaseUrl>https://unitygametranslator.asymptomatikgames.com/api/v1</ApiBaseUrl>
<WebsiteBaseUrl>https://unitygametranslator.asymptomatikgames.com</WebsiteBaseUrl>
<SseBaseUrl>https://sse-unitygametranslator.asymptomatikgames.com</SseBaseUrl>
</PropertyGroup>
<!-- Generate PluginInfo.g.cs with version and API constants before build -->
<Target Name="GenerateVersionFile" BeforeTargets="CoreCompile">
<PropertyGroup>
<VersionFileContent>
namespace UnityGameTranslator {
internal static class PluginInfo {
public const string Version = "$(Version)"%3B
/// <summary>Base URL for API calls (e.g., https://example.com/api/v1)</summary>
public const string ApiBaseUrl = "$(ApiBaseUrl)"%3B
/// <summary>Base URL for website links (e.g., https://example.com)</summary>
public const string WebsiteBaseUrl = "$(WebsiteBaseUrl)"%3B
/// <summary>Base URL for SSE streams (e.g., https://sse-example.com)</summary>
public const string SseBaseUrl = "$(SseBaseUrl)"%3B
}
}
</VersionFileContent>
</PropertyGroup>
<WriteLinesToFile File="$(IntermediateOutputPath)PluginVersion.g.cs"
Lines="$(VersionFileContent)"
Overwrite="true" />
<ItemGroup>
<Compile Include="$(IntermediateOutputPath)PluginVersion.g.cs" />
</ItemGroup>
</Target>
</Project>