File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ resources:
88variables :
99 - name : BuildConfiguration
1010 value : ' Release'
11- - name : System.Debug
12- value : true
11+ - name : TF_BUILD
12+ value : ' true'
13+ # - name: System.Debug
14+ # value: true
1315 - name : DOTNET_CLI_TELEMETRY_OPTOUT
1416 value : true
1517 - name : DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -51,13 +53,15 @@ jobs:
5153 command : build
5254 projects : ' src/ZendeskApi_v2.sln'
5355 arguments : ' -c $(BuildConfiguration)'
56+ env :
57+ TF_BUILD : true
5458
5559 - task : DotNetCoreCLI@2
5660 displayName : ' dotnet test'
5761 inputs :
5862 command : test
5963 projects : ' tests/ZendeskApi_v2.Tests/ZendeskApi_v2.Tests.csproj'
60- arguments : ' --no-build -c $(BuildConfiguration) -- NUnit.StopOnError=true '
64+ arguments : ' --no-build -c $(BuildConfiguration)'
6165 env :
6266 admin__id : $(Admin.ID)
6367 admin__email : $(Admin.Email)
Original file line number Diff line number Diff line change 4545 <PrivateAssets >all</PrivateAssets >
4646 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
4747 </PackageReference >
48-
49- <!-- <PackageReference Include="GitVersionTask" Version="5.0.1">
50- <PrivateAssets>all</PrivateAssets>
51- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
52- </PackageReference>-->
5348 <PackageReference Include =" Newtonsoft.Json" Version =" 11.0.2" />
5449 </ItemGroup >
5550
6055 <ItemGroup >
6156 <None Include =" ..\..\tools\icon\lotus.png" Pack =" true" PackagePath =" \" />
6257 </ItemGroup >
58+
59+ <Target Name =" Update Version" AfterTargets =" GetVersion" Condition =" '$(TF_BUILD)' == 'true' And '$(TargetFramework)'=='netstandard2.1'" >
60+ <Message Text =" Version = $(GITVERSION_FullSemVer)" Importance =" High" />
61+ <Message Text =" ##vso[build.updatebuildnumber]$(GITVERSION_FullSemVer)" Importance =" High" />
62+ </Target >
6363</Project >
You can’t perform that action at this time.
0 commit comments