profile
viewpoint
Lluis Sanchez slluis Microsoft Barcelona, Spain VS for Mac dev lead at Microsoft

netonjm/HapSharp 48

HomeKit Accessory Server .Net bridge!

mono/guiunit 13

A unit test runner which interoperates with any Gui main loop

slluis/cydin 13

Add-in repository for Mono.Addins based applications

slluis/mono-addins 5

Mono.Addins is a generic framework for creating extensible applications, and for creating add-ins which extend those applications.

slluis/ShowInGithub 5

Add-in for MonoDevelop which can be used to jump to a source code line in Github

slluis/dotnetopenid 3

A C# implementation of the OpenID, OAuth and InfoCard protocols

slluis/ngit 3

ngit

slluis/fsharpbinding 2

F# language binding for MonoDevelop

slluis/GitSharp 2

A Git implementation for .Net and Mono

PullRequestReviewEvent

push eventmono/mono-addins

Alexander K枚plinger

commit sha 3d58ee571727919ccfd29f7fe382634dc9dc4ef6

Rename master branch to main

view details

Lluis Sanchez

commit sha 0fa6fcf837c302f0c581d377d324bc1dd1f78ff3

Minor perf optimization Revert some conditions in AddinFolderVisitor so that the fastest condition is evaluated first

view details

Lluis Sanchez

commit sha 8e4463eabb143b13a9dcbc0d660bce166668eb26

Merge pull request #172 from mono/dev/lluis/little-optimization Minor perf optimization

view details

Lluis Sanchez

commit sha ac91273040664a659c4b9aaecb9c9e027c0a0329

Merge remote-tracking branch 'origin/main' into dev/lluis/convert-core-to-net6

view details

push time in 18 days

create barnchmono/debugger-libs

branch : net6-nuni3

created branch time in 22 days

issue commentxamarin/xamarin-macios

Unit test projects don't work when target framework is net6.0-macos

That vstest issue is related, but maybe not the same, not sure. In mac app case, the problem is not running vstest-console. It is ok to run it using dotnet. The problem is the host process that runs the tests, which is a different process started by vstest-console. This process is implemented in testhost.dll and started using "dotnet" by vstest-console. If I understand it correctly, what we need is vstest-console to start a testhost mac app that can run the tests.

slluis

comment created time in a month

issue openedxamarin/xamarin-macios

Unit test projects don't work when target framework is net6.0-macos

<!-- 馃毃 STOP 馃毃 饾棪饾棫饾棦饾棧 馃毃 饾懞饾懟饾懚饾懛 馃毃 -->

<!-- Please fill in the entire template below. The template is designed to avoid unnecessary delays to confirm and fix reported issues. Issues with missing information generally end up with a need-info label and take significantly more time to fix. Please help us help you! For more information see https://github.com/xamarin/xamarin-macios/wiki/Submitting-Bugs-&-Suggestions For support requests use https://www.xamarin.com/support -->

Steps to Reproduce

  1. Build the attached sample
  2. On a terminal, cd to the project directory and run "dotnet test"

Expected Behavior

Test project should run fine

Actual Behavior

Execution fails with "System.DllNotFoundException : Could not find the runtime library libxammac.dylib"

Environment

Visual Studio Community 2022 for Mac Preview
Version 17.0 Preview (17.0 build 5499)
Installation UUID: 756b579c-523c-405c-86c8-c16aec2b68a0

Runtime
.NET 6.0.0-rtm.21518.12 (64-bit)
Architecture: X64

Roslyn (Language Service)
4.1.0-1.21511.14+c09d760509f00afadf0fa9b6ee7d0c53b70943ca

NuGet
Versi贸n: 6.0.0.262

.NET SDK
SDK: /usr/local/share/dotnet/sdk/6.0.100-rtm.21521.3/Sdks
Versiones del SDK:
	6.0.100-rtm.21521.3
	5.0.302
	5.0.301
	5.0.203
	5.0.202
	5.0.103
	5.0.101
	5.0.100
	5.0.100-rc.2.20479.15
	5.0.100-rc.1.20452.10
	5.0.100-preview.5.20279.10
	3.1.413
	3.1.411
	3.1.410
	3.1.409
	3.1.408
	3.1.406
	3.1.404
	3.1.403
	3.1.402
	3.1.200
	3.1.101
	3.1.100
	3.1.100-preview3-014645
	3.1.100-preview1-014459
	3.0.100
	3.0.100-rc1-014190
	3.0.100-preview9-014004
	3.0.100-preview8-013656
	3.0.100-preview7-012821
	2.2.203
	2.2.104
	2.1.811
	2.1.810
	2.1.701
	2.1.700
	2.1.603
	2.1.302
	2.1.4
SDK de MSBuild: /usr/local/share/dotnet/sdk/6.0.100-rtm.21521.3/Sdks

