Skip to content

Commit

Permalink
upgrade resource manager to 1.10.1 and include reference to System.Cl…
Browse files Browse the repository at this point in the history
…ientModel for compiling (#7606)
  • Loading branch information
RodgeFu authored Jan 31, 2024
1 parent 37c14df commit 865c12f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.ResourceManager" Version="1.9.0" />
<PackageReference Include="Azure.ResourceManager" Version="1.10.1" />
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
<PackageReference Include="Markdig.Signed" Version="0.31.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections;
using System.Reflection;
using System.Text.RegularExpressions;
using Azure.SDK.ChangelogGen.Compare;
using Azure.SDK.ChangelogGen.Report;
using Azure.SDK.ChangelogGen.Utilities;
using LibGit2Sharp;
using Markdig.Parsers;

namespace Azure.SDK.ChangelogGen
{
Expand Down Expand Up @@ -36,7 +33,8 @@ static void Main(string[] args)
}

Context context = new Context();
if (!context.Init(args)) {
if (!context.Init(args))
{
return;
}

Expand Down Expand Up @@ -156,7 +154,7 @@ static void Main(string[] args)
else
{
Logger.Log($"Spec Tag change detected: {baselineVersionTag} -> {curVersionTag}");
return new StringValueChange(curVersionTag, baselineVersionTag,
return new StringValueChange(curVersionTag, baselineVersionTag,
$"Upgraded api-version tag from '{baselineVersionTag}' to '{curVersionTag}'. Tag detail available at {source}");
}
}
Expand All @@ -173,7 +171,8 @@ public static ChangeSet CompareApi(string curApiFileContent, string baselineApiF
List<string> azureRefs = new List<string>()
{
typeof(Azure.ResourceManager.ArmClient).Assembly.Location,
typeof(Azure.Core.AzureLocation).Assembly.Location
typeof(Azure.Core.AzureLocation).Assembly.Location,
typeof(System.ClientModel.Primitives.ModelReaderWriter).Assembly.Location,
};
List<string> allRefs = runtimeRefs.Concat(azureRefs).ToList();
Assembly curApi = CompileHelper.Compile("curApi.dll", curApiFileContent, allRefs);
Expand Down

0 comments on commit 865c12f

Please sign in to comment.