Skip to content

Commit

Permalink
Merge pull request #676 from mono/develop
Browse files Browse the repository at this point in the history
Fix assemblyVersion not removed bug (#675)
  • Loading branch information
huangmin-ms authored Oct 24, 2023
2 parents f813bcc + 696e6e5 commit 01efe58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mdoc/Consts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Mono.Documentation
{
public static class Consts
{
public static string MonoVersion = "5.9.2.3";
public static string MonoVersion = "5.9.2.4";
public const string DocId = "DocId";
public const string CppCli = "C++ CLI";
public const string CppCx = "C++ CX";
Expand Down
5 changes: 5 additions & 0 deletions mdoc/Mono.Documentation/MDocUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,11 @@ private void UpdateMember (DocsNodeInfo info, FrameworkTypeEntry typeEntry, Dict
{
var node = AddAssemblyNameToNode (me, mi.Module, mi.DeclaringType.Resolve());

if (typeEntry.IsMemberOnFirstFramework(mi))
{
node.SelectNodes("AssemblyVersion").Cast<XmlNode>().ToList().ForEach(e => e.ParentNode.RemoveChild(e));
}

UpdateAssemblyVersionForAssemblyInfo (node, me, new[] { GetAssemblyVersion (mi.Module.Assembly) }, add: true);
}
}
Expand Down
2 changes: 1 addition & 1 deletion mdoc/mdoc.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>mdoc</id>
<version>5.9.2.3</version>
<version>5.9.2.4</version>
<title>mdoc</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
Expand Down

0 comments on commit 01efe58

Please sign in to comment.