'Xamarin Forms: Reference to type 'Assembly' claims it is defined in 'System.Runtime', but it could not be found

My Project type is Portable type. While deploying the project on UWP I'm getting the following error:

Reference to type 'Assembly' claims it is defined in 'System.Runtime', but it could not be found.

The problem is only on the UWP part. Android and IOS apps are working fine.

The error occurs on the following line:

rendererAssemblies.AddRange(Rg.Plugins.Popup.Popup.GetExtraAssemblies());
Rg.Plugins.Popup.Popup.Init();
Xamarin.Forms.Forms.Init(e, rendererAssemblies);

Tried to convert the Portable project type to .Net as per this thread. But It was throwing errors related to packages.

I'm still finding my way around Xamarin, any guidance to fix this would be appreciated.



Solution 1:[1]

Fixed this issue by updating Microsoft.NETCore.UniversalWindowsPlatform and installing NSIS-Tool packages under the windows project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sreejith Sree