Commit graph

975 commits

Author SHA1 Message Date
Eric Erhardt
d0bdccf5d6 Merge pull request #6064 from omajid/remove-linux-portable-obtain-script
Remove --linux-portable from dotnet-install.sh
2017-03-19 21:41:16 -05:00
Omair Majid
4b233bdf82 Fix path printed in help for dotnet-install
The script does not install to /usr/local/share/. It instead installs to
$HOME/.dotnet. Fix the doc text.

Also fix the names in code that incorrectly talk about /usr/local/share.
2017-03-17 22:06:16 -04:00
Omair Majid
df98363da4 Remove --linux-portable from dotnet-install.sh
It duplicates functionality achieved by using `--runtime-id linux-x64`.
Remove it and fix callers.

Keep the the --linux-portable flag in the  build scripts; that now calls
--runtime-id linux-x64 in the install script.
2017-03-17 20:27:02 -04:00
Omair Majid
46a1d6f41e Add --runtime-id flag to dotnet-install.sh
This lets us specify the runtime id of the desired .NET Core SDK on the
command line. This makes it easier to get the SDK for the desired
runtime without having to modify the install script for new runtimes
unsupported by the current version of this script.
2017-03-14 17:52:57 -04:00
Livar
70c65160f6 Merge pull request #5892 from livarcocc/merge_rel101_into_master
Merge rel101 into master
2017-03-03 14:11:06 -08:00
Justin Goshi
a66ef9f0ef Fix spacing 2017-03-03 11:05:13 -08:00
Justin Goshi
cdf85ec1d2 Update the descriptino 2017-03-03 11:02:09 -08:00
Justin Goshi
e21c1a4a98 Change the command line argument per PR comments 2017-03-03 09:25:31 -08:00
Livar Cunha
3a9525b5ac Merge branch 'rel/1.0.1' into merge_rel101_into_master
* rel/1.0.1: (66 commits)
  Update LZMA license with correct text
  Bump to 2.0.0-rc5-61427-04
  Remove duplicate installer suffix
  Add license text to LZMA SDK license notice
  Updating the SDK to 1.0.0-alpha-20170224-6
  Updating both platform abstractions and dependency model to 1.0.3.
  Bump Roslyn to 2.0.0-rc5-61424-02
  Update Stage0 to use the latest build.
  Update README with new distros.
  Back porting #5597 into rel/1.0.0
  Fixing the exclude pattern used by the Migration to exclude WEB SDK globs.
  Remove RID from test package creation
  Disable migrate and publish web app with content because CI does not have NPM
  Adding an E2E test for pack with content during migration.
  Fixing a failing test and adding a few more E2E tests around binplace content for migrated projects.
  Fix debian_config.json on ubuntu16.10
  Updating publish, pack and build of content to use None with Never/false/Never in their metadata for excluded items.
  Intermediate commit to get a WIP PR out. This adds the None Update with CopyToOutputDirectory set to Never.
  Switching the CopyToOutput for build and publish and the file for pack to use None Update instead of include. Also, fixed the exclude patterns for web apps.
  Do not migrate Content that is already included in the Web SDK for web apps.
  ...
2017-03-01 20:50:42 -08:00
Justin Goshi
ea5eeee06b Update the install script to support osname 2017-03-01 16:00:26 -08:00
Adeel
ba72ff0edd Prefer Unix Shell build-in 'hash' over 'which'
`which` is an external utility. `hash` or `command -v` are built-in
General Commands.

See http://stackoverflow.com/a/677212/863980

