Why is SKCanvasView PaintSurface triggered only when UWP (Universal Windows) is resized horizontally - xamarin.uwp

I’m using Visual Studio 2017 to build a Windows UWP App.
My XML code is:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:forms="clr-namespace:SkiaSharp.Views.Forms;assembly=SkiaSharp.Views.Forms"
x:Class="Test_SMLibrary.Lines_and_Text">
<ContentPage>
<forms:SKCanvasView x:Name="CanvasView"
PaintSurface="CanvasView_PaintSurface"
IgnorePixelScaling="True"
HorizontalOptions="Fill"
VerticalOptions="Fill"/>
</ContentPage>
</TabbedPage>
and my C# code is:
namespace Test_SMLibrary {
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Lines_and_Text {
public Lines_and_Text() {
InitializeComponent();
}
private void CanvasView_PaintSurface(object sender, SKPaintSurfaceEventArgs e) {
var surface = e.Surface;
var canvas = surface.Canvas;
var width = e.Info.Width;
var height = e.Info.Height;
canvas.Clear(SKColors.LightGray);
Debug.WriteLine("width: " + width + ", height: " + height);
}
}
}
The Debug write only occurs when the window is resized in the horizontal direction.
It is not executed when the window is resized in the vertical direction. Why?
Charles

Here is my versions:
Also, this is my environment:
Microsoft Visual Studio Professional 2017
Version 15.5.7
VisualStudio.15.Release/15.5.7+27130.2036
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Professional
Visual Basic 2017 00369-60000-00001-AA307
Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA307
Microsoft Visual C# 2017
Visual F# 4.1 00369-60000-00001-AA307
Microsoft Visual F# 4.1
Application Insights Tools for Visual Studio Package 8.10.01106.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.31129.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.51007.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.31106.0
Azure App Service Tools v3.0.0
Clear Recent 1.0.0
Clears recent projects and files lists
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Cookiecutter 3.0.17320.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
JetBrains ReSharper Ultimate 2017.3.2 Build 111.0.20180201.63358
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Continuous Delivery Tools for Visual Studio 0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 4.8.4-pre (3fe64e3)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Python 3.0.17320.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.
Python - IronPython support 3.0.17320.1
Provides templates and integration for IronPython-based projects.
Python - Profiling support 3.0.17320.1
Profiling support for Python projects.
R Tools for Visual Studio 1.3.31108.1213
Provides project system, R Interactive window, plotting, and more for the R programming language.
RelayCommand Extension 1.0
RelayCommand Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61710.120
Microsoft SQL Server Data Tools
TypeScript Tools 15.5.11025.1
TypeScript Tools for Microsoft Visual Studio
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for AI 0.3.3.0
An integrated development environment for AI / Deep Learning application development.
Visual Studio Tools for AI: Azure Batch AI 0.3.3.0
This package provides Azure Batch AI support in Visual Studio Tools for AI.
Visual Studio Tools for AI: Azure Machine Learning 0.3.3.0
This package provides Azure Machine Learning support in Visual Studio Tools for AI.
Visual Studio Tools for AI: Remote Machine 0.3.3.0
This package provides Remote Machine support in Visual Studio Tools for AI.
Visual Studio Tools for Universal Windows Apps 15.0.27130.2036
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.8.0.760 (fc93f3f5b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.1.5.0 (HEAD/75f8c6838)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.6.1.4 (db807ec)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Charles

Related

Windows Visual Studio 2019 and Visual Studio for Mac do not appear to be using the same Xamarin.iOS version or mono SDK version

I have a Xamarin Forms app which has an iOS and Android project in the solution I have made sure there are not updates available for VS 2019 on Windows. When I go to the Mac, launch VS for Mac and select Check for updates from the menu, it says there are two updates as follows:
Mono Framework MDK 6.4.0.208
Xamarin.iOS 13.6.0.12
However, if I install those updates on the Mac, the next time I connect to it from Visual Studio on my windows box, I receive an error message the version of the Mono Framework and Xamarin.iOs installed on the Mac are not compatible with my project and I have to reinstall the older versions on the Mac.
Here is all the information from what is running on my PC:
Microsoft Visual Studio Professional 2019
Version 16.4.2
VisualStudio.16.Release/16.4.2+29613.14
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Professional
Visual C++ 2019 00435-20050-31374-AA182
Microsoft Visual C++ 2019
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
ASP.NET and Web Tools 2019 16.4.457.38025
ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2019 16.4.457.38025
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.4.457.38025
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.4.1000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 16.4.457.38025
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.4.1000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools 3.4.1-beta4-19610-02+c4e5d138903b899477649a17f197abd2bcb22f9e
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.2.0 (d16-2#8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure HDInsight Azure Node 2.4.1000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.4.1000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 16.0
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.4.1000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.21016.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.0.87+gbb515bf382
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Process Editor 1.0
Process Editor for Microsoft Visual Studio Team Foundation Server
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 16.5.24 (1fafd7e)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 5.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.61912.09160
Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript Tools 16.0.11031.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.4.1-beta4-19610-02+c4e5d138903b899477649a17f197abd2bcb22f9e
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Cross Platform Mobile Development (Android) 16.0.29428.195
Visual C++ for Cross Platform Mobile Development (Android)
Visual F# Tools 10.4 for F# 4.6 16.4.0-beta.19556.5+e7597deb7042710a7142bdccabd6f92b0840d354
Microsoft Visual F# Tools 10.4 for F# 4.6
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Container Tools Extensions (Preview) 1.0
View, manage, and diagnose containers within Visual Studio.
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Visual Studio Tools for Kubernetes 1.0
Visual Studio Tools for Kubernetes
VisualStudio.DeviceLog 1.0
Information about my package
VisualStudio.Foo 1.0
Information about my package
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 16.4.000.307 (d16-4#e031886)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 16.4.0.464 (remotes/origin/d16-4#4abf337c3)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 16.4.25 (579ee62)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 10.1.1.0 (d16-4/f2c9364)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: bef1e63
Java.Interop: xamarin/java.interop/d16-4#c4e569f
ProGuard: xamarin/proguard/master#905836d
SQLite: xamarin/sqlite/3.28.0#46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools/master#9f4ed4b
Xamarin.iOS and Xamarin.Mac SDK 13.8.3.0 (0d8fe21)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Any one have any idea why this is happening?
I receive an error message the version of the Mono Framework and
Xamarin.iOs installed on the Mac are not compatible with my project
and I have to reinstall the older versions on the Mac.
Not a older version but a newer version.
If you have Microsoft Visual Studio Professional 2019 Version 16.4.2, it requirs Mono 6.6.0.155 which is newer than Mono Framework MDK 6.4.0.208 Xamarin.iOS 13.6.0.12 you saw in you visual-studio for mac:
In the Visual-Studio for mac, Mono 6.6.0.155 exist in the Preview Channel, so you can update to the latest Mono and Xamarin.iOS there. I updated just now and the both Visual-Studio-for-Windows and Visual-Studio-for-Mac use the same Mono and Xamarin.iOS version.
Release note:
mono/releases/6.6.0
xamarin/ios/release-notes/13/13.8

Logic App and Function App Development in Visual Studio 2019 Preview

I am using the latest Preview version of Visual Studio Enterprise 2019 (16.0.0 Preview 1.1), and I was wondering if I can develop Logic Apps (Logic App Designer) and Function Apps in this version of Visual Studio. To be precise I am trying to use this Extension Azure Logic Apps Tools for Visual Studio.
I am unable to find this extension in Tools -> Extensions and Updates.
Is the extension specifically only for Visual Studio 2017?
I would say you're right, we don't see Azure Logic Apps Tools for Visual Studio in VS2019 preview, because the extension is restricted for VS2017(as described in its Pre-requisites). I assume the upgrade work is underway since it's expected that a preview edition doesn't include everything we need.
For Azure Functions, the extension is built-in once we install Azure Development workload. On VS2019 menus, Help> About Microsoft Visual Studio, we can see Azure Functions and Web Jobs Tools 16.0.01169.

Windows Universal App Development Template Load error

it's quite annoying now just finished with the setup and when trying to build a "Hello World" Application with Visual Studio 2015 Enterprise
---------------------------
Microsoft Visual Studio
---------------------------
Error: this template attempted to load component assembly
'Microsoft.VisualStudio.Universal.TemplateWizards, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information
on this problem and how to enable this template, please see documentation
on Customizing Project Templates.
---------------------------
OK
---------------------------
Now I don't understand what wrong with it. I tried the comunity edition on Windows 8.1 and able to build the apps. but when trying with Enterprise Edition on Windows 10, nothing excepts Error.
Nor Information page list any tools for development.
Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079
Installed Version: Enterprise
Architecture and Modeling Tools 00322-80000-00000-AA627
Microsoft Architecture and Modeling Tools
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
Visual Basic 2015 00322-80000-00000-AA627
Microsoft Visual Basic 2015
Visual C# 2015 00322-80000-00000-AA627
Microsoft Visual C# 2015
Visual C++ 2015 00322-80000-00000-AA627
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 14.0.20711.0
ASP.NET and Web Tools
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.
GitHub.VisualStudio 1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
Indent Guides 14
Indent Guides
Adds visual guides at each indentation level.
Microsoft Azure HDInsight HQL Service 2.0.2200.0
Language service for Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.2200.0
An integrated development environment for HDInsight application development.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
Microsoft Code Digger 0.9
Microsoft Code Digger
Microsoft.Pex.VisualStudio 1.0
Pex
NuGet Package Manager 3.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools
Web Essentials 2015 0.5.144
Adds many useful features to Visual Studio for web developers.
I had the same issue on Windows 10 in VirtualBox.
You must run the visual studio installer again.
Select "Modify" in the Installer.
Select Features > "Windows and Web Development" > "Universal Windows App Development Tools" > Click Update / Install.
Now you will be able to use the vs project template Windows IoT Core.
If such an error came up upon a project from a DirectX project template then make sure you have the UWP workload installed (from Visual Studio Installer).
Maybe you have xamarin for visual studio disabled. Select Tools > "Extensions en Updates" > "Xamarin For visual studio" > Click Enabled.
you can find solution in here.
https://github.com/walbourn/directx-vs-templates/issues/7
above site said,
A workaround for this is to edit C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe.config and add to the section:
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Universal.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.WinRT.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>

Error in PCL projects (MT0011 was built against a more recent runtime (NET_4_0) than MonoTouch supports.)

When i try to deploy my solution from Visual Studio 2012 to a ipad Device or simulator, all PCL projects are giving error like:
MT0011:Cirrious.CrossCore.dll
was built against a more recent runtime (NET_4_0) than MonoTouch supports.
I tried to do Clean and Rebuild all solution with success.
My Xamarin.iOS version is 1.1.200 (stable).
My MonoTouch.xml file in
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks:
<?xml version="1.0" encoding="utf-8"?>
<Framework DisplayName="MonoTouch"
Identifier="MonoTouch"
Profile="*"
MinimumVersion="*"
MaximumVersion="4.0" />
My VS information:
Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50709
Installed Version: Ultimate
GhostDoc 4.5.13017.0
GhostDoc automatically generates XML documentation comments.
Microsoft Advertising SDK for Windows Phone 6.2.923.0
Microsoft Advertising SDK for Windows Phone
Build 6.2.923.0
Microsoft XNA Game Studio 4.0
Microsoft XNA Game Studio 4.0
Build 4.0.40906.0
NuGet Package Manager 2.2.40116.9051
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data Tools
Web Developer Tools 1.2.40308.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.
Xamarin.Android 4.6.08007 (0cc7ae3b)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 1.1.200 (7d63692c)
Visual Studio extension to enable development for Xamarin.iOS
The solution contain projects and not the build Dll.
The problem must be in my pc because a colleague of mine can deploy the same solution to the same pc mac.
Thank you in advance for help,
Paulo Dias
First MT0011 is a warning not an error. It's mean to tell you that some stuff might not work or build correctly later.
My Xamarin.iOS version is 1.1.200
That looks like the version of the add-in for Visual Studio. This is not the version of Xamarin.iOS itself.
To support .NET 4.0 assemblies you need to use Xamarin.iOS 6.3+ which is, right now. available on our beta channel. On promoted to stable it will be known as 6.4.
The current stable release of Xamarin.iOS is 6.2.7. This version is based on Mono 2.10 and still use the 2.1, Silverlight-like, BCL assemblies (which explains your warning).

Windows Azure Tools for Microsoft Visual Studio 2012 Core requires the Visual Web Developer feature to be installed in Visual Studio 2012

i'm trying to install WindowsAzureTools.vs110.exe on mu Windows 7 PC. I have Visual studio 2012 Ultimate installed. The installation of WindowsAzureTools.vs110.exe ends with fatal error: Fatal Error 0x80070643. In the log file there is nothing interesting, but in the event log there is error:
Product: Windows Azure Tools for Microsoft Visual Studio 2012 Core --
Windows Azure Tools for Microsoft Visual Studio 2012 Core requires the
Visual Web Developer feature to be installed in Visual Studio 2012
(Professional or above).
can somebody help what I'm missing?
I have installed full version of VS2012 with all components.
thanks
Could you try installing the full package for Visual Studio instead? Link: http://go.microsoft.com/fwlink/?LinkID=254364&clcid=0x409
And for the manual installation you have to know that there are 2 download pages, maybe you downloaded it from the wrong page:
Windows Azure SDK for .NET - June 2012 -> You need this one if you use VS2012 RC
Windows Azure SDK for .NET - June 2012 SP1 -> You need this one if you use VS2012 RTM

Resources