Skip to content

Commit ca9d2c8

Browse files
Mohammad DehghanMohammad Dehghan
authored andcommitted
Move InstrumentationUniqueIdAttribute to where it belongs
It is not used in Recorder assembly.
1 parent 05a63ce commit ca9d2c8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

SG.CodeCoverage.Recorder/InstrumentationUniqueIdAttribute.cs renamed to SG.CodeCoverage/Instrumentation/InstrumentationUniqueIdAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace SG.CodeCoverage.Recorder
3+
namespace SG.CodeCoverage.Instrumentation
44
{
55
[AttributeUsage(AttributeTargets.Assembly)]
66
public sealed class InstrumentationUniqueIdAttribute : Attribute

SG.CodeCoverage/Instrumentation/Instrumenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private InstrumentedTypeMap InstrumentType(TypeDefinition type)
163163
private void AddUniqueIdAssemblyAttribute(AssemblyDefinition assembly)
164164
{
165165
var module = assembly.MainModule;
166-
var attribType = typeof(Recorder.InstrumentationUniqueIdAttribute);
166+
var attribType = typeof(InstrumentationUniqueIdAttribute);
167167
var attribTypeRef = module.ImportReference(attribType);
168168
var attrib = assembly.CustomAttributes.FirstOrDefault(a => a.AttributeType == attribTypeRef);
169169
var attribArgument = new CustomAttributeArgument(module.ImportReference(typeof(string)), UniqueId.ToString());

SG.CodeCoverage/SG.CodeCoverage.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<Compile Include="Coverage\CoverageTypeResult.cs" />
7373
<Compile Include="Coverage\SummaryResult.cs" />
7474
<Compile Include="Instrumentation\InstrumentationOptions.cs" />
75+
<Compile Include="Instrumentation\InstrumentationUniqueIdAttribute.cs" />
7576
<Compile Include="Metadata\InstrumentedAssemblyMap.cs" />
7677
<Compile Include="Instrumentation\AssemblyResolver.cs" />
7778
<Compile Include="Instrumentation\Instrumenter.cs" />

0 commit comments

Comments
 (0)