I chose `hash` here as `run-build.sh` is already using it.
2017-02-26 01:24:04 +02:00
Eric Erhardt
916a19c493 Add support for Fedora 24, OpenSUSE 42.1 and Ubuntu 16.10 2017-02-22 15:13:02 -06:00
Piotr Puszkiewicz
85b2a129db Merge branch 'rel/1.0.0'
Conflicts:
	TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello/dotnet-hello.csproj
	TestAssets/TestPackages/dotnet-hello/v2/dotnet-hello/dotnet-hello.csproj
	TestAssets/TestPackages/dotnet-prefercliruntime/dotnet-prefercliruntime.csproj
	TestAssets/TestProjects/AppWithDirectAndToolDep/AppWithDirectAndToolDep.csproj
	TestAssets/TestProjects/AppWithDirectDep/AppWithDirectDep.csproj
	build.proj
	build/Compile.targets
	build/Microsoft.DotNet.Cli.Compile.targets
	build/Microsoft.DotNet.Cli.DependencyVersions.props
	build/Microsoft.DotNet.Cli.Monikers.props
	build/Microsoft.DotNet.Cli.Prepare.targets
	build/package/Microsoft.DotNet.Cli.Nupkg.targets
	build/package/Nupkg.targets
	build/test/TestPackageProjects.targets
	build_projects/dotnet-cli-build/GenerateBuildVersionInfo.cs
	build_projects/dotnet-cli-build/GetCommitCount.cs
	build_projects/dotnet-cli-build/dotnet-cli-build.csproj
	build_projects/shared-build-targets-utils/Utils/BuildVersion.cs
	src/dotnet-archive/dotnet-archive.csproj
	src/tool_msbuild/tool_msbuild.csproj
	src/tool_nuget/tool_nuget.csproj
	test/ArgumentForwardingTests/ArgumentForwardingTests.csproj
	test/ArgumentsReflector/ArgumentsReflector.csproj
	test/EndToEnd/EndToEnd.csproj
	test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj
	test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectToolsCommandResolver.cs
	test/Microsoft.DotNet.Cli.Utils.Tests/Microsoft.DotNet.Cli.Utils.Tests.csproj
	test/Microsoft.DotNet.Configurer.UnitTests/Microsoft.DotNet.Configurer.UnitTests.csproj
	test/Microsoft.DotNet.ProjectJsonMigration.Tests/Microsoft.DotNet.ProjectJsonMigration.Tests.csproj
	test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj
	test/binding-redirects.Tests/binding-redirects.Tests.csproj
	test/crossgen.Tests/crossgen.Tests.csproj
	test/dotnet-add-package.Tests/dotnet-add-package.Tests.csproj
	test/dotnet-add-reference.Tests/dotnet-add-reference.Tests.csproj
	test/dotnet-build.Tests/dotnet-build.Tests.csproj
	test/dotnet-help.Tests/dotnet-help.Tests.csproj
	test/dotnet-list-reference.Tests/dotnet-list-reference.Tests.csproj
	test/dotnet-migrate.Tests/dotnet-migrate.Tests.csproj
	test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj
	test/dotnet-new.Tests/dotnet-new.Tests.csproj
	test/dotnet-nuget.UnitTests/dotnet-nuget.UnitTests.csproj
	test/dotnet-pack.Tests/dotnet-pack.Tests.csproj
	test/dotnet-publish.Tests/dotnet-publish.Tests.csproj
	test/dotnet-remove-reference.Tests/dotnet-remove-reference.Tests.csproj
	test/dotnet-restore.Tests/dotnet-restore.Tests.csproj
	test/dotnet-run.Tests/dotnet-run.Tests.csproj
	test/dotnet-sln-add.Tests/dotnet-sln-add.Tests.csproj
	test/dotnet-sln-list.Tests/dotnet-sln-list.Tests.csproj
	test/dotnet-sln-remove.Tests/dotnet-sln-remove.Tests.csproj
	test/dotnet-test.Tests/dotnet-test.Tests.csproj
	test/dotnet-vstest.Tests/dotnet-vstest.Tests.csproj
	test/dotnet.Tests/dotnet.Tests.csproj
	test/msbuild.IntegrationTests/msbuild.IntegrationTests.csproj
	tools/Archiver/Archiver.csproj
