It is currently December 9th, 2021, 4:59 am

DLLExporter error

Share and get help with Plugins and Addons
bigparty
Posts: 3
Joined: March 7th, 2021, 7:39 pm

DLLExporter error

Post by bigparty »

Hi.

I'm trying to develop a plugin that needs some Windows API contracts, to use GlobalSystemMediaTransportControlsSessionManager and IAsyncOperation. When I make the references and use the methods I get the following error:

syntax error at token 'Windows.Foundation.FoundationContract' in: .assembly extern windowsruntime Windows.Foundation.FoundationContract PluginSystemVersio

EXEC : DllExporter error : Unable to assemble!


following the error I get the assembly:

Code: Select all

...
// Metadata version: v4.0.30319
.module extern Rainmeter.dll
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 4:0:0:0
}
.assembly extern windowsruntime Windows.Foundation.FoundationContract
{
  .ver 3:0:0:0
}
.assembly extern windowsruntime Windows.Foundation.UniversalApiContract
{
  .ver 7:0:0:0
}
...
Has anyone run into the same problem?
User avatar
death.crafter
Rainmeter Sage
Posts: 1208
Joined: April 24th, 2021, 8:13 pm

Re: DLLExporter error

Post by death.crafter »

bigparty wrote: November 12th, 2021, 3:13 pm Hi.

I'm trying to develop a plugin that needs some Windows API contracts, to use GlobalSystemMediaTransportControlsSessionManager and IAsyncOperation. When I make the references and use the methods I get the following error:

syntax error at token 'Windows.Foundation.FoundationContract' in: .assembly extern windowsruntime Windows.Foundation.FoundationContract PluginSystemVersio

EXEC : DllExporter error : Unable to assemble!


following the error I get the assembly:

Code: Select all

...
// Metadata version: v4.0.30319
.module extern Rainmeter.dll
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 4:0:0:0
}
.assembly extern windowsruntime Windows.Foundation.FoundationContract
{
  .ver 3:0:0:0
}
.assembly extern windowsruntime Windows.Foundation.UniversalApiContract
{
  .ver 7:0:0:0
}
...
Has anyone run into the same problem?
I don't exactly remember but this error is raised due to target platform version and TFM, in your project file. Try messing around with those.
from the Realm of Death