Skip to content

Commit d99c152

Browse files
fix(versioning): NetStandard16 (#142)
* fix(versioning): NetStandard16 .csproj for NetStandard16 previously did not include AssemblyInfo.cs which contains versioning information. Because of this, it used an automatically generated one similar to the one described here: https://github.com/dotnet/cli/issues/4783#issuecomment-382695175 We now provide the AssemblyInfo.cs to include during the build and explicitly tell it not to autogenerate. * use own AssmeblyInfo.cs * use full path * better path
1 parent 4668ff5 commit d99c152

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

OptimizelySDK.NetStandard16/OptimizelySDK.NetStandard16.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>netstandard1.6</TargetFramework>
55
<ReleaseVersion>1.2.1</ReleaseVersion>
66
<AssemblyOriginatorKeyFile>..\keypair.snk</AssemblyOriginatorKeyFile>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
78
</PropertyGroup>
89

910
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -53,6 +54,7 @@
5354
<Compile Include="..\OptimizelySDK\ProjectConfig.cs" />
5455
<Compile Include="..\OptimizelySDK\Utils\EventTagUtils.cs" />
5556
<Compile Include="..\OptimizelySDK\Utils\Validator.cs" />
57+
<Compile Include=".\Properties\AssemblyInfo.cs" />
5658
<Compile Include="..\OptimizelySDK\Utils\ConfigParser.cs" />
5759
<Compile Include="..\OptimizelySDK\Utils\Schema.cs" />
5860
<Compile Include="..\OptimizelySDK\Utils\ControlAttributes.cs" />
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("OptimizelySDK.NetStandard16")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("OptimizelySDK.NetStandard16")]
13+
[assembly: AssemblyCopyright("Copyright © 2017-2019")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// Make types and members with internal scope visible to friend
23+
// OptimizelySDK.Tests unit tests.
24+
#pragma warning disable 1700
25+
[assembly: InternalsVisibleTo("OptimizelySDK.Tests, PublicKey=ThePublicKey")]
26+
#pragma warning restore 1700
27+
28+
// The following GUID is for the ID of the typelib if this project is exposed to COM
29+
[assembly: Guid("40906323-a8be-4a71-8e42-9646b23d56cf")]
30+
31+
// Version information for an assembly consists of the following four values:
32+
//
33+
// Major Version
34+
// Minor Version
35+
// Build Number
36+
// Revision
37+
//
38+
// You can specify all the values or you can default the Build and Revision Numbers
39+
// by using the '*' as shown below:
40+
// [assembly: AssemblyVersion("1.0.*")]
41+
[assembly: AssemblyVersion("3.0.0.0")]
42+
[assembly: AssemblyFileVersion("3.0.0.0")]
43+
[assembly: AssemblyInformationalVersion("3.0.0")] // Used by Nuget.

0 commit comments

Comments
 (0)