2017-02-17 02:00:05 -08:00
Livar Cunha
6670301493 Modifying the docker environment variables to be upper case, because that's how VSO passes them along. 2017-02-13 12:56:10 -08:00
Livar Cunha
c980290431 Adding DropSuffix and ReleaseSuffix as enviroment variables passed down to docker. 2017-02-11 23:55:38 -08:00
Piotr Puszkiewicz
b0a5d53ed5 Merge rel/1.0.0 to master 2017-02-06 12:43:57 -08:00
Piotr Puszkiewicz
562d519d9b Merge pull request #5411 from omajid/master
dotnet-install should identify all RHEL 7.x as RHEL
2017-02-06 00:05:39 -08:00
Nate Amundson
5cb80c04ee Run Docker as current user in official builds 2017-02-03 12:09:54 -08:00
Piotr Puszkiewicz
d2035ff036 Merge remote-tracking branch 'refs/remotes/dotnet/rel/1.0.0-rc3'
Conflicts:
	build/Microsoft.DotNet.Cli.DependencyVersions.props
2017-01-30 23:27:48 -08:00
Piotr Puszkiewicz
f2cb146f1d Merge branch 'master' into master 2017-01-30 23:05:05 -08:00
Parallels
c849e8ba4c Updating the template engine version to a version that depends on 1.6.0 and updating our build scripts to allow for a commit count override. 2017-01-26 20:44:31 -08:00
Nate Amundson
c3e6994728 Fix yum package conflict in Docker image
When running the CLI builds on the new build agents, the CentOS
build failed with the following error:

2017-01-26T20:39:30.0800810Z Step 4 : RUN yum -q -y install unzip libunwind gettext libcurl-devel openssl-devel zlib libicu-devel
2017-01-26T20:39:30.3020500Z  ---> Running in 97affb106685
2017-01-26T20:39:40.3872390Z Error: libselinux conflicts with fakesystemd-1-17.el7.centos.noarch

Swapping the the "fakesystemd" package with the real "systemd" package
fixed the issue, which was recommended in http://stackoverflow.com/a/36632668.

This issue hasn't been seen on the official builds because the build
agents in that pool have the Docker image cached, and they are using an
older version of the centos:7.1.1503 image which appears not to have
this issue.
2017-01-26 12:47:08 -08:00
Omair Majid
3fde06faf8 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-01-20 17:19:35 -05:00
Livar
4b82852d56 Updating the version of msbuild to 15.1.0-preview-000516-03 (#5266)
* Updating the version of msbuild to 15.1.0-preview-000516-03

* Remove test that assumes props/targets imports

The test ItAddsRefBetweenImports validated that the MSBuild XML model contained new project references between the props and targets imports. While useful be fore the SDK attribute, the test no longer adds value since the SDK is added implicitly, guaranteeing it wraps the remaining project contents.

* Move MSBuild to 15.1.0-preview-000509-03

This is the last msbuild version prior to the change of MSBuild's dependencies to include .NET 1.1 components.

* Move MSBuild invocations to use dirs.props/dirs.tasks

* Put back the test targets. We'll unify later.

* Remove dirs.props props from templates msbuild invocation
2017-01-11 01:49:22 -08: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
Davis Goodin
366ac11702 Update Fedora's NSS to avoid NuGet restore timeout 2016-10-28 15:47:10 -05:00
Livar
cde0e8e7e8 Merge pull request #4448 from jgalar/patch-1
Removed workaround for https://github.com/docker/docker/issues/20818
2016-10-21 19:49:36 -07:00
Jérémie Galarneau
adde6255a9 Removed workaround for https://github.com/docker/docker/issues/20818
This workaround is not needed since the release of Docker 1.11.0 which addresses the underlying issue.
2016-10-18 19:51:43 -04: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
Nate Amundson
3ae14ab618 Upload checksums for installation artifacts (#4191)
The checksums are SHA-512 hashes, which users can use to verify file
integrity and authenticity.
2016-10-12 14:25:06 -05: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
Bryan Thornbury
3bc1aa9128 Consume dotnet-deb-tool in cli 2016-07-26 15:26:44 -07:00
Livar
354a43ff83 Merge pull request #3888 from livarcocc/add_variables_to_dockerrun
Adding publishing variables to the dockerrun.sh file
2016-07-19 13:35:08 -07:00
Livar Cunha
776cab609e Adding the storage variables to the dockerrun.sh file so that they are set as env variables in docker. 2016-07-19 10:11:46 -07:00