Installation error xamarin rider

JetBrains Rider supports creating and working with Xamarin applications for both Android and iOS. Although currently JetBrains Rider does not provide a designer or a previewer for Xamarin forms, you can still benefit from code analysis, coding assistance, and debugging features in C#, VB.NET, and other languages, as well as from general IDE features, such as the integrated VCS client.

JetBrains Rider supports creating and working with Xamarin applications for both Android and iOS. Although currently JetBrains Rider does not provide a designer or a previewer for Xamarin forms, you can still benefit from code analysis, coding assistance, and debugging features in C#, VB.NET, and other languages, as well as from general IDE features, such as the integrated VCS client.

If other tools that Xamarin relies on (for example, Android SDK, Android Emulator) are configured properly, you will be able to build and run your Xamarin application right from the JetBrains Rider IDE.

Xamarin SDK

To develop Xamarin Applications you need to have a Xamarin SDK on your machine. There are two different Xamarin SDKs — for iOS/Mac and for Android.

Xamarin SDK consists of two parts:

  • Assemblies with .NET types for the target platform. For example, a .NET type to represent the base OSX NSObject. Using these assemblies, IDE and compiler resolve and build user code.

  • Tools that transform .NET projects into native applications, which can be deployed and executed on the emulator or a physical device. For example, using these tools .apk packages for Android are built.

JetBrains Xamarin SDK

JetBrains Rider can use different Xamarin SDKs, for example the one from Visual Studio. However, if you do not have Visual Studio on your machine, you can use JetBrains Xamarin SDK prepared and packed by the JetBrains Rider team.

JetBrains Xamarin SDK is a custom build of Xamarin GitHub sources with some improvements and additional code.

Currently JetBrains Xamarin SDK lacks some features compared to Visual Studio Xamarin SDK, but it is in the process of constant improvement.

JetBrains Xamarin SDK is available for Windows and macOS:

There are two JetBrains Xamarin SDK builds available on Windows targeting the following platforms:

Apple platform (iOS, Mac, tvOS, watchOS)

JetBrains Xamarin SDK for iOS development provides a limited feature set on Windows. For example, currently it does not support connecting to a remote Mac and perform full build/deploy.

JetBrains Xamarin SDK for Apple platforms on Windows ships as a .zip file (~ 60Mb) and installs into the JetBrains MsBuild directory:

%LOCALAPPDATA%JetBrainsBuildTools.

Android

JetBrains Xamarin SDK for Android development provides a solid feature set. However, fast deployment is currently not supported.

JetBrains Xamarin SDK for Android platforms on Windows ships as a .zip file (~ 700Mb) and installs into the JetBrains MsBuild directory:

%LOCALAPPDATA%JetBrainsBuildTools

There are two JetBrains Xamarin SDK builds available on macOS targeting the following platforms:

Apple platform (iOS, Mac, tvOS, watchOS)

On macOS, JetBrains Xamarin SDK for Apple platforms provides almost the same feature set as Visual Studio SDK, all known scenarios are supported.

JetBrains Xamarin SDK for iOS development on macOS ships as a .dmg file (~ 700Mb) and installs into:

  • /Library/Frameworks/Xamarin.iOS.framework

  • /Library/Frameworks/Xamarin.Mac.framework

  • /Library/Frameworks/Mono.framework/External

Android

JetBrains Xamarin SDK for Android development provides a solid feature set. However, fast deployment is currently not supported.

JetBrains Xamarin SDK for Android development on macOS ships as a .dmg file (~ 700Mb) and installs into:

  • /Library/Frameworks/Xamarin.Android.framework

  • /Library/Frameworks/Mono.framework/External

Before you start

Xamarin aims to be executed on a variety of different platforms and therefore Xamarin development relies on several different tools for building and running your applications.

On Windows, you can develop Xamarin applications for any platform, but local build and run/debug is limited to Android devices and emulators.

If you use Visual Studio Xamarin SDK, you will be able to build and run your application on iOS and macOS. To do so, configure a Mac agent accessible on the network, and then connect to it ().

  1. Install a Xamarin SDK for iOS on your machine in one of the following ways.

    • Install Xamarin in Visual Studio. Note that you can use Visual Studio Community, which is free. If you already have Visual Studio installed, you have to add Xamarin support to it.

    • Start installation of Xamarin iOS & Mac on the page of JetBrains Rider settings Ctrl+Alt+S and follow the installation wizard. This way JetBrains Rider will automatically download and install JetBrains Xamarin SDK for iOS & Mac.

    • Alternatively you can clone the Xamarin open-source repo from GitHub, build it and install on the machine. This way is quite complicated and we do not recommend it.

  2. Install Android development tools in one of the following ways:

    • Start installation of Xamarin Android on the page of JetBrains Rider settings Ctrl+Alt+S and follow the installation wizard. This way JetBrains Rider will automatically download and install JetBrains Xamarin SDK for Android.

    • Alternatively, all components that are automatically installed on the the page of JetBrains Rider settings Ctrl+Alt+S, could be also installed manually:

      • Rider Xamarin Android Support plugin. It has all necessary features, like Android SDK manager.

      • Android SDK developed and provided by Google. You can install it from Visual Studio, Android Studio, Rider (with Rider Xamarin Android Support plugin), or downloaded as a set of command line tools.

      • Java SE Development Kit (JDK)