.NET Core Runtime
Runtime: /usr/local/share/dotnet/dotnet
Versiones de tiempo de ejecuci贸n:
	6.0.0-rtm.21518.12
	5.0.8
	5.0.7
	5.0.6
	5.0.5
	5.0.3
	5.0.1
	5.0.0
	5.0.0-rc.2.20475.5
	5.0.0-rc.1.20451.14
	5.0.0-preview.5.20278.1
	3.1.19
	3.1.17
	3.1.16
	3.1.15
	3.1.14
	3.1.12
	3.1.10
	3.1.9
	3.1.8
	3.1.2
	3.1.1
	3.1.0
	3.1.0-preview3.19553.2
	3.1.0-preview1.19506.1
	3.0.3
	3.0.2
	3.0.0
	3.0.0-rc1-19456-20
	3.0.0-preview9-19423-09
	3.0.0-preview7-27912-14
	2.2.7
	2.2.4
	2.2.2
	2.1.23
	2.1.22
	2.1.16
	2.1.15
	2.1.14
	2.1.13
	2.1.12
	2.1.11
	2.1.10
	2.1.2
	2.0.5

.NET 5.0 SDK
SDK: 5.0.302

SDK de .NET Core 3.1
SDK: 3.1.413

Xamarin.Profiler
Versi贸n: 1.6.15.68
Ubicaci贸n: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Versi贸n: 11

Apple Developer Tools
Xcode 13.1 (19466)
Build 13A1030d

Xamarin.Mac
Version: 7.11.2.12 (Visual Studio Community)
Hash: 36c9df625
Branch: registrar-never-really-static-on-macos-d16-10-preview2-bumped-mono
Build date: 2021-10-07 14:55:30-0400

Xamarin.iOS
Version: 15.0.0.6 (Visual Studio Community)
Hash: 2771277e0
Branch: xcode13-ios
Build date: 2021-09-23 10:36:08-0400

Xamarin.Android
Versi贸n: 11.3.99.54 (Visual Studio Community)
"Commit": xamarin-android/main/0e5e06f
Android SDK: /Users/lluis/Library/Developer/Xamarin/android-sdk-macosx
	Versiones de Android admitidas:
		4.4    (nivel de API 19)
		4.4.87 (nivel de API 20)
		5.0    (nivel de API 21)
		5.1    (nivel de API 22)
		6.0    (nivel de API 23)
		7.0    (nivel de API 24)
		7.1    (nivel de API 25)
		8.0    (nivel de API 26)
		8.1    (nivel de API 27)

Versi贸n de SDK Tools: 26.1.1
Versi贸n de las herramientas de plataforma del SDK: 30.0.5
Versi贸n de las herramientas de compilaci贸n del SDK: 30.0.2

Informaci贸n de compilaci贸n: 
Mono: c633fe9
Java.Interop: xamarin/java.interop/main@a5ed891
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@683f375

Microsoft OpenJDK for Mobile
Java SDK: /Users/lluis/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
El c贸digo EPL de Android Designer est谩 disponible EPL:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: 17.1.0.14
Hash: 9c65d8a
Branch: remotes/origin/HEAD
Build date: 2021-10-27 10:15:31 UTC

Android Device Manager

Build Logs

