Commit graph

2949 commits

Author SHA1 Message Date
Daniel Plaisted
61e68e621a Show path when directory delete fails in test setup 2017-08-24 15:49:14 -07:00
Daniel Plaisted
13da213183 Support new artifacts layout in tests and other build logic 2017-08-24 15:49:13 -07:00
Daniel Plaisted
ae0aa8ed24 Move dir.props to auto-imported Directory.Build.props
This is necessary for setting the intermediate output path to work correctly
2017-08-24 15:46:45 -07:00
Daniel Plaisted
a463a34ac5 Update CliTargetFramework to netcoreapp2.1, and switch from hardcoding to using the variable in places 2017-08-23 10:40:26 -07:00
Mikkel Nylander Bundgaard
ed2a8f4432 Add store and help to SDK commands
I've added the store command as a localizable string (the
help command was already one), but I've not supplied any
translations.

Fixes #7432
2017-08-20 00:57:32 +02:00
Mikkel Nylander Bundgaard
5ae335b592 Only open help page for commands with DocLink
The help-command now handles commands without a DocLink
in the same manner as unknown commands.

Fixes #7065
2017-08-17 15:01:31 -07:00
Nick Guerrera
37714cd5f0 Merge pull request #7413 from Faizan2304/blameDataCollector
Insert new bits of TPv2 and enable blame data collector
2017-08-17 11:50:07 -07:00
John Doe
c4301c6ebf typo 2017-08-14 21:26:49 -07:00
John Doe
8fc8a03081 typo 2017-08-14 21:26:49 -07:00
faahmad
ecd6c47d2e Insert new bits of TPv2 and enable blame data collector 2017-08-10 18:55:06 +05:30
Robert Wagner
869e077388 Clarified the examples for the --logger parameter 2017-08-10 08:40:02 +10:00
Daniel Plaisted
1c5908efa0 Merge pull request #7344 from mishra14/dev-anmishr-gracefulexception
Improving UX for dotnet add package when Path.GetTempPath throws
2017-08-09 09:57:06 -07:00
Daniel Plaisted
6a64e17857 Merge pull request #7225 from GuardRex/guardrex/first-run-info-update
Update first time welcome message
2017-08-07 14:48:36 -07:00
Ankit Mishra
da1c8d00a4 simplifying the error message to make it more actionable 2017-08-07 10:10:17 -07:00
Ankit Mishra
98c0ef350a Addressing PR feedback 2017-08-03 10:00:15 -07:00
Luke Latham
a256f25d60 Match length of dash lines to headings 2017-08-02 19:57:22 -05:00
Luke Latham
f06b3f25b2 React to feedback and add three more topics to the update 2017-08-02 19:29:26 -05:00
David Kean
bf58a5a060 Remove unneeded char[] allocations
This was causing 0.2% of allocations in a design-time build trace from a customer.
2017-08-02 18:59:45 +10:00
Ankit Mishra
4f1c6b5cae Updating xlf files 2017-08-01 16:41:53 -07:00
Ankit Mishra
b29ee4d41a Adding a try/catch around Path.GetTempFileName() to improve UX 2017-08-01 15:55:21 -07:00
Livar
96b122e26f Merge branch 'master' into merges/release/2.0.0-to-master-20170731-070024 2017-07-31 11:00:18 -07:00
Nate McMaster
e0e39d044d Show verbose output when --diagnostics is specified 2017-07-27 16:34:20 -07:00
William Li
081f208942 Add telemetry data points for .NET Core 2.0 2017-07-27 09:55:40 -07:00
Livar
e5786487ec Merge pull request #7266 from livarcocc/show_first_run_message
Show first run notice even when CLI is installed by native installers.
2017-07-26 19:29:05 -07:00
William Li
aa3b1b67d8 refactor to remove duplication 2017-07-26 16:30:03 -07:00
William Li
c8590354a7 Add block thread constructor 2017-07-26 16:03:59 -07:00
Livar Cunha
6541a16a38 Changing the FirstNoticeSentinel used by the internal-reportinstallsuccess command. 2017-07-26 15:33:48 -07:00
Luke Latham
3c5aa0cc12 Add the word "to" 2017-07-26 12:52:34 -05:00
Zbyněk Sailer
d4a9de3778 LOC CHECKIN | cli-release/2.0.0 | 20170726 2017-07-26 09:41:49 +02:00
Livar Cunha
20f0dac6b2 Making a change that will cause the first run notice to always show up in the first run of the CLI, even when it is installed by native installers. 2017-07-25 22:33:54 -07:00
John Doe
f1d1ff5272 typo 2017-07-25 08:27:23 -07:00
Luke Latham
bf6ef40be4 Merge branch 'master' into guardrex/first-run-info-update 2017-07-22 00:16:59 -05:00
Luke Latham
1eefa2beb2 Update first time welcome message 2017-07-21 23:26:15 -05:00
Livar
58c580dbcc Merge pull request #7201 from dotnet/merges/release/2.0.0-to-master-20170720-070024
Merge release/2.0.0 to master
2017-07-20 11:53:12 -07:00
Nick Guerrera
28c51d2eaa Localize first-run "Expanding" and "Decompressing" 2017-07-19 13:58:06 -07:00
Nick Guerrera
368531715e Fix VSLANG handling typo 2017-07-19 11:51:38 -07:00
Nick Guerrera
85573db000 Respond to PR feedback: use method names not comments 2017-07-19 11:00:09 -07:00
Nick Guerrera
a1c423c0f6 Honor UI language override in test runs
Also fix some incorrect unlocalized test expectations that slipped in.
2017-07-18 22:03:31 -07:00
Nick Guerrera
60e2637143 Allow CLI UI language to be overridden by an environment variable 2017-07-18 21:20:52 -07:00
Livar
1728aef325 Merge branch 'master' into merges/release/2.0.0-to-master-20170718-070024 2017-07-18 15:58:34 -07:00
Zbyněk Sailer
633ec51720 LOC CHECKIN | cli-release/2.0.0 | 20170714 2017-07-14 09:14:59 +02:00
Livar
a04273474e Merge branch 'master' into merges/release/2.0.0-to-master-20170712-070028 2017-07-12 14:28:17 -07:00
Alexander Köplinger
4d0e8b5892 MSBuildSdkResolver: resolve symlink for 'dotnet' binary
On Linux the dotnet installed by the dotnet packages is a
symlink (/usr/bin/dotnet -> ../share/dotnet/dotnet).