On macOS, you can develop, build and run fully cross-platform Xamarin applications.

  1. Install a Xamarin SDK on your machine in one of the following ways.

    • Install Visual Studio for Mac.

    • Start installation of Xamarin iOS & Mac on the page of JetBrains Rider settings Ctrl+Alt+S and follow the installation wizard. This way JetBrains Rider will automatically download and install JetBrains Xamarin SDK for iOS & Mac.

    • Alternatively you can clone the Xamarin open-source repo from GitHub, build it and install on the machine. This way is quite complicated and we do not recommend it.

  2. For iOS and Mac development, install Xcode. You will need an Apple ID for installing and signing into Xcode. If you do not already have it, you can create a new one at https://appleid.apple.com.

    JetBrains Rider will detect Xcode automatically. If you have several Xcode versions, you can choose which one to use on the page of JetBrains Rider settings Ctrl+Alt+S.

  3. Install Android development tools in one of the following ways:

    • Start installation of Xamarin Android on the page of JetBrains Rider settings Ctrl+Alt+S and follow the installation wizard. This way JetBrains Rider will automatically download and install JetBrains Xamarin SDK for Android.

    • Alternatively, all components that are automatically installed on the the page of JetBrains Rider settings Ctrl+Alt+S, could be also installed manually:

      • Rider Xamarin Android Support plugin. It has all necessary features, like Android SDK manager.

      • Android SDK developed and provided by Google. You can install it from Visual Studio, Android Studio, Rider (with Rider Xamarin Android Support plugin), or downloaded as a set of command line tools.

      • Java SE Development Kit (JDK)

You can check the status of Xamarin tools and install or update them on the page of JetBrains Rider settings Ctrl+Alt+S:

JetBrains Rider: Environment settings

Create and open Xamarin projects

JetBrains Rider supports creating new and working with existing projects. Project templates are available, too.

You can create a new Xamarin project in a new solution using or add a new Xamarin project to the existing solution by right-clicking the solution or solution folder node in the Solution Explorer, and choosing .

JetBrains Rider: New Solution wizard. Xamarin

Xcode integration on macOS

When developing Xamarin applications on macOS, it is recommended to edit resource files and connect resources to code using Xcode.

You can use context menus of .storyboard, .xib, .plist files or of the Xamarin macios project node to open them in Xcode.

If the file or project has never been opened in Xcode before, JetBrains Rider will generate an Xcode project as follows:

  • xcodeproj project specifications (a project descriptor similar to csproj but for Xcode) is generated

  • Source files for all user types inherited NSObject (forms, delegates, views, controls, and so on) in Objective C are generated

  • All resources (images, designer files) are copied

When the project structure is ready, Xcode will start automatically and you can use it to edit resources. Every time Rider receives focus, it looks for changes (edits in existing files, new files, removed files) and integrates these changes into the Xamarin .NET project. It modifies .designer.cs parts of user types (inherited from NSObject) and copies back all changed resources.

All Xcode-related events are printed in the Xcode console tool window, which appears when you open resources or projects in Xcode:

Xamarin development in JetBrains Rider: Xcode console

How it works under the hood

When you create a new Xamarin macios project

  1. JetBrains Rider creates the corresponding xcodeproj project (pbxproj and other necessary files) project in the objxcode subdirectory with all required settings and configurations.

  2. Copies of all content files (views, plist files, images, and so on) are created in that directory.

  3. For each ViewController type JetBrains Rider generates an objc class with actions and outlets.

  4. The generated project is opened automatically in Xcode.

When you made changes in Xcode and then switch to Rider

  1. All modified content files are copied back into .NET project.

  2. Settings are updated.

  3. objc files are parsed and *.designer.cs files are regenerated for view controllers. For all these files you will see a generated header:

    // WARNING
    //
    // This file has been generated automatically by Rider IDE
    // to store outlets and actions made in Xcode.
    // If it is removed, they will be lost.
    // Manual changes to this file may not be handled correctly.

Run and debug Xamarin applications

When you create or open a Xamarin project, JetBrains Rider automatically creates run/debug configurations for each Xamarin project in the solution.