<!--

  1. Place cursor below this comment block.
  2. Attach build log or link to gist (https://gist.github.com/) of the log.
  3. Logs can be found in the Build Output tab of the Errors pad in Visual Studio To get full build logs, set the log verbosity to diagnostic at the following locations:
  • On Visual Studio for Mac: Preferences > Projects > Build
  • On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run On Visual Studio for Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties. -->

Example Project (If Possible)

<!--

  1. Place cursor below this comment block.
  2. Drag and drop the compressed project or files needed to reproduce. --> NormalTest.zip <!-- Switch to the "Preview" tab to ensure your issue renders correctly. -->

created time in a month

issue openedxamarin/xamarin-macios

[.NET 6] Big delays in native objects deallocation

<!-- 馃毃 STOP 馃毃 饾棪饾棫饾棦饾棧 馃毃 饾懞饾懟饾懚饾懛 馃毃 -->

<!-- Please fill in the entire template below. The template is designed to avoid unnecessary delays to confirm and fix reported issues. Issues with missing information generally end up with a need-info label and take significantly more time to fix. Please help us help you! For more information see https://github.com/xamarin/xamarin-macios/wiki/Submitting-Bugs-&-Suggestions For support requests use https://www.xamarin.com/support -->

Steps to Reproduce

  1. Build the attached sample. The sample shows a window with a "Create Views" button. Every time the button is clicked it creates 1000 instances of a view that contains a NSTextView. The views are not stored anywhere so the expectation is that those views should be GCed.
  2. Start the sample using Instruments, with the allocation profiler
  3. In Instruments, filter by "NSTextView"
  4. Click on the "Create Views" button several times

Expected Behavior

Every time the button is clicked the NSTextView instance count should be increased by 1000 and then gradually decrease to 0 as the GC starts collecting the views.

Actual Behavior

This is what I'm experiencing in my machine:

  • after the first click 1000 NSTextView instances are created, and none freed.
  • after the second click 2000 NSTextView instances are created, and none freed.
  • after the third click 1513 NSTextView instances are alive, 1487 freed
  • after that, the live instance count keeps growing by 1000 on every click, and freed count stays at 1487
  • on the 15th click, the UI freezes and instances start being freed, slowly. The live instance count starts decreasing from around 14000 to 1612. That takes a minute or two, and the UI is completely frozen in that period.

Environment

Visual Studio Community 2022 for Mac Preview Version 17.0 Preview (17.0 build 5317) Installation UUID: 756b579c-523c-405c-86c8-c16aec2b68a0

Runtime .NET 6.0.0-rc.2.21470.23 (64-bit) Architecture: X64

Roslyn (Language Service) 4.0.0-5.21501.19+8e1779e16298415843e85029d8b52a1ae9bb4c30

NuGet Versi贸n: 6.0.0.220

.NET SDK SDK: /usr/local/share/dotnet/sdk/6.0.100-rtm.21521.3/Sdks Versiones del SDK: 6.0.100-rtm.21521.3 5.0.302 5.0.301 5.0.203 5.0.202 5.0.103 5.0.101 5.0.100 5.0.100-rc.2.20479.15 5.0.100-rc.1.20452.10 5.0.100-preview.5.20279.10 3.1.413 3.1.411 3.1.410 3.1.409 3.1.408 3.1.406 3.1.404 3.1.403 3.1.402 3.1.200 3.1.101 3.1.100 3.1.100-preview3-014645 3.1.100-preview1-014459 3.0.100 3.0.100-rc1-014190 3.0.100-preview9-014004 3.0.100-preview8-013656 3.0.100-preview7-012821 2.2.203 2.2.104 2.1.811 2.1.810 2.1.701 2.1.700 2.1.603 2.1.302 2.1.4 SDK de MSBuild: /usr/local/share/dotnet/sdk/6.0.100-rtm.21521.3/Sdks

.NET Core Runtime Runtime: /usr/local/share/dotnet/dotnet Versiones de tiempo de ejecuci贸n: 6.0.0-rtm.21518.12 5.0.8 5.0.7 5.0.6 5.0.5 5.0.3 5.0.1 5.0.0 5.0.0-rc.2.20475.5 5.0.0-rc.1.20451.14 5.0.0-preview.5.20278.1 3.1.19 3.1.17 3.1.16 3.1.15 3.1.14 3.1.12 3.1.10 3.1.9 3.1.8 3.1.2 3.1.1 3.1.0 3.1.0-preview3.19553.2 3.1.0-preview1.19506.1 3.0.3 3.0.2 3.0.0 3.0.0-rc1-19456-20 3.0.0-preview9-19423-09 3.0.0-preview7-27912-14 2.2.7 2.2.4 2.2.2 2.1.23 2.1.22 2.1.16 2.1.15 2.1.14 2.1.13 2.1.12 2.1.11 2.1.10 2.1.2 2.0.5

.NET 5.0 SDK SDK: 5.0.302

SDK de .NET Core 3.1 SDK: 3.1.413

Xamarin.Profiler Versi贸n: 1.6.15.68 Ubicaci贸n: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater Versi贸n: 11

Xamarin Designer Version: 17.1.0.1 Hash: 8777be47e Branch: remotes/origin/main Build date: 2021-10-21 17:50:43 UTC

Apple Developer Tools Xcode 12.4 (17801) Build 12D4e

Xamarin.Mac Version: 7.11.2.12 (Visual Studio Community) Hash: 36c9df625 Branch: registrar-never-really-static-on-macos-d16-10-preview2-bumped-mono Build date: 2021-10-07 14:55:30-0400

Xamarin.iOS Version: 15.0.0.6 (Visual Studio Community) Hash: 2771277e0 Branch: xcode13-ios Build date: 2021-09-23 10:36:08-0400

Xamarin.Android Versi贸n: 11.3.99.54 (Visual Studio Community) "Commit": xamarin-android/main/0e5e06f Android SDK: /Users/lluis/Library/Developer/Xamarin/android-sdk-macosx Versiones de Android admitidas: 4.4 (nivel de API 19) 4.4.87 (nivel de API 20) 5.0 (nivel de API 21) 5.1 (nivel de API 22) 6.0 (nivel de API 23) 7.0 (nivel de API 24) 7.1 (nivel de API 25) 8.0 (nivel de API 26) 8.1 (nivel de API 27)

Versi贸n de SDK Tools: 26.1.1 Versi贸n de las herramientas de plataforma del SDK: 30.0.5 Versi贸n de las herramientas de compilaci贸n del SDK: 30.0.2

Informaci贸n de compilaci贸n: Mono: c633fe9 Java.Interop: xamarin/java.interop/main@a5ed891 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.35.4@85460d3 Xamarin.Android Tools: xamarin/xamarin-android-tools/main@683f375

Microsoft OpenJDK for Mobile Java SDK: /Users/lluis/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 El c贸digo EPL de Android Designer est谩 disponible EPL: https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager Version: 17.1.0.14 Hash: 9c65d8a Branch: remotes/origin/HEAD Build date: 2021-10-21 17:50:45 UTC

Android Device Manager

Build Logs

<!--

  1. Place cursor below this comment block.
  2. Attach build log or link to gist (https://gist.github.com/) of the log.
  3. Logs can be found in the Build Output tab of the Errors pad in Visual Studio To get full build logs, set the log verbosity to diagnostic at the following locations:
  • On Visual Studio for Mac: Preferences > Projects > Build
  • On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run On Visual Studio for Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties. -->

Example Project

Sample.zip

created time in a month

push eventslluis/maui

Lluis Sanchez

commit sha 3ea363924d29931066a734689dc804acfeddcbff

Add support for native view embedding

view details

push time in a month

push eventslluis/maui

Lluis Sanchez

commit sha 5cd42bbbb5899b2456484772df8a01ee53aff643

Fix layout support

view details

push time in 2 months

push eventslluis/maui

Lluis Sanchez

commit sha 31e3df17cc1fea0746c8d4de24f63cf84e341552

Fix content view sizing

view details

push time in 2 months

push eventslluis/maui

Lluis Sanchez

commit sha 3f858a854fbaf10bd0984962759c44cba60b4542

Implement more mac api

view details

push time in 2 months

push eventslluis/maui

author

commit sha 524a4b2f053dede688a07746920d5232c0b93e1a

Implement some methods in MauiView

view details

push time in 2 months

push eventslluis/maui

author

commit sha 29eea6b47c489b3ddbea11fa3855e878e018502a

Fix ContainerViewController initialization

view details

push time in 2 months

push eventslluis/maui

author

commit sha 5cd09de89a4be39e13fa1a2ae42bde8d65e5163d

Fix sample

view details

push time in 2 months

push eventslluis/maui

author

commit sha 706d9f9c5e8e1e97915aea1bd5b45edb0e82047a

Initial work on PageHandler

view details

push time in 2 months

push eventslluis/maui

author

commit sha a441f1c10a5b816bbeda1e2b62bafe943d321c03

Add ResourcesProvider implementation for mac

view details

push time in 2 months

push eventslluis/maui

author

commit sha 211727e9c1cb3c08e2cdfb818df5eb808a73ecd9

Update sample

view details

push time in 2 months

push eventslluis/maui

author

commit sha f69ea9cf5c924b922f428a5c300e8f8248e3882b

Add missing file

view details

push time in 2 months

push eventslluis/maui

author

commit sha 54c596c0db562533e0c943d47e20f67f94110698

Add sample mac app

view details

push time in 2 months

push eventslluis/maui

author

commit sha e922111e419258f9b96421642b40720a93c437d4

Fix ImageButtonHandler

view details

push time in 2 months

push eventslluis/maui

author

commit sha 73905fc17e0f520f222cab4e6e68e64fee7bdabc

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha 4324001de4e956b428fb332992fc644425e1e473

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha d5ac599ed5653e6407209e1a13a3ac537d03c984

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha 9466a1b25e63110ba6e14aed24855014f84abe03

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha a3d59b17db1598cf6baeabe8e05f298eb3b0fef6

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha cedc92eef9fa73e6e96ace8db17db3b69ed0af1f

Add more wrappers

view details

author

commit sha 8f8c5c555c6575ab5ab7efe7967293128e6edce1

More wrappers

view details

author

commit sha ea325c804081113c654fdc14f1f715497400ce00

More wrappers

view details

push time in 2 months

MemberEvent

push eventslluis/maui

author

commit sha 1eaeedcde2c8bf1dd8a45b1751988fff2f883797

Add more wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha 0b52e3d876e3dabb46dd2f48c903eac4a17f5a56

More wrappers

view details

author

commit sha 3ba775fa31509cf53f9a594e5e139a5c1abd03b0

Add more wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha 9ed558436da02fc837407f004242df6df7518d1c

More wrappers

view details

push time in 2 months

push eventslluis/maui

author

commit sha 57ab5838fc07918439d8a1189b1ece0994df8826

Add more wrappers

view details

push time in 2 months

more