From 6969b59b740fcf508b9813bf8bff6dfadce18675 Mon Sep 17 00:00:00 2001 From: Christopher Warrington Date: Thu, 29 Jun 2017 08:40:22 -0700 Subject: [PATCH] [c#] Stamp version info into Bond assemblies Support for embedding assembly and file version information has been added to the MSBuild and .NET Core builds. When building Bond, if the environment variable BOND_CORE_VERSION (or, for Bond Comm, BOND_COMM_VERSION) is set to a valid NuGet package version string, the generated assemblies will have versions details embedded in them as well. * For developer builds without any version set, the version 0.0.0.1 will be used. * For pre-release builds (versions of the form x.y.z-someTag), the version x.y.z.0 will be used. * For release builds (version of the form x.y.z), the version x.y.z.100 will be used. Fixes https://github.com/Microsoft/bond/issues/325 Closes https://github.com/Microsoft/bond/pull/514 --- CHANGELOG.md | 4 + cs/build/internal/Common.Internal.props | 5 ++ cs/build/internal/Common.Internal.targets | 1 + cs/build/internal/DevVersions.cs | 6 ++ cs/build/internal/Versions.targets | 77 +++++++++++++++++++ cs/dnc/.gitignore | 1 + cs/dnc/build.ps1 | 20 ++++- cs/dnc/src/attributes/project.json | 3 +- cs/dnc/src/core/project.json | 1 + cs/dnc/src/grpc/project.json | 3 +- cs/dnc/src/io/project.json | 3 +- cs/dnc/src/json/project.json | 3 +- cs/dnc/src/reflection/project.json | 3 +- cs/src/attributes/properties/AssemblyInfo.cs | 2 - cs/src/comm/comm.props | 9 +++ .../epoxy-transport/epoxy-transport.csproj | 3 +- .../properties/AssemblyInfo.cs | 2 - cs/src/comm/interfaces/interfaces.csproj | 3 +- .../interfaces/properties/AssemblyInfo.cs | 2 - cs/src/comm/layers/layers.csproj | 1 + cs/src/comm/layers/properties/AssemblyInfo.cs | 2 - .../comm/service/properties/AssemblyInfo.cs | 2 - cs/src/comm/service/service.csproj | 1 + .../properties/AssemblyInfo.cs | 2 - .../simpleinmem-transport.csproj | 3 +- cs/src/core/properties/AssemblyInfo.cs | 2 - cs/src/grpc/properties/AssemblyInfo.cs | 2 - cs/src/io/properties/AssemblyInfo.cs | 2 - cs/src/json/properties/AssemblyInfo.cs | 2 - cs/src/reflection/properties/AssemblyInfo.cs | 2 - cs/test/comm/properties/AssemblyInfo.cs | 13 ---- .../comm/client/properties/AssemblyInfo.cs | 13 ---- .../comm/server/properties/AssemblyInfo.cs | 13 ---- .../comm/shared/Properties/AssemblyInfo.cs | 13 ---- .../compat/core/properties/AssemblyInfo.cs | 13 ---- .../grpc/client/properties/AssemblyInfo.cs | 13 ---- .../grpc/server/properties/AssemblyInfo.cs | 13 ---- .../grpc/shared/Properties/AssemblyInfo.cs | 13 ---- cs/test/core/properties/AssemblyInfo.cs | 13 ---- .../expressions/properties/AssemblyInfo.cs | 13 ---- cs/test/internal/properties/AssemblyInfo.cs | 13 ---- 41 files changed, 141 insertions(+), 174 deletions(-) create mode 100644 cs/build/internal/DevVersions.cs create mode 100644 cs/build/internal/Versions.targets create mode 100644 cs/src/comm/comm.props diff --git a/CHANGELOG.md b/CHANGELOG.md index 634237e9..02735fcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,6 +94,10 @@ get a compiler error. To fix, remove the `` part: [Issue #414](https://github.com/Microsoft/bond/issues/414) * The new public key for assemblies is now `00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787` +* **Breaking change** Bond assemblies now have assembly and file versions + that correspond to their NuGet package version. Strong name identities + will now change release-over-release in line with the NuGet package + versions. * The codegen MSBuild targets will now re-run codegen if gbc itself has been changed. diff --git a/cs/build/internal/Common.Internal.props b/cs/build/internal/Common.Internal.props index 20c596aa..0a317bfb 100644 --- a/cs/build/internal/Common.Internal.props +++ b/cs/build/internal/Common.Internal.props @@ -29,6 +29,11 @@ true $(MSBuildThisFileDirectory)bond.snk + + + $(BOND_CORE_VERSION) + diff --git a/cs/build/internal/Common.Internal.targets b/cs/build/internal/Common.Internal.targets index 484b45dd..a5be9233 100644 --- a/cs/build/internal/Common.Internal.targets +++ b/cs/build/internal/Common.Internal.targets @@ -7,6 +7,7 @@ + $(OutDir)\$(TargetName).xml diff --git a/cs/build/internal/DevVersions.cs b/cs/build/internal/DevVersions.cs new file mode 100644 index 00000000..4489ced9 --- /dev/null +++ b/cs/build/internal/DevVersions.cs @@ -0,0 +1,6 @@ +// For development builds, we set the versions to 0.0.0.1. Official builds +// generate different versions based on the package version and do not +// actually compile this file. +[assembly: System.Reflection.AssemblyVersion("0.0.0.1")] +[assembly: System.Reflection.AssemblyFileVersion("0.0.0.1")] +[assembly: System.Reflection.AssemblyInformationalVersion("0.0.0.1")] diff --git a/cs/build/internal/Versions.targets b/cs/build/internal/Versions.targets new file mode 100644 index 00000000..b874ffb7 --- /dev/null +++ b/cs/build/internal/Versions.targets @@ -0,0 +1,77 @@ + + + + + + <_Bond_GeneratedAssemblyInfoPath>$(IntermediateOutputPath)AssemblyInfo_Generated.cs + + <_DevVersionsPath>$(MSBuildThisFileDirectory)DevVersions.cs + + + + + + + + + + + <_Bond_IsPreReleaseVersion>true + <_Bond_BaseVersion>$(BondVersionNum.SubString(0, $(BondVersionNum.IndexOf("-")))) + <_Bond_FullVersion>$(_Bond_BaseVersion).0 + + + + + + + + <_Bond_IsPreReleaseVersion>false + <_Bond_BaseVersion>$(BondVersionNum) + <_Bond_FullVersion>$(_Bond_BaseVersion).100 + + + + + + + + + + + + diff --git a/cs/dnc/.gitignore b/cs/dnc/.gitignore index c8100ee7..635e3203 100644 --- a/cs/dnc/.gitignore +++ b/cs/dnc/.gitignore @@ -1,4 +1,5 @@ *.nuget.props *.nuget.targets *project.lock.json +/gen/ TestResult.xml diff --git a/cs/dnc/build.ps1 b/cs/dnc/build.ps1 index e05890e2..19ece6ba 100644 --- a/cs/dnc/build.ps1 +++ b/cs/dnc/build.ps1 @@ -50,6 +50,9 @@ param [switch] $Test = $false, + [string] + $Version = "", + [ValidateSet("quiet", "minimal", "normal", "detailed")] [string] $Verbosity = "minimal", @@ -96,9 +99,24 @@ try throw "Building GBC failed." } + mkdir -Force gen + + if ([string]::IsNullOrWhiteSpace($Version)) { + Copy-Item '..\build\internal\DevVersions.cs' '.\gen\AssemblyInfo_Generated.cs' + if (-not $?) { + throw "Version copy failed" + } + } else { + $genFullPath = (Resolve-Path gen\).Path + msbuild $script:msb_common /p:BondVersionNum=$Version "/p:IntermediateOutputPath=$genFullPath\" '..\build\internal\Versions.targets' + if (-not $?) { + throw "Version generation failed" + } + } + msbuild $script:msb_common /p:Configuration=$Configuration 'dirs.proj' if (-not $?) { - throw "Code generation failed." + throw "Bond code generation failed." } dotnet restore --verbosity (ComputeDotNetRestoreVerbosity) diff --git a/cs/dnc/src/attributes/project.json b/cs/dnc/src/attributes/project.json index b336a9b3..c1bdc004 100644 --- a/cs/dnc/src/attributes/project.json +++ b/cs/dnc/src/attributes/project.json @@ -5,7 +5,8 @@ "compile": { "include": [ "../../../src/attributes/*.cs", - "../../../src/attributes/properties/*.cs" + "../../../src/attributes/properties/*.cs", + "../../gen/AssemblyInfo_Generated.cs" ] }, "debugType": "portable", diff --git a/cs/dnc/src/core/project.json b/cs/dnc/src/core/project.json index 639eea04..93447ff1 100644 --- a/cs/dnc/src/core/project.json +++ b/cs/dnc/src/core/project.json @@ -12,6 +12,7 @@ "../../../src/core/io/safe/*.cs", "../../../src/core/properties/*.cs", "../../../src/core/protocols/*.cs", + "../../gen/AssemblyInfo_Generated.cs", "gen/bond_const_types.cs", "gen/bond_types.cs" ] diff --git a/cs/dnc/src/grpc/project.json b/cs/dnc/src/grpc/project.json index 366afd28..189f3486 100644 --- a/cs/dnc/src/grpc/project.json +++ b/cs/dnc/src/grpc/project.json @@ -5,7 +5,8 @@ "compile": { "include": [ "../../../src/grpc/*.cs", - "../../../src/grpc/properties/*.cs" + "../../../src/grpc/properties/*.cs", + "../../gen/AssemblyInfo_Generated.cs" ] }, "debugType": "portable", diff --git a/cs/dnc/src/io/project.json b/cs/dnc/src/io/project.json index b06bbdb3..1253d73c 100644 --- a/cs/dnc/src/io/project.json +++ b/cs/dnc/src/io/project.json @@ -6,7 +6,8 @@ "compile": { "include": [ "../../../src/io/unsafe/*.cs", - "../../../src/io/properties/*.cs" + "../../../src/io/properties/*.cs", + "../../gen/AssemblyInfo_Generated.cs" ] }, "debugType": "portable", diff --git a/cs/dnc/src/json/project.json b/cs/dnc/src/json/project.json index ac9285c4..d01a9b9d 100644 --- a/cs/dnc/src/json/project.json +++ b/cs/dnc/src/json/project.json @@ -7,7 +7,8 @@ "../../../src/json/*.cs", "../../../src/json/expressions/json/*.cs", "../../../src/json/properties/*.cs", - "../../../src/json/protocols/*.cs" + "../../../src/json/protocols/*.cs", + "../../gen/AssemblyInfo_Generated.cs" ] }, "debugType": "portable", diff --git a/cs/dnc/src/reflection/project.json b/cs/dnc/src/reflection/project.json index a3028789..cde6e3fb 100644 --- a/cs/dnc/src/reflection/project.json +++ b/cs/dnc/src/reflection/project.json @@ -5,7 +5,8 @@ "compile": { "include": [ "../../../src/reflection/*.cs", - "../../../src/reflection/properties/*.cs" + "../../../src/reflection/properties/*.cs", + "../../gen/AssemblyInfo_Generated.cs" ] }, "debugType": "portable", diff --git a/cs/src/attributes/properties/AssemblyInfo.cs b/cs/src/attributes/properties/AssemblyInfo.cs index 9d567b4a..408ed1e7 100644 --- a/cs/src/attributes/properties/AssemblyInfo.cs +++ b/cs/src/attributes/properties/AssemblyInfo.cs @@ -10,7 +10,5 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/comm.props b/cs/src/comm/comm.props new file mode 100644 index 00000000..c666ab76 --- /dev/null +++ b/cs/src/comm/comm.props @@ -0,0 +1,9 @@ + + + + + $(BOND_COMM_VERSION) + + diff --git a/cs/src/comm/epoxy-transport/epoxy-transport.csproj b/cs/src/comm/epoxy-transport/epoxy-transport.csproj index 4fef945d..44d9bb46 100644 --- a/cs/src/comm/epoxy-transport/epoxy-transport.csproj +++ b/cs/src/comm/epoxy-transport/epoxy-transport.csproj @@ -1,7 +1,8 @@ - + + {C687C52C-0A5B-4F10-8CB3-DBAF9A72D042} Library diff --git a/cs/src/comm/epoxy-transport/properties/AssemblyInfo.cs b/cs/src/comm/epoxy-transport/properties/AssemblyInfo.cs index ab3b9ac6..affa6018 100644 --- a/cs/src/comm/epoxy-transport/properties/AssemblyInfo.cs +++ b/cs/src/comm/epoxy-transport/properties/AssemblyInfo.cs @@ -10,7 +10,5 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond.Comm.UnitTest, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/interfaces/interfaces.csproj b/cs/src/comm/interfaces/interfaces.csproj index ff64be80..e411190d 100644 --- a/cs/src/comm/interfaces/interfaces.csproj +++ b/cs/src/comm/interfaces/interfaces.csproj @@ -1,7 +1,8 @@ - + + {45EFB397-298A-4A32-A178-A2BDF8ABBBD9} Library diff --git a/cs/src/comm/interfaces/properties/AssemblyInfo.cs b/cs/src/comm/interfaces/properties/AssemblyInfo.cs index e3df51e4..e46aea23 100644 --- a/cs/src/comm/interfaces/properties/AssemblyInfo.cs +++ b/cs/src/comm/interfaces/properties/AssemblyInfo.cs @@ -10,7 +10,5 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond.Comm.UnitTest, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/layers/layers.csproj b/cs/src/comm/layers/layers.csproj index d51c1a55..f810d2c0 100644 --- a/cs/src/comm/layers/layers.csproj +++ b/cs/src/comm/layers/layers.csproj @@ -2,6 +2,7 @@ + {5F6CBC77-8FB5-4644-BAB5-F8E62792266E} Library diff --git a/cs/src/comm/layers/properties/AssemblyInfo.cs b/cs/src/comm/layers/properties/AssemblyInfo.cs index be7373d2..8bacf73e 100644 --- a/cs/src/comm/layers/properties/AssemblyInfo.cs +++ b/cs/src/comm/layers/properties/AssemblyInfo.cs @@ -10,8 +10,6 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond.Comm.UnitTest, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/service/properties/AssemblyInfo.cs b/cs/src/comm/service/properties/AssemblyInfo.cs index a74c8b8d..10b6b107 100644 --- a/cs/src/comm/service/properties/AssemblyInfo.cs +++ b/cs/src/comm/service/properties/AssemblyInfo.cs @@ -10,7 +10,5 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/service/service.csproj b/cs/src/comm/service/service.csproj index 8965b19e..ba812eb2 100644 --- a/cs/src/comm/service/service.csproj +++ b/cs/src/comm/service/service.csproj @@ -2,6 +2,7 @@ + {79D2423A-87C8-44A2-89C2-2FA94521747E} Library diff --git a/cs/src/comm/simpleinmem-transport/properties/AssemblyInfo.cs b/cs/src/comm/simpleinmem-transport/properties/AssemblyInfo.cs index e63780fc..7c2afe66 100644 --- a/cs/src/comm/simpleinmem-transport/properties/AssemblyInfo.cs +++ b/cs/src/comm/simpleinmem-transport/properties/AssemblyInfo.cs @@ -10,7 +10,5 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/comm/simpleinmem-transport/simpleinmem-transport.csproj b/cs/src/comm/simpleinmem-transport/simpleinmem-transport.csproj index 8771f2e0..cdadba7d 100644 --- a/cs/src/comm/simpleinmem-transport/simpleinmem-transport.csproj +++ b/cs/src/comm/simpleinmem-transport/simpleinmem-transport.csproj @@ -1,7 +1,8 @@ - + + {54A3432B-99E1-4DEB-B4EB-2D6E158ECD24} Library diff --git a/cs/src/core/properties/AssemblyInfo.cs b/cs/src/core/properties/AssemblyInfo.cs index 7fe56f81..3c68604b 100644 --- a/cs/src/core/properties/AssemblyInfo.cs +++ b/cs/src/core/properties/AssemblyInfo.cs @@ -10,8 +10,6 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond.IO, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] [assembly: InternalsVisibleTo("Bond.JSON, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/src/grpc/properties/AssemblyInfo.cs b/cs/src/grpc/properties/AssemblyInfo.cs index 30f8d00f..a3611f6a 100644 --- a/cs/src/grpc/properties/AssemblyInfo.cs +++ b/cs/src/grpc/properties/AssemblyInfo.cs @@ -7,5 +7,3 @@ using System.Reflection; [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/src/io/properties/AssemblyInfo.cs b/cs/src/io/properties/AssemblyInfo.cs index 7e533421..8310b7d2 100644 --- a/cs/src/io/properties/AssemblyInfo.cs +++ b/cs/src/io/properties/AssemblyInfo.cs @@ -7,5 +7,3 @@ using System.Reflection; [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/src/json/properties/AssemblyInfo.cs b/cs/src/json/properties/AssemblyInfo.cs index 2a63fd07..d005717c 100644 --- a/cs/src/json/properties/AssemblyInfo.cs +++ b/cs/src/json/properties/AssemblyInfo.cs @@ -7,5 +7,3 @@ using System.Reflection; [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/src/reflection/properties/AssemblyInfo.cs b/cs/src/reflection/properties/AssemblyInfo.cs index a63018f3..de1c0714 100644 --- a/cs/src/reflection/properties/AssemblyInfo.cs +++ b/cs/src/reflection/properties/AssemblyInfo.cs @@ -10,8 +10,6 @@ using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Bond")] [assembly: AssemblyCopyright("Copyright (C) Microsoft. All rights reserved.")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Bond, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] [assembly: InternalsVisibleTo("Bond.ExpressionsTest, PublicKey=00240000048000009400000006020000002400005253413100040000010001000d504ac18b4b149d2f7b0059b482f9b6d44d39059e6a96ff0a2a52678b5cfd8567cc67254132cd2debb5b95f6a1206a15c6f8ddac137c6c3ef4995f28c359acaa683a90995c8f08df7ce0aaa8836d331a344a514c443f112f80bf2ebed40ccb32d7df63c09b0d7bef80aecdc23ec200a458d4f8bafbcdeb9bf5ba111fbbd4787")] diff --git a/cs/test/comm/properties/AssemblyInfo.cs b/cs/test/comm/properties/AssemblyInfo.cs index 9eaadca2..69ff0ee8 100644 --- a/cs/test/comm/properties/AssemblyInfo.cs +++ b/cs/test/comm/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/comm/client/properties/AssemblyInfo.cs b/cs/test/compat/comm/client/properties/AssemblyInfo.cs index 3990165e..473f89d9 100644 --- a/cs/test/compat/comm/client/properties/AssemblyInfo.cs +++ b/cs/test/compat/comm/client/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/comm/server/properties/AssemblyInfo.cs b/cs/test/compat/comm/server/properties/AssemblyInfo.cs index 1090bdf0..12ea90de 100644 --- a/cs/test/compat/comm/server/properties/AssemblyInfo.cs +++ b/cs/test/compat/comm/server/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/comm/shared/Properties/AssemblyInfo.cs b/cs/test/compat/comm/shared/Properties/AssemblyInfo.cs index 6e2ffd92..cbdfb8d9 100644 --- a/cs/test/compat/comm/shared/Properties/AssemblyInfo.cs +++ b/cs/test/compat/comm/shared/Properties/AssemblyInfo.cs @@ -21,16 +21,3 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("5d90c693-10df-4378-8073-0d8e58d1245f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/core/properties/AssemblyInfo.cs b/cs/test/compat/core/properties/AssemblyInfo.cs index f250e535..a16b4964 100644 --- a/cs/test/compat/core/properties/AssemblyInfo.cs +++ b/cs/test/compat/core/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/grpc/client/properties/AssemblyInfo.cs b/cs/test/compat/grpc/client/properties/AssemblyInfo.cs index c8bcdb34..db913c4f 100644 --- a/cs/test/compat/grpc/client/properties/AssemblyInfo.cs +++ b/cs/test/compat/grpc/client/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/grpc/server/properties/AssemblyInfo.cs b/cs/test/compat/grpc/server/properties/AssemblyInfo.cs index 545177d7..f27e83ef 100644 --- a/cs/test/compat/grpc/server/properties/AssemblyInfo.cs +++ b/cs/test/compat/grpc/server/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/compat/grpc/shared/Properties/AssemblyInfo.cs b/cs/test/compat/grpc/shared/Properties/AssemblyInfo.cs index 84fdb0f9..6adff70c 100644 --- a/cs/test/compat/grpc/shared/Properties/AssemblyInfo.cs +++ b/cs/test/compat/grpc/shared/Properties/AssemblyInfo.cs @@ -21,16 +21,3 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("5d90c693-10df-4378-8073-0d8e58d1245f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/core/properties/AssemblyInfo.cs b/cs/test/core/properties/AssemblyInfo.cs index 0327c613..dd68d5ce 100644 --- a/cs/test/core/properties/AssemblyInfo.cs +++ b/cs/test/core/properties/AssemblyInfo.cs @@ -20,16 +20,3 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("2923589d-58e1-4b98-ad8a-4ec31e328da4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/expressions/properties/AssemblyInfo.cs b/cs/test/expressions/properties/AssemblyInfo.cs index a5e4e6a4..c8d3697a 100644 --- a/cs/test/expressions/properties/AssemblyInfo.cs +++ b/cs/test/expressions/properties/AssemblyInfo.cs @@ -20,16 +20,3 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("600d8d53-93f8-4f63-a7f6-6c920c2de7b2")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/cs/test/internal/properties/AssemblyInfo.cs b/cs/test/internal/properties/AssemblyInfo.cs index ee69e2fd..f7eb0aca 100644 --- a/cs/test/internal/properties/AssemblyInfo.cs +++ b/cs/test/internal/properties/AssemblyInfo.cs @@ -17,16 +17,3 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")]