If you want to adjust something in the way your application starts and executes, you can edit and create new run/debug configurations. When you start a Xamarin application from the IDE, you can use the corresponding selector on the navigation bar to choose which configuration should be used:

JetBrains Rider: Choosing a run/debug configuration for Xamarin application

Debug a Xamarin project, which was not created with JetBrains Rider

  1. Press Ctrl+Alt+S to open the IDE settings and select .

  2. Enable Xamarin Android and Xamarin iOS & Mac support.

    If you are on Windows and have Xamarin SDK installed via Visual Studio, it will be detected automatically. Otherwise, JetBrains Rider will suggest installing JetBrains Xamarin SDK.

  3. Once Xamarin SDK is installed, you can create Xamarin-specific run/debug configurations.

  4. Open the Run/Debug Configuration dialog in one of the following ways:

    • Select from the main menu.

    • With the Navigation bar visible (), choose from the run/debug configuration selector.

    • Press Alt+Shift+F10 and then press 0.

  5. In the Run/Debug Configuration dialog that opens, press Alt+Insert or click Add, then choose Xamarin.Android, Xamarin.iOS, or Xamarin.Mac from the list.

  6. Specify the target project and other parameters if necessary, then click OK.

  7. Use the newly created configuration to run and debug your Xamarin project.

Webinar recording: Better Xamarin Development with Rider for Mac

You can also watch this webinar recording where Dylan Berry explores the various ways Rider can help you improve your coding speed and quality when developing Xamarin apps.

Webinar agenda:

  • 0:05 – Introduction

  • 1:22 – Tools are important

  • 11:00 – Get started with Rider on Mac

  • 13:43 – Exploring Rider

  • 1:04:46 – Plugins

Last modified: 24 August 2022

I’m Andrew Hoefling, and I work for FileOnQ as a Lead Software Engineer building mobile technologies for Government, Financial and First Responders using Xamarin. 

4/24/2019


New machine and new project means getting to test drive a new way of development Xamarin and Xamarin.Forms applications. I have a clean Surface Book 2 running Windows 10 that I installed the latest and greatest version of Visual Studio 2019 and JetBrains Rider 2018.3.4. After configuring my emulators and everything in Visual Studio, I load up JetBrains Rider and nothing seems to work correctly. Why does it work in Visual Studio 2019 but not JetBrains Rider?

JetBrains Rider

JetBrains Rider is an amazing editor which is built on the exact same shell as Android Studio and many other editors. If you want to learn more about the differences between Visual Studio and JetBrains Rider, check out this presentation from my good friend Dylan Berry who convinced me to start using JetBrains Rider.

The Problem

After getting everything installed correctly, I created a sample Xamarin.Forms application in Visual Studio 2019. Created my emulator, launched my app and everything appeared to work without issue. A simple Hello World app that comes with the standard template.

Heading over to JetBrains Rider, I follow the same step, except I got multiple errors during the deployment phase. As well as no emulators appearing in the selection dropdown.

Digging a little deeper into the problem, I noticed that there were errors in the ADB connection when I tried to use JetBrains Rider’s file storage connection window. 

JetBrains Forums

Searching the forums didn’t really seem to help, I found answers such as

  • Delete all your emulators and start over

These really didn’t make sense to me. If you are still struggling with this exact same problem, read on!

Installation Path

When I installed Visual Studio 2019 the default Android SDK path was set to

C:Program Files (x86)Android

Permissions, Permissions, Permissions

The windows file system gets very particular on what apps can read, write and execute certain files that are in certain locations. For example files on the `C Drive` or in `Program Files` are going to have different permissions than files that are in `Documents` or `Downloads`. As the later are user files vs the `Program Files` are system wide and typically require administrator permission.

The standard Windows Android SDK Installation Path

C:Users{User}AppDataLocalAndroidandroid-sdk

where {user} is your username

C:UsersAndrewHoeflingAppDataLocalAndroidandroid-sdk

Once updating the Android SDK you will need to update the SDK location in both Visual Studio and JetBrains Rider

JetBrains Rider Android SDK

  1. Launch JetBrains Rider and open project
  2. Navigate to the Android SDK via Tools > Android > SDK Manager
  3. Click Edit next to the Android SDK Path

Visual Studio Android SDK

  1. Navigte to the Visual Studio Options via Tools > Options
  2. Scroll down to the bottom, and select Xamarin
  3. Update the Android SDK Location

Conclusion

When integrating different tools to complete your Xamarin (Android) Development Environment be aware that some of the non-Microsoft tools require permissions that Visual Studio handles for you.

Running as an elevated user isn’t always the answer (as that didn’t solve my problem)

-Happy Coding


Share

Tags

ToolingVisual StudioJetBrains RiderSDKAndroid


TL; DR; Являются ли проекты Xamarin Forms с .NET Standard library 2.0 поддерживаемыми в Rider?