We need to resolve the symlink so we're passing the path to
the actual .NET Core installation to libhostfxr.

Fixes https://github.com/dotnet/cli/issues/7125
2017-07-12 21:44:03 +02:00
Alexander Köplinger
600946c58b MSBuildSdkResolver: clarify comment in Interop.NETStandard.cs
The .NET Standard build ships with Mono/msbuild.
2017-07-12 16:37:02 +02:00
Alexander Köplinger
747e9fd6ad MSBuildSdkResolver: resolve symlink for 'dotnet' binary
On Linux the dotnet installed by the dotnet packages is a
symlink (/usr/bin/dotnet -> ../share/dotnet/dotnet).

We need to resolve the symlink so we're passing the path to
the actual .NET Core installation to libhostfxr.

Fixes https://github.com/dotnet/cli/issues/7125
2017-07-12 16:37:02 +02:00
Mike Lorbetske
ea467db3af Update test to pass --no-restore to templates 2017-07-10 16:27:54 -07:00
Mike Lorbetske
5aec446657 Update to SetupCrossgen 277 - Coherence 26182
Enable loc for dotnet new
2017-07-10 15:20:35 -07:00
William Li
191e3e3019 Installer Success Reporting for Windows
Issue https://github.com/dotnet/cli/issues/7091

Add internal command dotnet internal-reportinstallsuccess. Before
Windows installer finishes, run this command instead of dotnet new. It
will trigger the first time experience as well as sending telemetry with
installer exe name.

This command blocks to ensure that the webservice call completes.
2017-07-07 12:56:21 -07:00
Matt Ellis
cde3a8bcb2 MIT License *NIX Builds.
Remove non MIT licensed components from the CLI when building on non
windows platforms. The shared framework provides the LICENSE file that is
included with the tarballs, so we just need to ensure we don't pull any
windows specific stuff that is not MIT licensed.

