how to set assembly file name matching?

0

use : windwow10 , unity3d ,c#

i set up unitynugetPackage .

In my opinion unitynugetpackage doesn't seem to supprot dependency assembly

use dll :

Microsoft.Office.Interop.PowerPoint.15.0.4420.1017

MicrosoftOfficeCore.15.0.0

powerpoint need 'office.dll' but nuget'office' has not lastest ver 15.0

so i find that MicrosoftOfficeCore.15.0.0 has 'office.dll' Packages/MicrosoftOfficeCore.15.0.0/lib/net35/Office.dll

it was not error in unity editor but If you build the Unity file, error is occured

Assembly 'office' has non matching file name: 'Office.dll'. This can cause build issues on some platforms. 

In my opinion the error right now is that when building the office.dll file, it cannot be found.

How do I configure it so the assembly can find or(match) office.dll?

i check mainfest

this is office.dll

// Metadata version: v2.0.50727
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 2:0:0:0
}
.assembly extern stdole
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         // .?_....:
  .ver 7:0:3300:0
}
.assembly office
{
  .custom instance void [mscorlib]System.Runtime.InteropServices.TypeLibVersionAttribute::.ctor(int32,
                                                                                                int32) = ( 01 00 02 00 00 00 07 00 00 00 00 00 ) 
  .custom instance void [mscorlib]System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute::.ctor(int32,
                                                                                                        int32) = ( 01 00 02 00 00 00 07 00 00 00 00 00 ) 
  .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 32 64 66 38 64 30 34 63 2D 35 62 66 61   // ..$2df8d04c-5bfa
                                                                                                  2D 31 30 31 62 2D 62 64 65 35 2D 30 30 61 61 30   // -101b-bde5-00aa0
                                                                                                  30 34 34 64 65 35 32 00 00 )                      // 044de52..
  .custom instance void [mscorlib]System.Runtime.InteropServices.ImportedFromTypeLibAttribute::.ctor(string) = ( 01 00 06 4F 66 66 69 63 65 00 00 )                // ...Office..
  .publickey = (00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00   // .$..............
                00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00   // .$..RSA1........
                AF D4 A0 E7 72 41 51 D5 DD 52 CB 23 A3 0D ED 7C   // ....rAQ..R.#...|
                00 91 CC 01 CF E9 4B 2B CD 85 B3 F4 EE E3 C4 D8   // ......K+........
                F6 41 7B FF 76 37 63 A9 96 D6 B2 DF C1 E7 C2 9B   // .A{.v7c.........
                CF B8 29 97 79 DF 87 85 CD E2 C1 68 CE EE 48 0E   // ..).y......h..H.
                57 07 25 F2 46 8E 78 2A 9C 24 01 30 2C F6 DC 17   // W.%.F.x*.$.0,...
                E1 19 11 8E D2 01 19 37 BA E9 69 83 57 AD 21 E8   // .......7..i.W.!.
                B6 DF B4 04 75 D1 6E 87 EB 03 C7 44 A5 D3 28 99   // ....u.n....D..(.
                A0 DB C5 96 A6 B2 CF A1 E5 09 BE 5F BD 09 FA CF ) // ..........._....
  .hash algorithm 0x00008004
  .ver 15:0:0:0
}
.module Office.dll
// MVID: {967A151C-452A-47AB-8AD6-2AF84C8386BE}
.imagebase 0x00400000
.file alignment 0x00001000
.stackreserve 0x00100000
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000009    //  ILONLY
// Image base: 0x05830000


c#
office-interop
asked on Stack Overflow Oct 23, 2020 by user14496696 • edited Oct 26, 2020 by user14496696

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0