-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issues/i72' into issues/hotfix
- Loading branch information
Showing
6 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
- [[#71](https://github.com/inversionhourglass/Rougamo/issues/71)] 修复blazor项目在发布时illink对程序集做裁减优化时产生的异常 | ||
> 程序集主要描述信息基本存储在ModuleDefinition的MetadataSystem字段中,各类型的原数据也基本从该对象中读取。然而通过删除/清空MethodDefinition的CustomDebugInformation并不会影响MetadataSystem中的数据,同时,在将修改写入程序集时,MetadataSystem中绝大部分数据都将直接清空后重新写入,然而CustomDebugInformation是个例外,这就导致MethodDefinition上对CustomDebugInformations的删除/清空操作无效。所以对CustomDebugInformation的删除操作还需要从MetadataSystem中的删除。参考 [MetadataSystem.Clear()](https://github.com/jbevain/cecil/blob/8e1ae7b4ea67ccc38cb8db3ded6802643109ffd7/Mono.Cecil/MetadataSystem.cs#L137) | ||
- [[#72](https://github.com/inversionhourglass/Rougamo/issues/72)] 修复Feature属性直接设置初始值的方式无效的问题 | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Rougamo; | ||
using Rougamo.Context; | ||
using System.Collections.Generic; | ||
|
||
namespace Issues.Attributes | ||
{ | ||
public struct _72_ : IMo | ||
{ | ||
public _72_() { } | ||
|
||
public AccessFlags Flags { get; } = AccessFlags.All; | ||
|
||
public string Pattern { get; } = null; | ||
|
||
public Feature Features { get; } = Feature.OnEntry; | ||
|
||
public double Order { get; } = 1; | ||
|
||
public Omit MethodContextOmits { get; } = Omit.None; | ||
|
||
public void OnEntry(MethodContext context) | ||
{ | ||
var list = (List<string>)context.Arguments[0]; | ||
list.Add(nameof(OnEntry)); | ||
} | ||
|
||
public void OnException(MethodContext context) | ||
{ | ||
var list = (List<string>)context.Arguments[0]; | ||
list.Add(nameof(OnException)); | ||
} | ||
|
||
public void OnExit(MethodContext context) | ||
{ | ||
var list = (List<string>)context.Arguments[0]; | ||
list.Add(nameof(OnExit)); | ||
} | ||
|
||
public void OnSuccess(MethodContext context) | ||
{ | ||
var list = (List<string>)context.Arguments[0]; | ||
list.Add(nameof(OnSuccess)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Issues.Attributes; | ||
using Rougamo; | ||
using System.Collections.Generic; | ||
|
||
namespace Issues | ||
{ | ||
public class Issue72 | ||
{ | ||
[Rougamo<_72_>] | ||
public int Plus(List<string> logs, int x, int y) => x + y; | ||
} | ||
} |