Add InternalsVisibleTo override in build script.
This commit is contained in:
parent
67a9669917
commit
82f0d4a5fd
2 changed files with 15 additions and 10 deletions
20
build.fsx
20
build.fsx
|
@ -99,13 +99,19 @@ Target "AssemblyInfo" (fun _ ->
|
||||||
projectName.Split('.').[0]
|
projectName.Split('.').[0]
|
||||||
else
|
else
|
||||||
projectName
|
projectName
|
||||||
[ Attribute.Title (projectName)
|
let baseAttributes =
|
||||||
Attribute.Product project
|
[ Attribute.Title (projectName)
|
||||||
Attribute.Description summary
|
Attribute.Product project
|
||||||
Attribute.Version release.AssemblyVersion
|
Attribute.Description summary
|
||||||
Attribute.FileVersion release.AssemblyVersion
|
Attribute.Version release.AssemblyVersion
|
||||||
Attribute.CLSCompliant true
|
Attribute.FileVersion release.AssemblyVersion
|
||||||
Attribute.Copyright copyright ]
|
Attribute.CLSCompliant true
|
||||||
|
Attribute.Copyright copyright
|
||||||
|
]
|
||||||
|
if projectName = "OpenTK" then
|
||||||
|
baseAttributes @ [Attribute.InternalsVisibleTo "OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8"]
|
||||||
|
else
|
||||||
|
baseAttributes
|
||||||
|
|
||||||
let getProjectDetails projectPath =
|
let getProjectDetails projectPath =
|
||||||
let projectName = System.IO.Path.GetFileNameWithoutExtension(projectPath)
|
let projectName = System.IO.Path.GetFileNameWithoutExtension(projectPath)
|
||||||
|
|
|
@ -10,9 +10,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||||
[assembly: CLSCompliantAttribute(true)]
|
[assembly: CLSCompliantAttribute(true)]
|
||||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||||
|
[assembly: InternalsVisibleToAttribute("OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8")]
|
||||||
[assembly: InternalsVisibleTo("OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8")]
|
|
||||||
|
|
||||||
namespace System {
|
namespace System {
|
||||||
internal static class AssemblyVersionInformation {
|
internal static class AssemblyVersionInformation {
|
||||||
internal const System.String AssemblyTitle = "OpenTK";
|
internal const System.String AssemblyTitle = "OpenTK";
|
||||||
|
@ -22,5 +20,6 @@ namespace System {
|
||||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||||
internal const System.Boolean CLSCompliant = true;
|
internal const System.Boolean CLSCompliant = true;
|
||||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||||
|
internal const System.String InternalsVisibleTo = "OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue