Cant build my Xamarin.Forms project after recent updates - c#

Im getting this error. And dont have a clue of what to do...
Thanks.
Full error
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error XA0000: Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/eduardoneto/PROJETOS/myapp/myapp.Droid/obj/Debug/lp/78/jl/res/**/*.png".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0015e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:223
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:56
at Xamarin.Android.Tools.Files.CopyIfChanged (System.String source, System.String destination) [0x00033] in <e29c048b3b5443a3a8a19c4ed24d3a3a>:0
at Xamarin.Android.Tasks.MonoAndroidHelper.CopyIfChanged (System.String source, System.String destination) [0x00000] in <e29c048b3b5443a3a8a19c4ed24d3a3a>:0
at Xamarin.Android.Tasks.Crunch.DoExecute (System.Linq.IGrouping`2[TKey,TElement] imageGroup) [0x00095] in <e29c048b3b5443a3a8a19c4ed24d3a3a>:0
at Xamarin.Android.Tasks.AsyncTaskExtensions+<>c__DisplayClass0_1`1[TSource].<WhenAll>b__0 () [0x00000] in <e29c048b3b5443a3a8a19c4ed24d3a3a>:0 (XA0000) (myapp.Droid)
**VS version**
=== Visual Studio Community 2019 for Mac ===
Version 8.5 (build 3183)
Installation UUID: cae51bb2-5449-434c-a2e8-1562ce0250f5
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.14.1.39 (d16-5 / 30e8706b4)
Package version: 608000123
=== Mono Framework MDK ===
Runtime:
Mono 6.8.0.123 (2019-10/1d0d939dc30) (64-bit)
Package version: 608000123
=== Roslyn (Language Service) ===
3.5.0-beta4-20125-04+1baa0b3063238ed752ad1f0368b1df6b6901373e
=== NuGet ===
Version: 5.4.0.6315
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.200/Sdks
SDK Versions:
3.1.200
3.1.102
3.1.101
3.1.100
3.0.101
3.0.100
2.1.701
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
=== Xamarin.Profiler ===
Version: 1.6.12.26
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 11.3.1 (15715)
Build 11E146
=== Xamarin.Mac ===
Version: 6.14.1.39 (Visual Studio Community)
Hash: 30e8706b4
Branch: d16-5
Build date: 2020-02-20 16:41:47-0500
=== Xamarin.Android ===
Version: 10.2.0.100 (Visual Studio Community)
Commit: xamarin-android/d16-5/988c811
Android SDK: /Users/eduardoneto/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.6
SDK Build Tools Version: 29.0.2
Build Information:
Mono: c0c5c78
Java.Interop: xamarin/java.interop/d16-5#fc18c54
ProGuard: xamarin/proguard/master#905836d
SQLite: xamarin/sqlite/3.28.0#46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5#9f4ed4b
=== Microsoft Mobile OpenJDK ===
Java SDK: /Users/eduardoneto/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.5.0.39
Hash: 6fb4c79
Branch: remotes/origin/d16-5
Build date: 2020-02-20 23:25:56 UTC
=== Android Device Manager ===
Version: 16.5.0.71
Hash: 49194e8
Branch: remotes/origin/d16-5
Build date: 2020-02-20 23:26:18 UTC
=== Xamarin Designer ===
Version: 16.5.0.471
Hash: 35aa4889d
Branch: remotes/origin/d16-5
Build date: 2020-02-25 00:52:08 UTC
=== Xamarin.iOS ===
Version: 13.14.1.39 (Visual Studio Community)
Hash: 30e8706b4
Branch: d16-5
Build date: 2020-02-20 16:41:48-0500
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Build Information ===
Release ID: 805003183
Git revision: 60e06e010baa677204535600661dda3fb4677c2f
Build date: 2020-03-20 06:18:03-04
Build branch: release-8.5
Xamarin extensions: 60e06e010baa677204535600661dda3fb4677c2f
=== Operating System ===
Mac OS X 10.15.3
Darwin 19.3.0 Darwin Kernel Version 19.3.0
Thu Jan 9 20:58:23 PST 2020
root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64

This was the solution that i found:
On AndroidManifest.xml file
<AndroidUseAapt2>true</AndroidUseAapt2>
Android build Config

Related

MAUI Entry ClearButton does not clear the text?

So earlier today I was trying to use the internal property for an Entry to clear the text in it.
<Entry
Placeholder="This is a freaky entry"
TextColor="Purple"
ClearButtonVisibility="WhileEditing"
FontSize="Large"
Keyboard="Chat"/>
But when I click on it nothing seems to happen.
Am I missing something here?
Is this the intended behaviour?
If so how do I add the clear button functionality, I don't seem to find a command or a event for it...
Version details:
When I run dotnet --version it says I am running 6.0.400
And in my VS about I have the following configuration:
Visual Studio Enterprise 2022 for Mac Preview
Version 17.4 Preview (17.4 build 715)
Installation UUID: 2aec5c48-b274-4de3-a48e-fb97472a4bd5
Runtime
.NET 6.0.5 (64-bit)
Architecture: Arm64
Roslyn (Language Service)
4.4.0-1.22371.1+c07f2571612b471671c809b5b0db59b0c37aab57
NuGet
Version: 6.2.1.2
.NET SDK (Arm64)
SDK: /usr/local/share/dotnet/sdk/6.0.400/Sdks
SDK Versions:
6.0.400
6.0.301
MSBuild SDKs: /Applications/Visual Studio (Preview).app/Contents/MonoBundle/MSBuild/Current/bin/Sdks
.NET SDK (x64)
SDK Versions:
3.1.422
3.1.420
.NET Runtime (Arm64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
6.0.8
6.0.6
.NET Runtime (x64)
Runtime: /usr/local/share/dotnet/x64/dotnet
Runtime Versions:
3.1.28
3.1.26
Xamarin.Profiler
Version: 1.8.0.19
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Apple Developer Tools
Xcode 13.4.1 (20504)
Build 13F100
Xamarin.Mac
Version: 8.12.0.2 (Visual Studio Enterprise)
Hash: 87f98a75e
Branch: d17-3
Build date: 2022-07-25 20:18:54-0400
Xamarin.Android
Version: 13.0.99.36 (Visual Studio Enterprise)
Commit: xamarin-android/main/b4998c8
Android SDK: /Users/jimtiyg/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
12.0 (API level 31)
11.0 (API level 30)
SDK Command-line Tools Version: 7.0
SDK Platform Tools Version: 33.0.2
SDK Build Tools Version: 33.0.0
Build Information:
Mono: dffa5ab
Java.Interop: xamarin/java.interop/main#032f1e71
SQLite: xamarin/sqlite/3.39.2#40e8743
Xamarin.Android Tools: xamarin/xamarin-android-tools/main#9c641b3
Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.12
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager
Version: 17.4.0.24
Hash: b3b6672
Branch: remotes/origin/HEAD~1
Build date: 2022-08-04 16:29:21 UTC
Android Device Manager
Version: 0.0.0.1179
Hash: 0f220c0
Branch: main
Build date: 2022-08-04 16:29:21 UTC
Xamarin Designer
Version: 17.4.0.32
Hash: 439b92ed7b
Branch: remotes/origin/d17-4
Build date: 2022-08-04 16:29:17 UTC
Xamarin.iOS
Version: 15.12.0.2 (Visual Studio Enterprise)
Hash: 87f98a75e
Branch: d17-3
Build date: 2022-07-25 20:18:55-0400
Build Information
Release ID: 1704000715
Git revision: 09071dadfc1b81e4f0e2c9505cd8a5ef0b41d312
Build date: 2022-08-04 16:26:39+00
Build branch: release-17.4
Build lane: release-17.4
Operating System
Mac OS X 12.5.1
Darwin 21.6.0 Darwin Kernel Version 21.6.0
Wed Aug 10 14:28:23 PDT 2022
root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64
I tested on my actual project (preview version, same as you), and i could replicate your error (in standar version it works) so i made this:
1- Open package manager console
2- dotnet tool install -g Redth.Net.Maui.Check
3- maui-check
4- Check my version (if it's the last one)
And now My entry clear button is Working:
<Entry ClearButtonVisibility="WhileEditing"
BackgroundColor="AliceBlue"
Placeholder="Random Text"/>
Try that please! Package Reference

OmniSharp formatter does not format C# files

The installed ms-dotnettools.csharp (v1.25.0) extension does not seem to format the C# code : my C# files witch I try to format popups me about missing C# formatter
Visual Studio Code
There is no formatter for 'csharp' files installed.
[Cancel] [Install Formatter...]
I open in the VSCode the entire root folder, containing several projects (C#, Angular etc.), and when opening individual Cs files and try to Shift+Alf+F to format the file, it asks me for the formatter.
I have the following VSCode configuration
Visual Studio Code
Version: 1.67.2 (user setup)
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:15:52.058Z (2 wks ago)
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.19044
also this .net installs
.NET SDK (reflecting any global.json):
Version: 5.0.408
Commit: da985e2a23
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.408\
Host (useful for support):
Version: 5.0.17
Commit: 6a98414363
.NET SDKs installed:
3.1.419 [C:\Program Files\dotnet\sdk]
5.0.407 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
I've checked that, reset it and restarted VSCode, but it has any effect:
You need to either update .Net to 6+ or install a previous version of Omnisharp.
Version 1.25.0 requires .Net 6+. If that's not an option for your environment then you can install a previous version of the Omnisharp extension.
In order to do this, press ctrl/cmd + shift + x to bring the extensions side panel, then click on the configurations wheel and select 'Install another version'.
I tried 1.23.12 and the formatter is working now.
If you run into this issue again you can check the output of the extension to check what could be causing it.
I'm not sure if you found it already, but I'll leave it here in case someone else needs it.

(AndroidX) Unable to build "AMM0000" - Xamarin.AndroidX.AppCompat.Resources

When building a Xamarin Android project we sporadically get these exceptions. Any ideas how to remove the flakiness? looks like an Xamarin Android bug?
Steps to Reproduce
Install Xamarin.AndroidX.AppCompat.Resources
Build
See warnings
Expected Behavior
No errors
Actual Behavior
Environment
=== Visual Studio Community 2019 for Mac ===
Version 8.7.8 (build 4)
Installation UUID: 6c568fc0-cf38-440a-8b1a-594e0e92e9ac
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000093
=== Mono Framework MDK ===
Runtime:
Mono 6.12.0.93 (2020-02/620cf538206) (64-bit)
Package version: 612000093
=== Roslyn (Language Service) ===
3.7.0-6.20427.1+18ede13943b0bfae1b44ef078b2f3923159bcd32
=== NuGet ===
Version: 5.7.0.6702
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.402/Sdks
SDK Versions:
3.1.402
3.1.302
3.1.200
3.1.102
3.1.101
3.1.100
3.0.100
2.1.504
2.1.302
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.8
3.1.6
3.1.2
3.1.1
3.1.0
3.0.0
2.1.22
2.1.20
2.1.17
2.1.15
2.1.14
2.1.13
2.1.8
2.1.2
=== Xamarin.Profiler ===
Version: 1.6.12.29
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 12.0.1 (17220)
Build 12A7300
=== Xamarin.Mac ===
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
=== Xamarin.Android ===
Version: 11.0.2.0 (Visual Studio Community)
Commit: xamarin-android/d16-7/025fde9
Android SDK: /Users/curauser/Library/Android/sdk
Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
6.0 (API level 23)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.6
SDK Build Tools Version: 28.0.3
Build Information:
Mono: 83105ba
Java.Interop: xamarin/java.interop/d16-7#1f3388a
ProGuard: Guardsquare/proguard/proguard6.2.2#ebe9000
SQLite: xamarin/sqlite/3.32.1#1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-7#017078f
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/curauser/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.7.0.13
Hash: 8380518
Branch: remotes/origin/d16-7~2
Build date: 2020-09-16 05:12:24 UTC
=== Android Device Manager ===
Version: 16.7.0.24
Hash: bb090a3
Branch: remotes/origin/d16-7
Build date: 2020-09-16 05:12:46 UTC
=== Xamarin Designer ===
Version: 16.7.0.495
Hash: 03d50a221
Branch: remotes/origin/d16-7-vsmac
Build date: 2020-08-28 13:12:52 UTC
=== Xamarin.iOS ===
Version: 14.0.0.0 (Visual Studio Community)
Hash: 7ec3751a1
Branch: xcode12
Build date: 2020-09-16 11:33:15-0400
=== Build Information ===
Release ID: 807080004
Git revision: 9ea7bef96d65cdc3f4288014a799026ccb1993bc
Build date: 2020-09-16 17:22:54-04
Build branch: release-8.7
Xamarin extensions: 9ea7bef96d65cdc3f4288014a799026ccb1993bc
=== Operating System ===
Mac OS X 10.15.6
Darwin 19.6.0 Darwin Kernel Version 19.6.0
Thu Jun 18 20:49:00 PDT 2020
root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
Build Logs
https://gist.github.com/moerabaya/c1cc8fdbb124c17028f82e11adf7595f
Example Project (If Possible)
Packages
1-
2-
3-

IndicatorView is only showing one indicator circle, after upgrading to Xcode 12 (Visual Studio Mac - Xamarin)

I have a carouselview, for showing pictures.
And an Indicatorview, attached to it.
The IndicatorView is only showing one indicator circle, besides more itens should be shown.
If I set a background color, I can see that the parent view is occupying the correct space.
When I slide between pictures, I can see a small animation, but still only one circle at a time.
I've upgraded Xcode to version 12, and my Visual Studio for Mac is with the latest stable version.
The only change I've made, was downloading xamarin.ios-14.0.0.0.pkg, because, without it, it wouldn't start the app on the phone.
My iPhone is with the final iOS 14.
On the App Store, my App wasn't updated.
So, on my phone, with iOS 14, the indicator view works fine.
The problem only happens on the new debugged version.
<Grid
BackgroundColor="Black">
<CarouselView
x:Name="carousel"
IndicatorView="indicatorView">
<CarouselView.ItemTemplate>
<DataTemplate>
<Grid
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Grid.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding TapCommand}"
NumberOfTapsRequired="1">
</TapGestureRecognizer>
</Grid.GestureRecognizers>
<ffimageloading:CachedImage
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
LoadingPlaceholder="loading.gif"
Aspect="AspectFill"
BackgroundColor="Black"
Source="{Binding Url}">
</ffimageloading:CachedImage>
</Grid>
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
<IndicatorView
x:Name="indicatorView"
VerticalOptions="End"
HorizontalOptions="Center"
IndicatorsShape="Circle"
IndicatorSize="8"
IndicatorColor="White"
Margin="0,0,0,15"
SelectedIndicatorColor="LightGray" />
</Grid>
=== Visual Studio Community 2019 for Mac ===
Version 8.7.7 (build 10)
Installation UUID: aa1a670b-2ee7-474a-b67d-f22b879e6add
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000093
=== Mono Framework MDK ===
Runtime:
Mono 6.12.0.93 (2020-02/620cf538206) (64-bit)
Package version: 612000093
=== Roslyn (Language Service) ===
3.7.0-6.20427.1+18ede13943b0bfae1b44ef078b2f3923159bcd32
=== NuGet ===
Version: 5.7.0.6702
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.402/Sdks
SDK Versions:
3.1.402
3.1.401
3.1.302
3.1.301
3.1.300
3.1.200
3.1.102
3.1.101
3.1.100
3.0.101
3.0.100
3.0.100-rc1-014190
3.0.100-preview9-014004
3.0.100-preview8-013656
2.1.701
2.1.505
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
3.0.0-rc1-19456-20
3.0.0-preview9-19423-09
2.1.22
2.1.21
2.1.20
2.1.19
2.1.18
2.1.17
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.9
=== Xamarin.Profiler ===
Version: 1.6.12.26
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 12.0 (17219)
Build 12A7209
=== Xamarin.Mac ===
Version: 6.20.2.2 (Visual Studio Community)
Hash: 817b6f72a
Branch: d16-7
Build date: 2020-07-18 18:44:59-0400
=== Xamarin.iOS ===
Version: 14.0.0.0 (Visual Studio Community)
Hash: 7ec3751a1
Branch: xcode12
Build date: 2020-09-16 11:33:15-0400
=== Xamarin Designer ===
Version: 16.7.0.495
Hash: 03d50a221
Branch: remotes/origin/d16-7-vsmac
Build date: 2020-08-28 13:12:52 UTC
=== Xamarin.Android ===
Version: 11.0.2.0 (Visual Studio Community)
Commit: xamarin-android/d16-7/025fde9
Android SDK: /Users/rafaelrasche/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
7.0 (API level 24)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.4
SDK Build Tools Version: 28.0.3
Build Information:
Mono: 83105ba
Java.Interop: xamarin/java.interop/d16-7#1f3388a
ProGuard: Guardsquare/proguard/proguard6.2.2#ebe9000
SQLite: xamarin/sqlite/3.32.1#1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-7#017078f
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/rafaelrasche/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.7.0.13
Hash: 8380518
Branch: remotes/origin/d16-7~2
Build date: 2020-08-19 22:18:28 UTC
=== Android Device Manager ===
Version: 16.7.0.24
Hash: bb090a3
Branch: remotes/origin/d16-7
Build date: 2020-08-19 22:18:52 UTC
=== Build Information ===
Release ID: 807070010
Git revision: e58142243407a357198d18ee1a37b1e67a702eff
Build date: 2020-09-10 11:48:02-04
Build branch: release-8.7
Xamarin extensions: e58142243407a357198d18ee1a37b1e67a702eff
=== Operating System ===
Mac OS X 10.15.6
Darwin 19.6.0 Darwin Kernel Version 19.6.0
Thu Jun 18 20:49:00 PDT 2020
root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
The IndicatorView is inside a grid, and HorizontalOptions="Center".
I've just found out that that's the actual problem.
If you change it to HorizontalOptions="FillAndExpand", all circles are back.
When you keep this setting as "Center", depending of the number of itens, it could show 1/3 of the circles. I couldn't find the exact formula.
But everything is ok now.
Welcome to SO!
The IndicatorView is only showing one indicator circle, besides more itens should be shown.
From shaed code, I can not seeing where set the x:Name="indicatorView" for CarouselView.
You can modify code as follows:
<CarouselView IndicatorView="indicatorView"> // set indicatorView for CarouselView
<CarouselView.ItemTemplate>
<DataTemplate>
...
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
<IndicatorView
x:Name="indicatorView"
IsVisible="{Binding CarouselVisible}"
VerticalOptions="End"
IndicatorsShape="Circle"
IndicatorSize="8"
IndicatorColor="#666666"
Margin="0,0,0,7"
SelectedIndicatorColor="#cccccc"
HorizontalOptions="Center"
/>

Publishing ASP.NET Core to Ubuntu

Just letting you know that I'm new in Linux and have been trying for a while now to publish a ASP.NET Core website on Linux Ubuntu 18.04.
I have developed a test project in ASP.NET Core 2.1 in Visual Studio 2017 and I'm trying to publish it on Ubuntu 18.04.
I have followed the following steps described in this article:
https://blog.todotnet.com/2017/07/publishing-and-running-your-asp-net-core-project-on-linux/
Instead of publishing the test website described in the article I want to publish my own website. I'm publishing the website in Visual Studio 2017.
After publishing the website to the working directory on Linux I have the following files:
Docker.DotNet.dll
TestCoreWebsite1.deps.json
TestCoreWebsite1.dll
TestCoreWebsite1.pdb
TestCoreWebsite1.runtimeconfig.json
TestCoreWebsite1.Views.dll
TestCoreWebsite1.Views.pdb
web.config
When I type in the command in Linux terminal "journalctl -xe" I get the following error:
realpath(): Permission denied
System.UnauthorizedAccessException: Access to the path '/var/www/.dotnet' is denied. ---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOpt
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.File.Create(String path)
at Microsoft.Extensions.EnvironmentAbstractions.FileWrapper.CreateEmptyFile(String path)
at Microsoft.DotNet.Configurer.FileSentinel.Create()
at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel, IFirstTimeUseNot
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
tcore.service: Main process exited, code=exited, status=1/FAILURE
tcore.service: Failed with result 'exit-code'.
It tells me that "/var/www/.dotnet" is denied. In actual fact is that this path doesn't even exists.
What should I do to fix this problem?
Strange by following the steps of this article it still doesn't work.
leo#leo-virtual-machine:/var/www$ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.1.401
Commit: 91b1c13032
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/2.1.401/
Host (useful for support):
Version: 2.1.3
Commit: 124038c13e
.NET Core SDKs installed:
2.1.401 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.0-preview1-002111-00 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
leo#leo-virtual-machine:/var/www$ dotnet --version
2.1.401
Is there a problem because I have multiple versions off .NET Core runtimes installed?

Categories