Skip to content

Commit 6730964

Browse files
asbjornuJakeGinnivan
authored andcommitted
Add [AttributeUsage(AttributeTargets.Assembly)] to the custom assembly attributes so they are easier to find.
1 parent aaa8908 commit 6730964

6 files changed

+12
-0
lines changed

src/GitVersionTask.Tests/AssemblyInfoBuilderTests.VerifyAssemblyVersion_Major.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using System.Reflection;
1010
namespace Fake
1111
{
1212
[System.Runtime.CompilerServices.CompilerGenerated]
13+
[AttributeUsage(AttributeTargets.Assembly)]
1314
sealed class ReleaseDateAttribute : System.Attribute
1415
{
1516
public string Date { get; private set; }
@@ -45,6 +46,7 @@ namespace Fake
4546
}
4647

4748
[System.Runtime.CompilerServices.CompilerGenerated]
49+
[AttributeUsage(AttributeTargets.Assembly)]
4850
sealed class GitVersionInformationAttribute : System.Attribute
4951
{
5052
public string Major { get { return "2"; } }

src/GitVersionTask.Tests/AssemblyInfoBuilderTests.VerifyAssemblyVersion_MajorMinor.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using System.Reflection;
1010
namespace Fake
1111
{
1212
[System.Runtime.CompilerServices.CompilerGenerated]
13+
[AttributeUsage(AttributeTargets.Assembly)]
1314
sealed class ReleaseDateAttribute : System.Attribute
1415
{
1516
public string Date { get; private set; }
@@ -45,6 +46,7 @@ namespace Fake
4546
}
4647

4748
[System.Runtime.CompilerServices.CompilerGenerated]
49+
[AttributeUsage(AttributeTargets.Assembly)]
4850
sealed class GitVersionInformationAttribute : System.Attribute
4951
{
5052
public string Major { get { return "2"; } }

src/GitVersionTask.Tests/AssemblyInfoBuilderTests.VerifyAssemblyVersion_MajorMinorPatch.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using System.Reflection;
1010
namespace Fake
1111
{
1212
[System.Runtime.CompilerServices.CompilerGenerated]
13+
[AttributeUsage(AttributeTargets.Assembly)]
1314
sealed class ReleaseDateAttribute : System.Attribute
1415
{
1516
public string Date { get; private set; }
@@ -45,6 +46,7 @@ namespace Fake
4546
}
4647

4748
[System.Runtime.CompilerServices.CompilerGenerated]
49+
[AttributeUsage(AttributeTargets.Assembly)]
4850
sealed class GitVersionInformationAttribute : System.Attribute
4951
{
5052
public string Major { get { return "2"; } }

src/GitVersionTask.Tests/AssemblyInfoBuilderTests.VerifyAssemblyVersion_MajorMinorPatchTag.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using System.Reflection;
1010
namespace Fake
1111
{
1212
[System.Runtime.CompilerServices.CompilerGenerated]
13+
[AttributeUsage(AttributeTargets.Assembly)]
1314
sealed class ReleaseDateAttribute : System.Attribute
1415
{
1516
public string Date { get; private set; }
@@ -45,6 +46,7 @@ namespace Fake
4546
}
4647

4748
[System.Runtime.CompilerServices.CompilerGenerated]
49+
[AttributeUsage(AttributeTargets.Assembly)]
4850
sealed class GitVersionInformationAttribute : System.Attribute
4951
{
5052
public string Major { get { return "2"; } }

src/GitVersionTask.Tests/AssemblyInfoBuilderTests.VerifyCreatedCode.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using System.Reflection;
1010
namespace Fake
1111
{
1212
[System.Runtime.CompilerServices.CompilerGenerated]
13+
[AttributeUsage(AttributeTargets.Assembly)]
1314
sealed class ReleaseDateAttribute : System.Attribute
1415
{
1516
public string Date { get; private set; }
@@ -45,6 +46,7 @@ namespace Fake
4546
}
4647

4748
[System.Runtime.CompilerServices.CompilerGenerated]
49+
[AttributeUsage(AttributeTargets.Assembly)]
4850
sealed class GitVersionInformationAttribute : System.Attribute
4951
{
5052
public string Major { get { return "1"; } }

src/GitVersionTask/AssemblyInfoBuilder/AssemblyInfoBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public string GetAssemblyInfoText(VersionVariables vars, string assemblyName)
2323
namespace {6}
2424
{{
2525
[System.Runtime.CompilerServices.CompilerGenerated]
26+
[AttributeUsage(AttributeTargets.Assembly)]
2627
sealed class ReleaseDateAttribute : System.Attribute
2728
{{
2829
public string Date {{ get; private set; }}
@@ -40,6 +41,7 @@ static class GitVersionInformation
4041
}}
4142
4243
[System.Runtime.CompilerServices.CompilerGenerated]
44+
[AttributeUsage(AttributeTargets.Assembly)]
4345
sealed class GitVersionInformationAttribute : System.Attribute
4446
{{
4547
{5}

0 commit comments

Comments
 (0)