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