Fixes: dotnet/core-setup#676
2017-07-06 16:47:50 -07:00
Livar Cunha
2b15cb43cf Adding a Minimum VS Defined SDK version to the resolver. If it set to 1.0.4 if the minimum SDK version file is not found. 2017-07-05 09:54:46 -07:00
Livar
20023717b5 Merge pull request #7048 from livarcocc/fix_help_message
Fixing help text for version, info and diagnostics and also removing …
2017-06-30 15:54:40 -07:00
Livar Cunha
3ec572f824 Fixing help text for version, info and diagnostics and also removing runtime options that are only available for dotnet exec. 2017-06-30 13:19:52 -07:00
Livar Cunha
859058ba7b Changing to use File.OpenRead. This is required because when access readonly files, you must pass FileAccess.Read, otherwise, we get a UnauthorizedFileAccess exception. 2017-06-29 20:24:51 -07:00
Mike Lorbetske
d8087d35d4 Update engine and templates, update to SetupCrossgen 224 - Coherence 25975 2017-06-29 10:16:02 -07:00
Livar
5c67b11d62 Merge pull request #7014 from dotnet/merges/release/2.0.0-to-master-20170628-070032
Merge release/2.0.0 to master
2017-06-28 10:29:31 -07:00
Nick Guerrera
9b77dc50f1 Redirect parser to localized validation messages 2017-06-27 15:49:00 -07:00
Livar Cunha
a5aba4929a Merge remote-tracking branch 'dotnet/release/2.0.0' into merges/release/2.0.0-to-master-20170627-070029
* dotnet/release/2.0.0: (27 commits)
  Updating the runtime to pick up the satellite assembly host fix.
  Fixing some merges from release/2.0.0-preview2.
  Create the Dotnet User Profile folder when running the first experience, if the folder does not exist, if will fail the first run because it will fail to create the first notice sentinel.
  Add F# and Roslyn satellites
  Fix tests expecting unlocalized messages from dotnet/sdk
  Generating a layout folder with the satellite assemblies only which we use to generate a language pack tarball/zip. Initially, I wanted a IncludeOnlyFilter, but couldn't quite get that to work on tar, just passing the filter in the command line didn't work because the shell does not do recursive globbing. So, I opted for the layout folder.
  Update SPA templates version to 1.0.0-preview-000321
  Fix dotnet/sdk#1364
  Add rhel and Debian download link
  Exclude satellite assemblies from archive.
  Remove failed workaround for Microsoft.Composition warning
  Update templates to add missing BrowserLink package
  Update to SetupCrossgen 215 - Coherence 25794
  Update templates to suppress the warning for Microsoft.Composition and AssetTargetFallback
  Add explicit dependency for pakcage smoke test
  Update templates to remove the package NETStandard.Library.NETFramework
  Update F# compiler to latest
  Update to SetupCrossgen 213 - Coherence 25769
  Pinning to the dotnet-install to version '2.0.0-preview2-006470'
  Updating branch/channel information.
  ...
