Unable to get namespace System.Deployment.Application - vb.net

I am trying to get this: System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun
But the application namespace is not there. I just see System.Deployment.Internal. The object browser, however, shows me all the properties and methods of that namespace, but my app can't see it.
What am I missing?

Did you add a reference to System.Deployment?

Related

Prestashop 1.7 Context::getContext() not working in AdminController

I have created custom admin controller in my custom module but i am not able to use Context::getContext() in my admin controller.
When i try to use that i am getting below error.
Attempted to call an undefined method named "getContext" of class "PrestaShop\PrestaShop\Adapter\Shop\Context".
Did you mean to call e.g. "getContextListShopID", "getContextListShopIDUsingCustomerSharingSettings", "getContextShopGroup" or "getContextShopID"?
I have already added this line at the top of my file use PrestaShop\PrestaShop\Adapter\Shop\Context;
but still facing same issue.
If anyone have any idea why Context::getContext() doesn't work I would like to hear it.
Thanks

Xplat.Services.Maps.MapLocationFinder class

I installed the namespace XPlat.Services.Maps via NuGet. But now it seems to not contain the class MapLocationFinder.
When I type XPlat.Services.Maps.MapLocationFinder it results in an error that says there is no such member
However on this page its clearly using this class in this namespace.
https://xplat.gitbook.io/docs/xplat.services.maps/maplocationfinder
Is there something wrong?
XPlat.Services.Maps.MapLocationFinderResult for example works fine

Why doesn't the reference get added to Class Library the project even after I add it to the Class Library project

I add this reference to the Class Library project:
and nothing changes in the code. I still get an error when I add the using statement:
Then I go back to the Reference Manager and the reference is not there. :(

XamlParseException when using UserControl from class library dll

I have created a library which has a Popup UserControl similar to the one here.
When I create a fresh Universal Windows App and create the same UserControl inside an app and open the popup, it opens.
But if I create a Class Library and create the same UserControl inside it and try to use it (by opening the popup) inside an app, I get a XamlParseException.
It is as follows -
Windows.UI.Xaml.Markup.XamlParseException occurred
HResult=-2144665590
Message=XAML parsing failed.
Source=Windows
StackTrace:
at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation
componentResourceLocation)
at PopupTestLibrary.MyUserControl1.InitializeComponent()
I am not able to understand exactly why this is happening, since the code works fine when not called from an external class library.
Some Questions I found to be similar to mine, here on SO -
XamlParseException when consuming a Page from a library
Cannot instantiate UserControl from another assembly
All help is appreciated!
You need to Add a Resource Dictionary in your App and Add the Usercontrol Xaml content to it
as Xaml is Considered as a Content file not compiled into the code
I think that this post is just as yours.. :
https://social.msdn.microsoft.com/Forums/en-US/63f071be-a3c5-4f2d-ace2-73ca750e3252/rtm-usercontrol-class-library-and-assembly-name-with-
And, It's known issue:
Dot in the project's name cause XAMLParseException
I hope that this will help you in your issue..

The attachable property HtmlSource was not found in type WebViewExtension

I found this source at Callisto for WebView as WebViewExtension method. This same method was working fine in windows 8.1 apps and now when I try to use in universal windows apps then it is giving me this error.
The attachable property HtmlSource was not found in type
WebViewExtension
I am using this inside a user control with this syntax.
<WebView x:Name="ContentView"
Margin="15,10,10,10"
callisto:WebViewExtension.HtmlSource="{Binding SelectedFeedItem.Content}"/>
Source of WebViewExtension method is here.
Update:
Just to make sure I haven't messed up my xmlns declarations.
1. I have a common folder common and in inside I have a class called Callisto.cs file with the same source copied and no change.
2. In my xmlns: declaration I have xmlns:callisto="Myrssapp.Win10.Common"
Below is the image.
I found my issue and I don't know why it worked in Win 8 or I must have changed something. The mistake was in the xmlns: statement.
instead of
xmlns:callisto="Myrssapp.Win10.Common"
it should be
xmlns:callisto="using:Myrssapp.Win10.Common"
I missed the using keyword.