Install-Package on MacOS - macos

I'm trying to use a Cosmos DB with C# as documented in https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-storage?view=azure-bot-service-4.0&tabs=csharp#using-cosmos-db.
But I can't figure out how to Install-Package Microsoft.Bot.Builder.Azure since I don't have PowerShell. Couldn't do it with the az command. Do I need to install PowerShell (apparently another >200MB) just for this?

Might be easier to just install the package via NuGet. Alternatively, you can install PowerShell on MacOS and then run that command within PowerShell

Related

can't install winget tool via ms store and cmd prmt

It shows failed whenever i am trying to update winget tool for completing the installation process.
I have installed it from microsoft store and also tried it on cmd prmt but nothing works.

Helm fails on Windows 10

I installed Helm (the package manager for Kubernetes) on Windows 10 pro through Chocolatey.
When I am trying to execute helm command on the command prompt (running as Administrator), I am seeing a prompt saying "this app can't run on pc". Closing the prompt is showing "Access Denied" on the command prompt.
I also tried downloading the zip from Helm's website and create a System environment variable under Path.
Any help is much appreciated.
Adding the resolution here.
I am able to resolve it by deleting the helm folder under C:\program files and reinstalling helm using Scoop. Chocolatey may also help here to install helm.
P.S. Scoop and Chocolatey are package managers for Windows. Just like Homebrew is for macOS

Visual Studio Code, MAC OS X, OmniSharp server is not running

I've had several reads on guides in the official MS documentation to get started but no matter what I do, when I try to run dnu restore from VS Code, I keep getting the Omnisharp server is not running thing. dnu from command line works fine.
I Found this post: Can't run commands within Visual Studio Code on OS X but I installed mono in all the ways mentioned with no luck. Is there any way to find why omnisharp server is not running in any log left by vscode?
Thanks!
Had the same problem. Using dnvm upgrade -u made it worse because the -u options tells the version manager (dnvm) to use the "unstable" feed. I did a straight dnvm upgrade and it works now.
I had the same problem try below commands. Run dnvm list to see what runtimes you have installed, I had one coreclr and one mono so I used the below dnvm commands to uninstall them.
dnvm uninstall 1.0.0-rc1-update1 -r mono
dnvm uninstall 1.0.0-rc1-update1 -r coreclr
Then run
dnvm upgrade -u
This should fix your problem.
I have experienced same issue and I have created small post about it here
Hope it will help someone
http://www.cpodesign.com/blog/vs-code-omnisharp-server-is-not-running/
Quick solution
dnvm list
if you have multiple version uninstall them and then install last stable version
dnvm upgrade
Then run the application again and it should run

git-cola will not run on windows

I have installed git-cola using the setup installer for windows. I pointed it to proper installs of git and python.
When I try to launch git-cola, nothing happens whatsoever.
Is there something I am missing here?
I had the same problem, in my case it was missing PyQt4 library. You can install PyQt4 by downloading an appropriate installer from Binary Packages section on PyQt4 Riverbank website.
How I investigated the issue
When I installed git-cola in a default directory and tried to run it using a command line
C:\Program Files (x86)\git-cola\bin>python git-cola.pyw
I got
Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.: sudo apt-get install python-qt4
Note
I have two Python 2.7 installations, one at c:\program\Python27 and another at C:\Users\UserName\Anaconda2, I used the first one. I also installed Python SIP some time ago, I'm not sure if it required by git-cola.

How to execute sbt on Windows to open the interactive shell?

Whenever I type the word sbt in my cmd I get the following message:
Any help will be appreciated!
The sbt script you use is meant only for Unix environments like Linux or Unix-like environments for Windows like cygwin or mingw.
Please note that you're on Windows so you need the sbt scripts for Windows.
Download the sbt installer for Windows from http://www.scala-sbt.org/download.html. You may consider using Typesafe Activator since it's "a browser-based or command-line tool that helps developers get started with the Typesafe Reactive Platform."
As noted in Under the Covers in the official documentation of Typesafe Activator:
Activator applications use sbt under the covers. This means that
anything you can do in sbt you can do with an application in
Activator. For instance, sbt plugins can easily be added to
applications in Activator just like they would normally be added.
I highly recommend Typesafe Activator.
I use https://chocolatey.org/ to install, so once you follow the instruction and have choco installed, simply run choco install sbt in admin powershell [choose from Windows + X]
Once that is done, open another powershell and simply run sbt.
I am running on Windows 10, and do remember to choco install jdk8 as well.

Resources