Skip to content

Commit

Permalink
force build update (#537)
Browse files Browse the repository at this point in the history
* GitVersion.MsBuild workaround
  • Loading branch information
mozts2005 authored Oct 9, 2021
1 parent bddb6a8 commit bebd2ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ resources:
variables:
- name: BuildConfiguration
value: 'Release'
- name: System.Debug
value: true
- name: TF_BUILD
value: 'true'
#- name: System.Debug
# value: true
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: true
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
Expand Down Expand Up @@ -51,13 +53,15 @@ jobs:
command: build
projects: 'src/ZendeskApi_v2.sln'
arguments: '-c $(BuildConfiguration)'
env:
TF_BUILD: true

- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: 'tests/ZendeskApi_v2.Tests/ZendeskApi_v2.Tests.csproj'
arguments: '--no-build -c $(BuildConfiguration) -- NUnit.StopOnError=true'
arguments: '--no-build -c $(BuildConfiguration)'
env:
admin__id: $(Admin.ID)
admin__email: $(Admin.Email)
Expand Down
10 changes: 5 additions & 5 deletions src/ZendeskApi_v2/ZendeskApi_v2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<!--<PackageReference Include="GitVersionTask" Version="5.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>-->
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
</ItemGroup>

Expand All @@ -60,4 +55,9 @@
<ItemGroup>
<None Include="..\..\tools\icon\lotus.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<Target Name="Update Version" AfterTargets="GetVersion" Condition="'$(TF_BUILD)' == 'true' And '$(TargetFramework)'=='netstandard2.1'">
<Message Text="Version = $(GITVERSION_FullSemVer)" Importance="High" />
<Message Text="##vso[build.updatebuildnumber]$(GITVERSION_FullSemVer)" Importance="High" />
</Target>
</Project>

0 comments on commit bebd2ea

Please sign in to comment.