Skip to content

Commit 06aa266

Browse files
authored
Merge pull request #16705 from tamasvajk/build/fix-attributes
C#: Add assembly attributes to assemblies built with Bazel
2 parents 32260e2 + 5f98f2a commit 06aa266

File tree

24 files changed

+85
-47
lines changed

24 files changed

+85
-47
lines changed

csharp/Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88

99
<Company>GitHub</Company>
10+
<Product>CodeQL</Product>
1011
<Copyright>Copyright © $([System.DateTime]::Now.Year) $(Company)</Copyright>
1112
<Version>1.0.0.0</Version>
12-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
13-
<FileVersion>1.0.0.0</FileVersion>
13+
<AssemblyVersion>$(Version)</AssemblyVersion>
14+
<FileVersion>$(Version)</FileVersion>
1415
</PropertyGroup>
1516

1617
</Project>

csharp/autobuilder/Semmle.Autobuild.CSharp.Tests/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_xunit_test(
77
name = "Semmle.Autobuild.CSharp.Tests",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
deps = [
1312
"//csharp/autobuilder/Semmle.Autobuild.CSharp:bin/Semmle.Autobuild.CSharp",

csharp/autobuilder/Semmle.Autobuild.CSharp/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_csharp_binary(
77
name = "Semmle.Autobuild.CSharp",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
visibility = ["//csharp:__subpackages__"],
1312
deps = [

csharp/autobuilder/Semmle.Autobuild.Cpp.Tests/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_xunit_test(
77
name = "Semmle.Autobuild.Cpp.Tests",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
deps = [
1312
"//csharp/autobuilder/Semmle.Autobuild.Cpp:bin/Semmle.Autobuild.Cpp",

csharp/autobuilder/Semmle.Autobuild.Cpp/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_csharp_binary(
77
name = "Semmle.Autobuild.Cpp",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
visibility = ["//visibility:public"],
1312
deps = [

csharp/autobuilder/Semmle.Autobuild.Shared/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_csharp_library(
77
name = "Semmle.Autobuild.Shared",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
visibility = ["//visibility:public"],
1312
deps = [

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_csharp_library(
77
name = "Semmle.Extraction.CSharp.DependencyFetching",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
"SourceGenerators/**/*.cs",
1211
]),
1312
allow_unsafe_blocks = True,

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 4 deletions
This file was deleted.

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Semmle.Extraction.CSharp.DependencyFetching.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<ItemGroup>
77
<ProjectReference Include="..\Semmle.Util\Semmle.Util.csproj" />
88
<ProjectReference Include="..\Semmle.Extraction\Semmle.Extraction.csproj" />
9+
10+
<InternalsVisibleTo Include="Semmle.Extraction.Tests" />
911
</ItemGroup>
1012
<Import Project="..\..\.paket\Paket.Restore.targets" />
1113
</Project>

csharp/extractor/Semmle.Extraction.CSharp.DependencyStubGenerator/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ codeql_csharp_binary(
77
name = "Semmle.Extraction.CSharp.DependencyStubGenerator",
88
srcs = glob([
99
"*.cs",
10-
"Properties/*.cs",
1110
]),
1211
visibility = ["//csharp:__pkg__"],
1312
deps = [

0 commit comments

Comments
 (0)