Installing CodeDOM providers with command line - asp.net

I am trying to install "CodeDOM Providers for .NET Compiler Platform ("Roslyn")". I have downloaded the command line executable from here : https://dist.nuget.org/index.html
But when I launch it, it opens, writes something and instantly closes.
I do not have time to write any command to install a package.

nuget.exe is a command line application. If you open a command prompt or terminal window and run nuget.exe it will show you help information about supported commands.
The commands for nuget.exe are also documented on the nuget.org web site.
To download a NuGet package using nuget.exe you run:
nuget install PackageId
Replacing the PackageId with the id of the NuGet package you want. In your case it should be something like:
nuget install Microsoft.CodeDom.Providers.DotNetCompilerPlatform

Related

DotNet CLI: Restore Nuget package without adding to project

We build our dotnet artifacts on a TeamCity server and want to include the SqlPackage.CommandLine binaries alongside our build output. Running dotnet add package SqlPackage.CommandLine yields "Could not find any projects in C:\build". Can someone recommend a way to grab the nuget output without adding it to a project?
You can just download the NuGet package directly from nuget.org: curl -O -L https://www.nuget.org/api/v2/package/SqlPackage.CommandLine does the trick and downloads the latest version.
If you need the contents from that package, you can simply unarchive it with zip utils afterwards

Unable to restore nuget/nexus packages for .netcore and .netframework in same solutions from Jenkins

In my solution, I have .NET Core and .NET Framework projects. I am facing the below error (which is a .NET Core project) while compiling the solution through Jenkins:
error NETSDK1064: Package IBM.Data.DB2.Core, version 1.3.0.100 was not
found. It might have been deleted since NuGet restore. Otherwise,
NuGet restore might have only partially completed, which might have
been due to maximum path length restrictions.
The Error Message is pretty self-explanatory. Try to restore the package by either right clicking on the solution and selecting "Restore Nuget Packages" in your IDE, or run the below command in the package manager console.
nuget restore YourSolution.sln
Alternatively, you can also install the package using the below command
Install-Package IBM.Data.DB2.Core -Version 1.3.0.100
Check for any error messages while restoring or installing packages, in case there are any file path issues.

Upgrade sqlite3 to custom package

I have a server running centos7 with sqlite3 installed using Yum/rpm. By default the sqlite package is not compiled with the extension JSON1 which I need. The extension can be enabled when the package is compiled using the flag -DSQLITE_ENABLE_JSON1 After working at it for a full day I've managed to find the RPM source files, updated the spec so it compiles with the flag, and recompiled it into a new package. Now I can run rpm -U current-sqlite-package.rpm custom-sqlite-package.rpm and upgrade to my custom package. Both yum and rpm say that the package but when I run /user/bin/sqlite3 --version it is still the old version.
How do I upgrade to my custom package?
How does yum/rpm packages tie to the software in /user/bin?
Current versions of SQLite3 support runtime extension loading. So you can just download and compile the JSON1 extension as a separate .so file and load it via .load ~/path/to/json1.so
This will allow you to receive updates for SQLite via the default package manager and no need to rebuild it yourself.

Nuget cache in linux

I am testing Asp.net 5 (vnext) in Linux Ubuntu 14.04.3 LTS and I would like to know where is located Nuget cache to properly set local repository in Nuget.Config.
Anyone know?
The global-packages folder is where NuGet installs any downloaded
package. Each package is fully expanded into a subfolder that matches
the package identifier and version number. Projects using the
PackageReference format always use packages directly from this folder.
When using the packages.config, packages are installed to the
global-packages folder, then copied into the project's packages
folder.
Windows: %userprofile%\.nuget\packages
Mac/Linux: ~/.nuget/packages
You can also view global-packages location using below command
dotnet nuget locals global-packages --list
Typical output (Mac/Linux; "user1" is the current username):
info : global-packages: /home/user1/.nuget/packages/
For all folders used by NuGet to manages packages and package information use below command
dotnet nuget locals all --list
For more details
NuGet cache is typically located in ~/.local/share/NuGet/Cache while dnu cache is located in ~/.local/share/dnu/cache.

Installing RIDE(Robot Framework)

For automated testing on RIDE(Robot framework), I had already installed PYTHON 2.6 and wxPython 3.0 version,PATH had already been updated in Environment variables, and when I jumped to the last phase i.e Installing RIDE(version -"robotframework-ride-1.3.win32.exe") through Windows Installer, application is been installed when I try to through "Run as Administrator", it was unable to open the IDE. How I can resolve this issue?
I installed RIDE a few days ago with no problem.
First you need to install python like you did (run the command: "python --version" to verify the installation).
After that, you will need to install Robot Framework (run the command: "pybot --version" to verify the installation)
If Robot Framework was sucessfully installed then it's time to install wxpython (choose the right installation, depending on the python version installed)
Finally you only need to install RIDE and it should work
You can follow the steps given below to install robotframework.
Install Python 2.7.1
RIDE runs only on the regular Python, not on Jython nor IronPython.
Download Python 2.7.1
Install Python 2.7.1.
Set the path in environment variable. (Look below for instructions )
Note: Python 2.6 is the minimum version. Robot Framework, RIDE does not yet support Python3 .
Set path on Windows 8 (Windows 7 users also can try the steps)
Open Start and
search Environment Variables
Click on Edit the system environment variables
Goto Advanced tab
Click on Environment Variables button
Scroll down under System variables and click on Path
Click on Edit button
Append ;<InterpreterInstallationDir>;<InterpreterInstallationDir>\Scripts\ in variable value Save the changes.
If command prompt is already open, then re-open command prompt to effectively take changes.
Install wxPython 2.8.12.1
It is necessary to install wxPython because RIDE’s GUI is implemented by using wxPython.
Download wxPython 2.8.12.1 directly from https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
Run the installer and finish the setup. This will install wxPython 2.8-win32-unicode-2.8.12.1 on your system.
Install PIP 1.1
To install PIP follow the step by step instruction provided here http://arunrocks.com/guide-to-install-python-or-pip-on-windows/
Install Robotframework 2.9rc1
Using Command Prompt
You can install RIDE by using the pip or easy_install commands.
Run either of the following command to install Robotframework:
pip install robotframework ride
OR
easy_install robotframework ride
After the installation of RIDE, run the following command:
`ride.py` (this will launch RIDE )
Using Windows Installer
Download robotframework-RIDE 1.4:
You can download RIDE installer for windows version from
https://pypi.python.org/packages/source/r/robotframework-ride/robotframework-ride-1.4.tar.gz
Open the installer and follow the onscreen instructions. After installation, launch RIDE by double clicking the shortcut icon.
This should resolve the issue.
Thank you :)
You probably have the different versions for wxPython and Python in your machine. Always make sure you should install the wxPython version same as the python version i.e. Python 2.7.

Resources