Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformSpecific.Analyzer broken in Visual Studio 2017 #6

Open
martinsuchan opened this issue Apr 29, 2017 · 3 comments
Open

PlatformSpecific.Analyzer broken in Visual Studio 2017 #6

martinsuchan opened this issue Apr 29, 2017 · 3 comments

Comments

@martinsuchan
Copy link

Hi,
either I'm doing something wrong, or the PlatformSpecific.Analyzer is not working in Visual Studio 2017 at all.
If I create new UWP project in VS2017, TargetVersion 15063. MinVersion 10586, add PlatformSpecific.Analyzer NuGet v2.3.0 and add this snippet, no warning is shown anywhere.

private void Wv_PermissionRequested(WebView sender, WebViewPermissionRequestedEventArgs args)
{
    switch (args.PermissionRequest.PermissionType)
    { // WebNotifications is only available in Anniversary Update and later
        case WebViewPermissionType.WebNotifications:
            Debug.WriteLine("error");
            break;
    }
}
@quincycs
Copy link

It's because the published nuget only has TH1 and TH2 support. It doesn't have warnings for RS1 or RS2.

IMO it's useless until then

@quincycs
Copy link

See the pending pull request which should work with RS1

@martinsuchan
Copy link
Author

Any update on this issue? Again the PlatformSpecific.Analyzer is useless if targeting Anniversary Update or newer SDK.
I just randomly found one bug today that I use API from Creators Update when testing our app on Anniversary Update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants