xbuild | Language runtimes installer for production environment | Continuous Deployment library
kandi X-RAY | xbuild Summary
kandi X-RAY | xbuild Summary
Language runtimes installer for production environments.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xbuild
xbuild Key Features
xbuild Examples and Code Snippets
Community Discussions
Trending Discussions on xbuild
QUESTION
New to developing on a Mac. Trying to get the Android Emulator to run. I have the newest MacBook Air with the M1Chip. When I go to run the simulator for Android I get this warning and the emulator never launches:
...ANSWER
Answered 2021-Nov-30 at 15:15The path to the Java SDK is either incorrect or the SDK is corrupt.
First you should download the latest version of the Java SDK from the Oracle Website.
Then within Visual Studio you need to navigate to Preferences > Projects > SDK Locations > Android > Locations.
You will need to update the Java SDK path to the new SDK you downloaded.
e.g /Library/Java/JavaVirtualMachines/SDK17/Contents/Home
QUESTION
I have been trying to build a simple installer from a newly created template from Visual Studio for Mac.
...ANSWER
Answered 2021-Nov-29 at 18:42Just to confirm that this is a bug, me and one more developer have confirmed it.
You can upvote or comment here so that it may be fixed quicker: https://github.com/xamarin/xamarin-macios/issues/13197
Update: Apple is expected to fix this problem in the new version of macOS/XCode
QUESTION
I am on WSL2 in VS Code. Using Zsh on VS Code.
I am trying to install pythonnet though am getting two errors: ERROR: Failed building wheel for pythonnet error: option --single-version-externally-managed not recognized
This is from using pip install pythonnet==2.5.2
My versions are: Python 3.8.10 Wheel 0.37.0 Mono: 6.8.0.105 pycparser 2.20
I have searched high and low online though I can't find a solution - everything seems to point to updating wheel and installing mono - as you can see from the above version numbers, I have them installed. I am doing everything from within a virtual env.
Does anyone have any experience with this or know what to do to get past these errors?
Full log:
~/j/s/stx1alpha-signals/d/backend on master !6 ?1 ❯ pip install pythonnet==2.5.2 stx1alpha at 10:52:05 AM Collecting pythonnet==2.5.2 Using cached pythonnet-2.5.2.tar.gz (1.9 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: pycparser in /home/jessica-ryan/jessica-ryan/stx1alpha/.venv/lib/python3.8/site-packages (from pythonnet==2.5.2) (2.20) Building wheels for collected packages: pythonnet Building wheel for pythonnet (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/jessica-ryan/jessica-ryan/stx1alpha/.venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"'; file='"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-789kx5l4 cwd: /tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/ Complete output (153 lines): running bdist_wheel running build
running build_ext Checking for updates from https://www.nuget.org/api/v2/. Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 5.11.0. Update successful. MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'.xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<< MSBUILD: error MSBUILD0004: Too many project files specified WARNING: Error reading msbuild project information, ensure that your input solution or project file is valid. NETCore and UAP projects will be skipped, only packages.config files will be restored.
Restoring NuGet package System.ValueTuple.4.5.0. Restoring NuGet package NUnit.ConsoleRunner.3.11.1. Restoring NuGet package NUnit.3.12.0. Restoring NuGet package UnmanagedExports.1.2.7.
Adding package 'NUnit.3.12.0' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'System.ValueTuple.4.5.0' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'UnmanagedExports.1.2.7' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'NUnit.ConsoleRunner.3.11.1' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'UnmanagedExports.1.2.7' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'System.ValueTuple.4.5.0' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'NUnit.ConsoleRunner.3.11.1' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'NUnit.3.12.0' to folder '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' NuGet Config files used: /home/jessica-ryan/.config/NuGet/NuGet.Config Feeds used: /home/jessica-ryan/.nuget/packages/ https://api.nuget.org/v3/index.json Installed: 4 package(s) to packages.config projectsxbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<< XBuild Engine Version 14.0 Mono, Version 6.8.0.105 Copyright (C) 2005-2013 Various Mono authors Build started 11/18/2021 10:53:28. __________________________________________________ Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln" (Clean target(s)): Target ValidateSolutionConfiguration: Building solution configuration "ReleaseMono|x64". Target Clean: Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj" (Clean target(s)): Target CoreClean: Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs' Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj". The project 'clrmodule' is disabled for solution configuration 'ReleaseMono|x64'. Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/Python.Test.csproj" (Clean target(s)): Target CoreClean: Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs' Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/Python.Test.csproj". Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/Python.EmbeddingTest.csproj" (Clean target(s)): Target CoreClean: Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs' Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/Python.EmbeddingTest.csproj". Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/Console.csproj" (Clean target(s)): Target CoreClean: Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs' Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/Console.csproj". Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln". Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:00.3407830
...xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<< XBuild Engine Version 14.0 Mono, Version 6.8.0.105 Copyright (C) 2005-2013 Various Mono authors Build started 11/18/2021 10:53:29. __________________________________________________ Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln" (Build target(s)): Target ValidateSolutionConfiguration: Building solution configuration "ReleaseMono|x64". Target Build: Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj" (default target(s)): Target PrepareForBuild: Configuration: ReleaseMono Platform: x64 Created directory "bin/" Target GenerateSatelliteAssemblies: No input files were specified for target GenerateSatelliteAssemblies, skipping. Target CoreCompile: Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:pdbonly /optimize+ /out:obj/x64/ReleaseMono/Python.Runtime.dll /resource:obj/x64/ReleaseMono/Python.Runtime.resources.clr.py,clr.py Codecs/EncoderGroup.cs Codecs/DecoderGroup.cs Codecs/RawProxyEncoder.cs Codecs/TupleCodecs.cs converterextensions.cs finalizer.cs Properties/AssemblyInfo.cs ../SharedAssemblyInfo.cs arrayobject.cs assemblymanager.cs BorrowedReference.cs classderived.cs classbase.cs classmanager.cs classobject.cs clrobject.cs codegenerator.cs constructorbinder.cs constructorbinding.cs converter.cs CustomMarshaler.cs debughelper.cs delegatemanager.cs delegateobject.cs eventbinding.cs eventobject.cs exceptions.cs extensiontype.cs fieldobject.cs generictype.cs genericutil.cs importhook.cs indexer.cs interfaceobject.cs interfaces.cs interop.cs iterator.cs managedtype.cs metatype.cs methodbinder.cs methodbinding.cs methodobject.cs methodwrapper.cs modulefunctionobject.cs moduleobject.cs modulepropertyobject.cs nativecall.cs NewReference.cs NonCopyableAttribute.cs overload.cs propertyobject.cs pyansistring.cs pydict.cs PyExportAttribute.cs pyfloat.cs pyint.cs pyiter.cs pylist.cs pylong.cs pynumber.cs pyobject.cs pyscope.cs pysequence.cs pystring.cs pythonengine.cs pythonexception.cs pytuple.cs ReferenceExtensions.cs runtime.cs typemanager.cs typemethod.cs Util.cs platform/Types.cs platform/LibraryLoader.cs polyfill/ReflectionPolifills.cs slots/mp_length.cs interop38.cs obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs /target:library /unsafe+ /define:"PYTHON38;PYTHON3;UCS4;MONO_LINUX;PYTHON_WITHOUT_ENABLE_SHARED" /nowarn:1591 /doc:bin/Python.Runtime.xml /langversion:7.3 /nostdlib /reference:/usr/lib/mono/4.0-api/System.dll /reference:/usr/lib/mono/4.0-api/System.Core.dll /reference:/usr/lib/mono/4.0-api//mscorlib.dll CSC: error CS1617: Invalid -langversion option
7.3'. It must be
ISO-1', `ISO-2', Default, Latest or value in range 1 to 7.2 Task "Csc" execution -- FAILED Done building target "CoreCompile" in project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj".-- FAILED Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj".-- FAILED Task "MSBuild" execution -- FAILED Done building target "Build" in project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln".-- FAILED Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln".-- FAILED Build FAILED. Errors: /tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln (Build) -> (Build target) ->
/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj (default targets) ->
/usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->
ANSWER
Answered 2021-Nov-18 at 17:47You need a newer version of Mono. The one you have does not support C# 7.3 that Pythonnet build needs.
QUESTION
A nonsensical error, because compiling another project works
System.Xml.Linq is referenced, it's the same code from this other project
csproj is similar, only with different compilation files(I'm comparing with the other project)
This other project is referenced, With .dll I'm actually making a mod for a game(The game is offline and without ads as it is paid, Probably no problem)
I'm using mono, Using msbuild and not xbuild
this is the code:
...ANSWER
Answered 2021-Sep-23 at 00:33I finally managed to solve my problem.
I got the APK of the game I'm making the mod for; I extracted all libraries; I referenced all with the help of scripts; then I removed the ones that are in conflict. And success!
It simply compiled normally and it worked.
QUESTION
After updating our iOS build server from Mac OS Catalina to Big Sur our GitLab pipelines (running cakebuild) are failing with some cryptic Xamarin specific error message for one specific project (meaning other Xamarin iOS projects are building successfully and passing the pipeline).
However checking out the exact same project (same commit, same everything) on a different Big Sur machine the project in question compiles with no errors. Note that even commits that passed previously are now failing the pipeline.
Here's the interesting part of the logs
...ANSWER
Answered 2021-Aug-25 at 09:33We finally closed this bug ticket yesterday though the problem really wasn't too obvious. Back when .NET 5 was released we manually linked the msbuild.dll from Visual Studio for Mac to be used in compilation by mono. Therefore our cakebuild build script used to look like this:
QUESTION
Again, after updating to VS 8.9.1 on Mac I'm getting this error while trying to compile my Android project:
...ANSWER
Answered 2021-Mar-10 at 15:22Looking at the developer community portal this is a bug introduced in v8.9.1. It also specifies a workaround: manually copy the Android SDK files from the default path (found in the settings screen, see below) to the hardcoded path in the error message. In your case /Users/giulioserra/Library/Android/sdk
QUESTION
I trying to display a images in android project using xamarin.
I put folder
Images
in my android project in directoryResources/drawable/Images
I set on every image property
AndroidResource
fromBuildAction
(I'm not sure if that should be the case)In the c# code I try to call the image with this code but not worked for me:
...
ANSWER
Answered 2021-Apr-18 at 11:28from the docs
Android - Place images in the Resources/drawable directory with Build Action: AndroidResource. High- and low-DPI versions of an image can also be supplied (in appropriately named Resources subdirectories such as drawable-ldpi, drawable-hdpi, and drawable-xhdpi).
do not create your own sub-folders in Resources
QUESTION
I'm trying to setup a DevOps build pipeline (eventually for UI Testing) initially for Xamarin.iOS. We have other issues with AppCenter.
I've used the default Xamarin iOS template and am working through the issues.
We're using a mac vm / image.
We decided to use a Debug version of our app as this would provide more useful information from any UI Tests errors. So eventually we can test our build on Simulators in AppCenter.
However, I'm getting this error. I've ensured that I've included a entitlements.plist which has APS Environment
set to development
. I'm just unsure why it would need a provisioning profile.
I'm not actually sure what AppCenter would require from the build, perhaps it only works with ipa files ? And that therefore requires a profile ???
...ANSWER
Answered 2021-Mar-11 at 06:16If the project include Entitlements.plist, you will need provisioning profile to enable entitlements. See threads here and here.
As it explained as below. If APS Environment is set to development. It means you need togenerate a development provisioning profile. See here.
Xcode sets the value of the entitlement based on your app's current provisioning profile. For example, if you're using a development provisioning profile, Xcode sets the value to development.
You can check the document Device provisioning for Xamarin.iOS to generate a provisioning profile. Also see this thread.
When you get your provisioning profile. You can upload it to azure develops secure files. And use InstallAppleProvisioningProfile task to download it in your pipeline. See document here for more information. You can also check out the example in this blog.
QUESTION
I work on Mac and I just updated Visual Studio for Mac 20109 to the latest version: Version 8.8 (build 2913)
After this, I'm no longer able to build/deploy Android apps I worked on.
I've created an empty new Xamarin.Forms project, but I get the same issue.
The output is:
...ANSWER
Answered 2020-Nov-12 at 15:20You have this line:
QUESTION
I'm trying to debug a simple new Xamarin.Forms application on the IPhoneSimulator. I'm using Windows, and I'm paired to a macbook in my network.
The Xamarin.Forms template runs fine, but when I'm calling the Xamarin.Essentials.SecureStorage
API
ANSWER
Answered 2020-Oct-21 at 08:19You could create a free Apple Account for testing .
1. Sign into Xcode with personal apple account- Start Xcode on your Mac
- Choose the Xcode → Preferences menu and navigate to the Account pane
- Click the +-button in the bottom-left corner and choose Apple ID
- Log in with your Apple ID email address and password .
You now have access to your Developer Account in Xcode . The developer account you added is called “Personal Team”, which should show up in the list on the right.
2. Run Apps on real deviceMake sure your iPhone (or iPad) is connected to your Mac via USB. When your iPhone prompts you to confirm connecting to your Mac, tap Trust.
Then, in Xcode, choose the Window → Devices and Simulators menu. Select your iPhone from the list, and then click the Enable Device for Development button. (Depending on the context, this may not be a necessary step.) It’s also smart to enable the Connect via network option, which lets you debug apps on your iPhone without connecting via USB.
Now you can test your code with Auto Provisioning both on simulator and real device .
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xbuild
xbuild checks specified install path before actual installation, and skips it if specified version runtime already exists. For force re-install, use -f option.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page