Cannot install dotnet sdk on mac - asp.net

I have installed dotnet sdk from https://dotnet.microsoft.com/download/download
after installing I run on terminal: dotnet --version
and I get : zsh: command not found: dotnet
I have operating system: macOS Big Sur 11.6 on MacBook Air (M1, 2020)

I fixed this by downloading and installing Visual Studio 2022 for Mac:
https://visualstudio.microsoft.com/vs/mac/preview/
It will download the dotnet SDK also

Related

dotnet-ef still not found after installation

I installed the dotnet-ef tool on a Ubuntu server, and it installed successfully. However, the program was still not found:
~/app$ dotnet --version
3.1.201
~/app$ dotnet tool install --global dotnet-ef --version 3.1.3
Since you just installed the .NET Core SDK, you will need to logout or restart your session before running the tool you installed.
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '3.1.3') was successfully installed.
After rebooting the server:
~/app$ dotnet-ef migrations add "First On Server"
dotnet-ef: command not found
~/app$ which dotnet
/usr/bin/dotnet
~/app$ which dotnet-ef
~/app$
How do I get the dotnet-ef tool on a Ubuntu machine?
The dotnet tool install command requires elevation!

What is dotnet host version?

When i run dotnet --info in the output i get host version: 3.0.3
What is it?
Recently i have installed and later deleted dotnet sdk 3.0 version, but host version is still 3.0.3 does it affect running my program in 2.2 version of sdk?

R Xgboost: How to compile xgboost with GPU support on windows 10

I followed the instructions provided in this link: How to install xgboost package in python (windows platform)?
and
https://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support
My setup: Windows 10 Home x64. Installed Visual 2015, Rtools (make sure the PATH has following two items. PATH: c:\Rtools\bin;c:\Rtools\mingw_64\bin), Cmake and Git Bash.
I setup R to run in CMD and executed git bash as administrator.
Step 1 Clone xgboost source
$ git clone https://github.com/dmlc/xgboost
the above package is installed in the path: *C:\Users\Username*
Step 2 Install xgboost
cd xgboost
git submodule init
git submodule update
cd R-package
R CMD INSTALL .
Then the package installed successfully in C:\Program Files\R\R-3.5.1\library.
Step 3 Installing R package with GPU support
mkdir build
cd build
cmake .. -G"Visual Studio 14 2015 Win64" -DUSE_CUDA=ON -DR_LIB=ON -DLIBR_EXECUTABLE="C:/Program Files/R/R-3.4.1/bin/x64/R.exe"
Then I installed the build using the following command
cmake --build . --target install --config Release
After this, the libraries are updated in C:\Program Files\R\R-3.5.1\library with GPU support. Run RStudio as administrator to access the library.
Source: Fail to install R XGBoost with GPU support on Windows 7

Docker: Running dotnet publish -o /output results in a nonzero error on CLI

I'm using Ubuntu 16.04 LTS,
Docker-compose v 1.18.0-rc2, build 189468b
Docker version 17.12.0-ce-rc1, build ee2f943
Running this command: dotnet publish -o /output with docker results in this error:
ERROR: Service 'generator' failed to build: The command '/bin/sh -c
dotnet publish -c Release -o out' returned a non-zero code: 145
I've installed the .NET SDK for Ubuntu and not sure how to resolve this error; it just won't create that publish folder; here's dotnet --info
joel#worker-2:~/workspace/asp (copy)/api$ dotnet --info .NET Command
Line Tools (2.0.2)
Product Information: Version: 2.0.2 Commit SHA-1 hash:
a04b4bf512
Runtime Environment: OS Name: ubuntu OS Version: 16.04 OS
Platform: Linux RID: ubuntu.16.04-x64 Base Path:
/usr/share/dotnet/sdk/2.0.2/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0 Build :
e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Link to the same question worded differently with more error logs
The error you are seeing is because your project contains a global.json file that pins the required SDK version to 2.0.2. However, the docker images contain newer SDK versions (current one is 2.1.3) which. Because no 2.0.2 SDK is present in the docker image you use to build, it just errors out.
First, if you are using Ubuntu, docker for Windows is not relevant.
I see dotnet publish -c Release -o out used in "Dockerize a .NET Core application" (and the repo dotnet/dotnet-docker-samples) with images starting with
FROM microsoft/aspnetcore-build:2.0 AS build-env
It is a tag which is multi-arch, meaning it will pull either Windows or Linux containers depending on the host (here Ubuntu)
But you mention in your previous question following the pluralsight.com course docker-images-containers-aspdotnet-core, and that one might only work when done on Windows (meaning Windows server 2016/2017, able to execute Windows images)

VS2017 Cordova build error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3

My MacOS X env:
cordova -v: 7.1.0
remotebuild -v: Copyright (C) 2014-2015 Microsoft Corporation. All rights reserved. 2.1.3
MacOS High Sierra (10.13.1)
Xcode: 9.1
My Window 10 Pro (ver 1709) dev env:
Visual Studio Community 2017: ver 15.4.4
Visual Studio Tools for Apache Cordova: 15.0.26728
Cordova Toolset (set by VS 2017):
Cordova 6.3.1
node.js: 4.4.3
cordova-simulate: 0.3.1.2
cordova-ios: 4.2.0
Microsoft Cordova documentation has not caught up with VS2017 and latest Cordova versions.
When in VS2017 on Wins10 PC, building to iOS and to any Simulator - [iOS device] target, I get the following error in full:
'Remote build error from the build server https://[my mac
ip]:3000/cordova - Build failed with error Remotebuild requires your
projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please
update your cordova-ios version.'
Doesn't work to simply bump up cordova-ios: 4.2.0 to 4.3.0 or greater in project's config.xml file. Not even sure what represents. Cordova iOS platform version?
Please help get me past this build error.
Duplicate question of:
Install specific version of Cordova CLI in Visual Studio 2017
Which notes a suitable solution.

Resources