Я создал небольшой проект Xamarin в Visual Studio 2017.3 (Windows) с помощью мастера мультиплатформенных приложений форм. Microsoft отказалась от возможности создания PCL недавно в версии VS для Windows и только для .NET. Таким образом, я выбрал этот.

Теперь я хотел попробовать разработку на Mac напрямую с помощью Rider, так что мне не нужно запускать виртуальную машину Windows (мне очень нравится Resharper, поэтому я привязан к Windows на своем Mac)

Когда я открываю этот проект в Rider на Mac OS, он выдает кучу ошибок, и похоже, что все пути перепутаны. Открытие его в VS для Mac работает отлично, с другой стороны.

Затем я создал новый пустой проект в VS на Mac с PCL, а Rider открывает его без жалоб. Итак, мой вопрос:
Проекты Xamarin Forms с .NET Standard library 2.0 поддерживаются в Rider?

  • Если они поддерживаются: что я должен делать, чтобы заставить его работать, не нарушая резервную копию VS?
  • Если нет: есть ли планы поддержать его в ближайшем будущем?

Некоторые из моих ошибок:

  • Ошибка загрузки: импортированный проект «/usr/local/share/dotnet/sdk/2.0.3/Xamarin/Android/Xamarin.Android.CSharp.targets» не найден. Убедитесь, что путь в объявлении правильный, и что файл существует на диске.
  • Цели MSBuild не найдены: убедитесь, что все SDK, необходимые для проектов в этом решении, установлены или укажите другую версию MSBuild в настройках.
  • Xamarin.Android SDK не найден: Райдеру не удалось найти Xamarin SDK на этой машине. Проекты на основе Xamarin не будут загружены. Установите Xamarin SDK или измените набор инструментов.
  • Задача «Xamarin.Forms.Build.Tasks.GetTasksAbi» не может быть загружена из сборки /Users/kay/.nuget/packages/xamarin.forms/2.5.0.122203/build/netstandard1.0/Xamarin.Forms.Build.Tasks.dll. Не удалось загрузить файл или сборку «Microsoft.Build.Utilities.v4.0, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a». Система не может найти указанный файл.

Я думаю, что я мог бы начать исправлять пути и т.д. вручную, но я боюсь делать вещи, которые я не углубляю в глубину. Раньше я работал с движком Unity в течение многих лет, но я новичок в разработке Xamarin.

1 / 1 / 0

Регистрация: 28.02.2015

Сообщений: 28

1

VS 2022

31.03.2022, 15:33. Показов 1056. Ответов 4


Здравствуйте! Еще с месяц назад пытался установить Xamarin в VS 2019 Community на Win 7. Но выдавало ошибку вида
PackageId:AndroidImage_x86_API25_Private;PackageAc tion:Install;ReturnCode:3;
Сколько танцев с бубном не пробовал, нормально установить не получалось.
Решил переустановить систему. Поставил Win 10, VS 2022 Prof. Но при попытке установки Разработка мобильных приложений на .Net Просто на просто не скачивает ряд установочных пакетов. Писал в саппорт — оттуда либо стандартный ответ со ссылками, либо ответ бота. Пробовал перейти — пишет 404 ошибку, пробовал с другого ПК — тоже самое. Кто знает, в чем может быть причина? Хоть у кого-то это работает?

Миниатюры

Не устанавливается Xamarin
 

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



1 / 1 / 0

Регистрация: 28.02.2015

Сообщений: 28

31.03.2022, 18:05

 [ТС]

3

это не поможет. Сейчас с удивлением обнаружил, что с телефона при танцах с бубном на эти url (dl.google.com и т.п.) пускает и архив вижу. А вот почему в 10ке такие траблы не понимаю. Ковыряюсь в настройках брандмауэра, хотя отключал все что только можно (в defender) — не помогло.



0



1866 / 1680 / 362

Регистрация: 17.02.2019

Сообщений: 2,682

31.03.2022, 18:18

4

Цитата
Сообщение от KingDog
Посмотреть сообщение

пускает и архив вижу

А если скачать и скинуть на компьютер, и там установить.

Добавлено через 6 минут
Вот тут чет, правда на английском



0



1 / 1 / 0

Регистрация: 28.02.2015

Сообщений: 28

31.03.2022, 18:51

 [ТС]

5

как раз это видео вчера смотрел) У всех смотрю что устанавливается без проблем, вне зависимости от версии. Сейчас еще попробую все же настроить, нет, значит действительно вручную архивами устанавливать придется.



0



Понравилась статья? Поделить с друзьями:
  • Installation error an error occurred while preparing for installation
  • Installation error 2 roblox
  • Installation ended prematurely because of an error как исправить
  • Installarchives failed error in function install linux mint
  • Install windows ошибка как исправить