Update .gitlab-ci.yml, Borepin/Borepin.Android/Borepin.Android.csproj files

This commit is contained in:
Kai Kriegel 2021-09-17 00:46:10 +00:00
parent 114b4434bd
commit e6899ac145
2 changed files with 9 additions and 2 deletions

View File

@ -32,6 +32,8 @@ variables:
DOTNET_PATH: 'C:\Program Files\dotnet\dotnet.exe' DOTNET_PATH: 'C:\Program Files\dotnet\dotnet.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe' MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe'
NUNIT_PATH: 'C:\ProgramData\chocolatey\bin\nunit3-console.exe' NUNIT_PATH: 'C:\ProgramData\chocolatey\bin\nunit3-console.exe'
LC_ALL: 'en_US.UTF-8'
LANG: 'en_US.UTF-8'
stages: stages:
- build - build

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -178,4 +178,9 @@
<UserProperties TriggeredFromHotReload="False" /> <UserProperties TriggeredFromHotReload="False" />
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
</Project> </Project>
<Target Name="BeforeBuild" Condition=" '$(CI)' == 'true' ">
<XmlPoke XmlInputPath="Properties\AndroidManifest.xml" Namespaces="&lt;Namespace Prefix='android' Uri='http://schemas.android.com/apk/res/android' /&gt;" Query="manifest/@android:versionCode" Value="$(CI_COMMIT_SHORT_SHA)" />
<XmlPoke XmlInputPath="Properties\AndroidManifest.xml" Namespaces="&lt;Namespace Prefix='android' Uri='http://schemas.android.com/apk/res/android' /&gt;" Query="manifest/@android:versionName" Value="2.0.$(CI_COMMIT_SHORT_SHA)" />
</Target>