File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
Nerdbank.GitVersioning.Tasks Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ variables:
1010 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
1111 BuildConfiguration : Release
1212 BuildPlatform : Any CPU
13+ NuGet.ForceNuGetForPush : true # Workaround for public feed limitation in NuGetCommand task - remove after July 15, 2019.
1314
1415resources :
1516 containers :
@@ -120,6 +121,15 @@ jobs:
120121 ArtifactType : Container
121122 displayName : Publish build_logs artifacts
122123 condition : succeededOrFailed()
124+ - task : NuGetCommand@2
125+ displayName : Pushing package to PublicCI feed
126+ inputs :
127+ command : push
128+ packagesToPush : $(Build.ArtifactStagingDirectory)/deployables/*.*nupkg
129+ nuGetFeedType : internal
130+ publishVstsFeed : 6ed146e5-8e9c-46d6-a40f-da9367ed50cd/c20edbb7-8403-4456-8f43-f46b47e360b1
131+ allowPackageConflicts : true
132+ condition : and(succeeded(), ne(variables['System.PullRequest.IsFork'], 'true'))
123133
124134- job : Ubuntu_Xenial
125135 dependsOn : Windows
Original file line number Diff line number Diff line change 1010 <PackageReference Include =" DotNetMDDocs" Version =" 0.111.0" PrivateAssets =" all" Condition =" '$(GenerateMarkdownApiDocs)' == 'true' " />
1111 <PackageReference Include =" LibGit2Sharp" Version =" 0.27.0-preview-0007" PrivateAssets =" none" />
1212 <PackageReference Include =" Microsoft.DotNet.PlatformAbstractions" Version =" 2.1.0" />
13- <PackageReference Include =" Newtonsoft.Json" Version =" 12 .0.1" />
13+ <PackageReference Include =" Newtonsoft.Json" Version =" 9 .0.1" />
1414 <PackageReference Include =" System.Diagnostics.Tools" Version =" 4.3.0" Condition =" '$(TargetFramework)' == 'netcoreapp2.0' " />
1515 <PackageReference Include =" Validation" Version =" 2.4.18" />
1616 <PackageReference Include =" Nerdbank.GitVersioning.LKG" Version =" 1.6.20-beta-gfea83a8c9e" />
Original file line number Diff line number Diff line change 77 using System . Reflection ;
88 using Newtonsoft . Json ;
99 using Newtonsoft . Json . Converters ;
10- using Newtonsoft . Json . Serialization ;
1110 using Validation ;
1211
1312 /// <summary>
@@ -307,7 +306,7 @@ public static JsonSerializerSettings GetJsonSettings(bool includeDefaults = fals
307306 new VersionConverter ( ) ,
308307 new SemanticVersionJsonConverter ( ) ,
309308 new AssemblyVersionOptionsConverter ( includeDefaults ) ,
310- new StringEnumConverter ( ) { NamingStrategy = new CamelCaseNamingStrategy ( ) } ,
309+ new StringEnumConverter ( ) { CamelCaseText = true } ,
311310 } ,
312311 ContractResolver = new VersionOptionsContractResolver
313312 {
Original file line number Diff line number Diff line change @@ -541,8 +541,10 @@ internal override void StartThisAssemblyClass()
541541 {
542542 this . codeBuilder . AppendLine ( $ "#If { CompilerDefinesAroundGeneratedCodeAttribute . Replace ( "||" , " Or " ) } Then") ;
543543 this . codeBuilder . AppendLine ( $ "<System.CodeDom.Compiler.GeneratedCode(\" { GeneratorName } \" ,\" { GeneratorVersion } \" )>") ;
544- this . codeBuilder . AppendLine ( "#End If" ) ;
545544 this . codeBuilder . AppendLine ( "Partial Friend NotInheritable Class ThisAssembly" ) ;
545+ this . codeBuilder . AppendLine ( "#Else" ) ;
546+ this . codeBuilder . AppendLine ( "Partial Friend NotInheritable Class ThisAssembly" ) ;
547+ this . codeBuilder . AppendLine ( "#End If" ) ;
546548 }
547549
548550 internal override void AddThisAssemblyMember ( string name , string value )
You can’t perform that action at this time.
0 commit comments