2017-06-27 14:53:41 -07:00
Nick Guerrera
34d0900a34 Use latest command line parser 2017-06-27 10:03:53 -07:00
Livar
7af62e423e Merge pull request #6999 from livarcocc/first_run_sentinel_when_no_dotnet_folder_exists
Create the Dotnet User Profile folder when running the first experience
2017-06-26 12:53:02 -07:00
Livar
eeddfb6ea1 Merge pull request #7001 from dotnet/merges/release/2.0.0-to-master-20170626-070030
Merge release/2.0.0 to master
2017-06-26 11:25:58 -07:00
Nick Guerrera
b8a2ce4e8c Merge pull request #6997 from nguerrera/loc-compilers
Add F# and Roslyn satellites
2017-06-26 11:10:49 -07:00
Livar Cunha
cd984f5b50 Create the Dotnet User Profile folder when running the first experience, if the folder does not exist, if will fail the first run because it will fail to create the first notice sentinel. 2017-06-24 22:59:35 -07:00
Nick Guerrera
14977b7201 Add F# and Roslyn satellites 2017-06-23 19:48:38 -07:00
William Li
10d59cd982 Merge branch 'master' into merges/release/2.0.0-to-master-20170623-070040 2017-06-23 11:32:24 -07:00
Livar Cunha
37f531be4c Handling an exception that happens when dotnet run is invoked with a file that is not a valid project file. We catch that exception and re-throw it as a GracefulException. 2017-06-23 10:47:09 -07:00
Nick Guerrera
74acc40036 Add msbuild satellite assemblies 2017-06-21 13:34:16 -07:00
Nick Guerrera
1661fd0975 Merge pull request #6961 from nguerrera/loc-tests
Make remaining tests pass on localized setup
2017-06-21 10:42:01 -07:00
Livar Cunha
5cab325335 Merge remote-tracking branch 'dotnet/release/2.0.0' into merges/release/2.0.0-to-master-20170621-070039
* dotnet/release/2.0.0: (35 commits)
  Fixing an issue in the RepoDirectoriesProvider where it assumed that the only directory under SDK was the SDK directories. This is no longer true now that we moved the NuGet fallback folder there.
  Simple clean up to the store tests
  Updating xlf files for the Configurer.
  Removing NuGetConfig from the first run experience and replacing the sentinel with the FirstUseNoticeSentinel when needed.
  Moving the expanding fallback folder to the dotnet folder hive. The folder will be expanded at sdk/NuGetFallbackFolder.
  Fixing CRLF issue.
  Updating xlf and fixing line ending problems with one file.
  Add rhel and Debian download link
  Fix race in telemetry msbuild arg tests
  Avoid repeating the first-run message if lzma archive is missing
  Use fluent helper for line-end normalization
  Update CoreSetup to preview3-25419-01
  Updating Roslyn to 2.3.0-beta3-61816-04
  Update CoreSetup to preview3-25418-01
  insert new tpv2 which fixes following issue https://github.com/Microsoft/vstest/issues/632 https://github.com/Microsoft/vstest/issues/844 https://github.com/Microsoft/vstest/issues/847 https://github.com/Microsoft/vstest/issues/840 https://github.com/Microsoft/vstest/issues/843
  Windows installer refresh
  Update SDK to 1.1.0-alpha-20170615-3
  Updating NuGet to 4.3.0-preview3-4168
  MSBuild 15.3.388
  Make dotnet-sln-add.Tests pass on localized setup
  ...
2017-06-21 08:51:19 -07:00
Nick Guerrera
b922d7e550 Make dotnet-remove-reference tests pass on localized setup 2017-06-20 18:45:36 -07:00
Nick Guerrera
273dea9371 Make dotnet-list-reference tests pass on localized setup 2017-06-20 17:57:32 -07:00
Nick Guerrera
20e0a46e59 Make dotnet-add-reference tests pass on localized setup 2017-06-20 16:16:38 -07:00
Livar Cunha
0e200ace5e Updating xlf files for the Configurer. 2017-06-20 11:21:43 -07:00
Livar Cunha
a357fd7bca Removing NuGetConfig from the first run experience and replacing the sentinel with the FirstUseNoticeSentinel when needed. 2017-06-20 10:59:23 -07:00
Livar Cunha
529d7caa79 Moving the expanding fallback folder to the dotnet folder hive. The folder will be expanded at sdk/NuGetFallbackFolder. 2017-06-20 10:59:23 -07:00
Livar Cunha
69e2db5251 Updating xlf and fixing line ending problems with one file. 2017-06-19 21:37:47 -07:00
Livar
f6f96e334b Merge pull request #6869 from omajid/missing-lzma-repated-first-run-message
Avoid repeating the first-run message if lzma archive is missing
2017-06-19 20:50:59 -07:00
Omair Majid
34b44b999b Avoid repeating the first-run message if lzma archive is missing
If the LZMA archive is missing, the first-run message is printed every time.
This commit fixes that.

Split the first-run message into two pieces:

- The first-run (welcome and telemetry) message is printed only once, no matter
  whether the cache was primed or not.

- The cache-priming message is printed only if the cache is avaialble.
  Otherwise skip the cache introduction and the ccache priming operation.
