Commit graph

90 commits

Author SHA1 Message Date
Omair Majid
13cf65ea8f dotnet-install should identify all RHEL 7.x as RHEL
New RHEL minor versions are compatible with previous RHEL minor
versions. They also replace them: all users using RHEL 7.n are migrated
to RHEL 7.(n+1) by a simple yum upgrade. So just treat all RHEL 7.x
version as RHEL.

This only holds true for minor versions. RHEL 7 is not compatible with
RHEL 6. But since .NET Core only supports RHEL 7, this shouldn't matter.
2017-03-27 11:32:39 -04:00
Jürgen Pfeifer
957ff3981f - Never check agains username, that's bad practice. Always use effective UID (#4894)
- Never write error messages and tracing info to stdout, that's bad practice too.
2016-12-04 12:17:03 -08:00
Alex Barney
58b0566d9a Add InstallDir to path if SDK version is already installed (#4843)
* Add InstallDir to path if SDK version is already installed

* Make changes based on feedback

* Rename "Append" to "Prepend"
* Remove check if directory is already in path
2016-11-30 20:36:24 -08:00
Livar Cunha
91e24d886b Just moved the file check to after we have created the item. 2016-11-15 12:19:12 -08:00
Falco
b2a83e0072 check for free disk space upfront (#4647)
* check for free disk space upfront

* driveletter now derives from $InstallRoot

* whitespace corrected

* one space added
2016-11-11 17:54:46 -08:00
Matt Galbraith
9855dc0088 Increase HttpClient Timeout in bootstrap script (#4659)
* Increase HttpClient Timeout in bootstrap script

* Update dotnet-install.ps1

Fix comment
2016-11-08 23:23:46 -08:00
Eric Mellino
d2bbe1faa2 Add support for fedora.24 and alpine.3.4.3 in dotnet-install.sh
I've also included the string we attempted to match against if the installation fails.
2016-10-18 11:21:38 -07:00
mendhak
ee239e54cf Using HttpClientHandler only if ProxyAddress argument specified 2016-10-10 22:34:30 +01:00
mendhak
047eb4f732 Corrected proxy in synopsis for installer 2016-10-10 17:49:28 +01:00
mendhak
47a4b44f1f HttpClient to use ProxyAddress argument if passed in 2016-10-08 20:10:56 +01:00
Livar
5a038b6584 Merge pull request #4218 from juergenhoetzel/HANDLE_OS_DETECTION_ERRORS2
Handle OS detection errors
2016-09-23 08:49:56 -07:00
wtgodbe
a0e023ee7a Port changes from core-setup's dotnet-install script to CLI 2016-09-22 14:15:03 -07:00
Juergen Hoetzel
b8a5219773 Handle OS detection errors
Check the exit status of get_latest_version_info and get_current_os_name to
prevent construction of invalid download URLs based on these functions.
Fixes #2923.
2016-09-21 19:08:46 +02:00
Piotr Puszkiewicz
1ce482a8d1 Merge remote-tracking branch 'refs/remotes/origin/rel/1.0.0'
Conflicts:
	scripts/obtain/dotnet-install.ps1
	src/dotnet/commands/dotnet-new/CSharp_xunittest/project.json.template
2016-08-26 22:39:14 -07:00
Michael Simons (VISUAL STUDIO)
7914b63474 Modified logic that downloads content to provide better diagnostic information upon failure. 2016-08-25 11:47:45 -05:00
Piotr Puszkiewicz
2db1997bc0 Merge remote-tracking branch 'refs/remotes/origin/feature/msbuild'
Conflicts:
	Microsoft.DotNet.Cli.sln
	build_projects/dotnet-cli-build/DebTargets.cs
	build_projects/dotnet-cli-build/TestTargets.cs
	scripts/package/package-debian.sh
	src/Microsoft.Extensions.DependencyModel/DependencyContextJsonReader.cs
	src/dotnet/commands/dotnet-new/Program.cs
	src/dotnet/commands/dotnet-pack/PackageGenerator.cs
	test/Microsoft.Extensions.DependencyModel.Tests/DependencyContextJsonReaderTest.cs
2016-08-16 18:30:52 -07:00
Eric Erhardt
38d18eab4d Fix dotnet-install.ps1.
Allow directories named "publish" in .gitignore.
Add files to the .sln.
2016-08-09 08:28:53 -05:00
Piotr Puszkiewicz
16692fc75c Remove CDN caching from version files 2016-08-09 02:41:12 -07:00
Michael Simons (VISUAL STUDIO)
b53e254fbd Updated Add-Type logic to account for Powershell Core Edition 2016-08-08 15:03:36 -05:00
Michael Simons (VISUAL STUDIO)
a34e93c340 Modified dotnet-install.ps1 to support Nano Server 2016-08-04 15:04:26 -05:00
Eric Erhardt
d2db776d87 Merge rel/1.0.0 into feature/msbuild. 2016-07-18 14:44:06 -05:00
Piotr Puszkiewicz
89e127b8ac Move downloads to CDN (#3873) 2016-07-15 15:36:01 -04:00
Jostein Kjønigsen
2cba2c7688 Handle missing terminal capabilities.
When probing for terminal capabilities, tput will return exit-code 1
when the attribute is not valid for the current terminal.

If we don't handle that exit-code, the shell-script too will exit with
failure.

This patch simply ignores errors for attributes we cannot use,
resulting in the same result as if we never probed for it in the first
place.
2016-07-08 10:10:20 +02:00
Eric Erhardt
ba1715b8a6 Fix dotnet-install for the new Azure Publish layout. 2016-06-22 22:46:13 -05:00
Piotr Puszkiewicz
9d01e3bc2e Merge rel/1.0.0-preview2 to rel/1.0.0 (#3677)
* Update README.md

* Moving Ubuntu 16.04 to be next to Ubuntu 14.04

* Adding Oracle Linux and Linux Mint to the titles

Adding Oracle Linux and Linux Mint to the titles next to their compatible binaries.

* Remove showing firsttime eula for non verbs.

* Add Serviceable assembly attribute and nuspec attributes for all shipping CLI assemblies.

Fix #3345

* Use NugetCache Sentinel for Telemetry setting.

* Fix Oracle Linux version in README.md

Oracle Linux 7 -> Oracle Linux 7.1

* Fix README to use hostfxr download links (#3622)

Also fix a rebase error from b524fd079e6dcdd744faeb6061ccbfe99d1f810f#diff-04c6e90faac2675aa89e2176d2eec7d8

* Remove the VS2012 CRT dependency from docs (#3632)

* fix typo in dotnet-install file

This was needed to rebuild the CLI with the updated Roslyn NuGet packages.

Thanks goes to @akoken for the fix.
2016-06-22 15:17:54 -07:00
Livar Cunha
7652335195 Addressing code review comments and adding opensuse 13.2 2016-05-31 15:15:57 -07:00
Livar Cunha
7963018d3d Small changes that I noticed when diffing the files 2016-05-31 15:15:08 -07:00
Livar Cunha
e634fedae8 Adding Fedora 23 2016-05-31 15:15:08 -07:00
Livar Cunha
84d1b60ffe Adding docker files, modifying scripts and code to handle ubuntu 16.04 2016-05-31 15:15:08 -07:00
Krzysztof Wicher
f4ceb1f213 Merge pull request #3272 from krwq/add_shared_runtime_switch
add -SharedRuntime switch support
2016-05-27 15:23:45 -07:00
Krzysztof Wicher
2a84c13817 add -SharedRuntime switch support 2016-05-27 12:19:53 -07:00
Krzysztof Wicher
5a77b03f36 add path to the front of the variable instead of the back 2016-05-23 12:48:53 -07:00
Eric Erhardt
78a70f049a Remove duplicated install scripts.
Please use `dotnet-install` instead.
2016-05-20 22:09:36 -05:00
Krzysztof Wicher
b939c88e0c remove check for gettext dependency in install.sh 2016-05-20 10:59:12 -07:00
Eric Erhardt
bf9b5a9288 Change the default channel in dotnet-install scripts to "preview". 2016-05-19 13:36:24 -05:00
Bryan
584bd3e72d Clean + fixup 2016-05-18 09:32:48 -07:00
Richard Lander
13d760c6a4 Remove .nuget dir on uninstall 2016-05-14 23:57:25 -07:00
Richard Lander
48712f9e54 Change to correct variable 2016-05-14 21:46:25 -07:00
Bryan Thornbury
b23feed7c8 debian package uninstallation script (#3027)
* debian package uninstallation script

* Script to remove/uninstall dotnet pkgs from a OSX machine.

* name change of deb uninstall script

* Address PR feedback

Changes to fail the script if the 'pkgutil --forget' command fails.
2016-05-13 20:37:20 -07:00
Bryan
f0cc32e1ee move all return statements to exit 0 2016-05-13 11:39:28 -07:00
PiotrP
d906524dec Fix install scripts to deal with content type change. 2016-05-12 10:25:49 -05:00
Sridhar Periyasamy
2d435ac880 Update the install scripts to use the preview channel.
Also the default now is the beta channel which has the latest 'preview1'
builds.
2016-05-10 15:35:10 -07:00
Krzysztof Wicher
b18df1c51c fix default INSTALL_DIR issue in dotnet-install.sh 2016-05-04 11:55:06 -07:00
Piotr Puszkiewicz
0bfd94e998 Fix install-dotnet.sh to deal with trailing newline 2016-05-02 00:52:21 -07:00
Krzysztof Wicher
11e3fa36af rename install.ps1/sh to dotnet-install.ps1/sh to match documentation 2016-04-08 10:51:16 -07:00
Andrew Stanton-Nurse
f87440a0fd Remove '.' from default Windows install dir 2016-03-25 12:19:46 -07:00
Krzysztof Wicher
217922da14 don't redownload sdk in install.sh if package already installed 2016-03-24 15:15:24 -07:00
Krzysztof Wicher
688de72eb7 detecting that sdk is already installed (install.ps1) 2016-03-24 15:15:23 -07:00
Krzysztof Wicher
bb339bf73a use template for mktemp call for portability 2016-03-21 19:16:51 -07:00
Krzysztof Wicher
b1548a9654 fix grep to work on OSX 2016-03-21 16:31:17 -07:00