build/common.props
<!--EXTERNAL_PROPERTIES: TargetFramework;BANNERLORD_GAME_DIR;BANNERLORD_STABLE_DIR;BANNERLORD_BETA_DIR;GITHUB_ACTIONS-->
<Project>
<PropertyGroup>
<GameFolder>$(BANNERLORD_GAME_DIR)</GameFolder>
<GameVersion>1.0.0</GameVersion>
<GameVersionFlat>$([System.String]::Copy('$(GameVersion)').Replace('.',''))</GameVersionFlat>
<GameVersionConstant>v$(GameVersionFlat)</GameVersionConstant>
<NoWarn>$(NoWarn);BHA0001;BHA0002;BHA0003;BHA0004;BHA0005;BHA0006;MSB4011;NU1701;</NoWarn>
</PropertyGroup>
<!--Development Variables-->
<PropertyGroup>
<Version>1.5.7</Version>
<HarmonyVersion>2.2.2</HarmonyVersion>
<BUTRSharedVersion>3.0.0.139</BUTRSharedVersion>
<BUTRModuleManagerVersion>5.0.222</BUTRModuleManagerVersion>
<HarmonyExtensionsVersion>3.2.0.77</HarmonyExtensionsVersion>
<HarmonyAnalyzerVersion>1.0.1.50</HarmonyAnalyzerVersion>
<LauncherManagerVersion>1.0.107</LauncherManagerVersion>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup>
<Authors>BUTR Team</Authors>
<Product>Bannerlord Software Extension (BLSE) for Bannerlord Launcher</Product>
</PropertyGroup>
<PropertyGroup Condition="$(GameFolder) == ''">
<!--Bannerlord's Root Folder. Leave empty if you want it to be tried to be autoresolved.-->
<GameFolder>$(BANNERLORD_GAME_DIR)</GameFolder>
</PropertyGroup>
<!--GitHub Actions-->
<PropertyGroup Condition="$(GITHUB_ACTIONS) == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!--NuGet SorceLink-->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<!--SorceLink-->
<PropertyGroup>
<Deterministic>true</Deterministic>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<!--SorceLink-->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<!--CI Builds-->
<ItemGroup Condition="$(TargetFramework) == 'net472' AND $(OS) != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<PackageReference Include="BUTR.Harmony.Analyzer" Version="$(HarmonyAnalyzerVersion)" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
</Project>