2017-06-19 18:08:05 -04:00
Livar
01a767cd20 Merge branch 'master' into merges/release/2.0.0-to-master-20170619-070044 2017-06-19 11:52:23 -07:00
Nick Guerrera
11967b7d9c Merge branch 'release/2.0.0' into loc 2017-06-16 18:20:44 -07:00
Livar
e3d388e82d Merge pull request #6886 from dotnet/merges/release/2.0.0-to-master-20170615-070042
Merge release/2.0.0 to master
2017-06-15 09:18:04 -07:00
Mike Lorbetske
1a142953c2 Detect initial bolding for console colors 2017-06-14 23:51:02 -07:00
Livar
d87c5c9570 Merge pull request #6860 from dotnet/merges/release/2.0.0-to-master-20170614-070042
Merge release/2.0.0 to master
2017-06-14 08:16:36 -07:00
Livar Cunha
0a4a0a082c Updating the SDK. Mostly, had to change PackageTargetFallback to AssetTargetFallback. 2017-06-14 00:27:26 -07:00
Nick Guerrera
8754fa4e68 Make dotnet-sln-add.Tests pass on localized setup 2017-06-13 21:58:03 -07:00
Nick Guerrera
5da3bfdd6a Make dotnet-sln-list.Tests pass on localized setup 2017-06-13 21:13:47 -07:00
Nick Guerrera
0a4e05b0bb Remove unused string with ID differing only by case 2017-06-13 20:44:55 -07:00
Nick Guerrera
50c68c4f5e Make dotnet-remove-package.Tests pass on localized setup 2017-06-13 20:38:15 -07:00
Nick Guerrera
2b74bf73dc Make dotnet-add-package.Tests pass on localized setup 2017-06-13 20:29:44 -07:00
Nick Guerrera
3e827fca61 Make dotnet-sln-remove.Tests pass on localized setup 2017-06-13 20:22:27 -07:00
Livar Cunha
5e5b4de0b9 Do no pass down to implicit restore the framework option. 2017-06-13 19:25:23 -07:00
Nick Guerrera
419562ba95 Make dotnet-help.Tests pass on localized setup 2017-06-13 19:24:30 -07:00
Nick Guerrera
6e0cfa7839 Make dotnet-msbuild.Tests pass on localized setup 2017-06-13 19:05:16 -07:00
Nick Guerrera
38e5b7123a Make Sln.Internal.Tests pass on localized setup 2017-06-13 18:22:41 -07:00
Nick Guerrera
f09124fcd6 Make dotnet.Tests pass on localized setup 2017-06-12 17:31:40 -07:00
Livar Cunha
8da7efdf41 Merge remote-tracking branch 'dotnet/release/2.0.0' into merges/release/2.0.0-to-master-20170612-070041
* dotnet/release/2.0.0: (72 commits)
  Updating the signing project to reflect the new location of the resolver.
  Another update to MSBuild. To 15.3.0-preview-000385-01.
  Another update to msbuild. To 15.3.0-preview-000385-01.
  Update to SetupCrossgen 183 - Coherence 25615
  Don't include .NET Core MS.NET.Build.Extensions tasks for .NET Framework and vice versa
  Update version of SDK and MS.NET.Build.Extensions, adapt to layout change
  Updating MSBuild to 15.3.0-preview-000384-01
  Update MSBuild to 15.3.0-preview-000384-01
  test pack command
  Changing NuGet version to Preview3-4154
  Updating NuGet version to Preview3-4154
  Add Microsoft.NET.Build.Extensions files to package for VS insertion
  reenable smoke test of F# templates
  empty commit
  Don't try to CrossGen .NET Framework support DLLs
  Update test platform to 15.3.0-preview-20170609-02.
  Turning off implicit restore when publishing the build project.
  Updating the vstest.console to use the same runtime that is shipping with the CLI.
  Update to template build 256 to fix Web Auth scenarios
  Add test for consuming .NET Standard 2.0 library from .NET Framework 4.6.1 project
  ...
2017-06-12 17:23:20 -07:00
Nick Guerrera
a2a33591ce Merge branch 'release/2.0.0' into loc 2017-06-12 15:06:54 -07:00
Daniel Plaisted
9659749eeb Update version of SDK and MS.NET.Build.Extensions, adapt to layout change 2017-06-09 18:18:55 -07:00
Nick Guerrera
bbdbbb3e8d Update XLF 2017-06-09 10:38:28 -07:00
Nick Guerrera
31c5294ef5 Merge branch 'release/2.0.0' into loc 2017-06-09 10:30:29 -07:00
Daniel Plaisted
6b44f8938b Merge upstream changes 2017-06-09 00:43:29 -07:00