felixrieseberg / electron-windows-notifications

:zap: Send native Windows WinRT notifications from Electron
MIT License
261 stars 40 forks source link

could not find assembly 'platform.winmd' #13

Open abjagtap opened 5 years ago

abjagtap commented 5 years ago

while I am trying to install then getting following error:

fatal error C1107: could not find assembly
 'platform.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable
tarasbulka commented 5 years ago

I have the same error

pegasi51b commented 5 years ago

I have the same problem and I think I know what is causes this. I'm using Windows 10 SDK build 17134, and this requires to install any NodeRT from rs4 scope. Everything is working fine when I'm trying install anything directly, like @nodert-win10-au/windows.ui.notifications, but when I'm trying to install electron-windows-notifications it's always want to use nodert-win10-cu scope for this.

Is there any way to force npm to use rs4 scope during installation of this pack or I need to change my SDK to 15063 build?

I installed Visual Studio 2017, with Windows 10 SDk 17134, python 2.7 (with env path) and updated npm and node-gyp.

abjagtap commented 5 years ago

I resolved it by some workaround, just check https://stackoverflow.com/a/54591996/5700401

but now getting a build error, and notification not working.

tarikhagustia commented 5 years ago

any solution ?

dpatra commented 4 years ago

@felixrieseberg could you update on these issues; the latest release seems not working

bytemain commented 3 years ago

please see this issue's reason: https://github.com/NodeRT/NodeRT/issues/65#issuecomment-303938757

and a workaround: https://github.com/NodeRT/NodeRT/issues/65#issuecomment-304010018

RandomEngy commented 1 year ago

https://github.com/NodeRT/NodeRT/issues/113 pointed me to a successful workaround.

Jimmy-Min commented 1 year ago

Hey, I have solved this problem. Just search your platform.winmd in 'VisualStudio\IDE\Common7\IDE\VC\vcpackages', and move it to 'C:\Program Files (x86)\Windows Kits\10\UnionMetadata'.

CoderArthurXin commented 3 months ago

What I got: error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable

Step1: I added LIBPATH to enviroment variable in Win OS, but it doesn't work. Step2: I downloaded source code of electron-windows-notifications, and run 'npm i', still met this problem. Step3: In node_modules, I found some project of @nodert-win10-au built successfully, so I tried to open binding.vcxproj and found AdditionalUsingDirectories. <AdditionalUsingDirectories> %ProgramFiles(x86)%/Microsoft Visual Studio 14.0/VC/lib/store/references; %ProgramFiles%/Microsoft Visual Studio 14.0/VC/lib/store/references; %ProgramFiles%/Windows Kits/10/UnionMetadata/; %ProgramFiles(x86)%/Windows Kits/10/UnionMetadata/ </AdditionalUsingDirectories>

image image Step4: Base on Step3, I copied Windows.winmd from C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0 to C:\Program Files (x86)\Windows Kits\10\UnionMetadata. It does work.