Commit graph

609 commits

Author SHA1 Message Date
Bill Wert
785cab3072 Reduce nuget output
This addresses part of #1623. Unfortunately, because the CLI takes Nuget
as a binary, it is hard to get to where I think we should really be.
This change makes default verbosity "minimal", which is the first level
where you get any status output. Unfortunately, things like package
downgrade warnings and the like still appear there. This does hide all
the "info" and "trace" messages by default.

I also removed the now useless (and previously undocumented)
--quiet.
2016-05-24 21:34:11 -07:00
Livar
fe7b519722 Merge pull request #3215 from eerhardt/netcore-rc3
Upgrade to CoreFX rc3
2016-05-24 10:33:59 -07:00
Bryan Thornbury
2feda51952 Merge pull request #3208 from dotnet/brthor/3083
change optimization data path
2016-05-24 10:26:24 -07:00
schellap
3953a85a63 Add test for standalone resource dependency 2016-05-23 19:14:46 -07:00
Livar Cunha
a9e12e0336 Updating core packages to rc3-24123-01 2016-05-23 17:19:11 -07:00
Sridhar Periyasamy
0c463c281f Remove '--infer-runtimes' option for 'dotnet restore' when restoring
TestAssets.
2016-05-23 17:04:32 -07:00
Sridhar Periyasamy
a2ef88cf86 Upgrade the "dotnet-test-xunit" version to "1.0.0-rc2-192208-24"
The earlier version "1.0.0-rc2-173361-36" is missing from the cli-deps feed.
2016-05-23 17:04:31 -07:00
Sridhar Periyasamy
d2188cd95a Move the CLI corefx dependencies from RC2 to RC3 - rc3-24113-00.
- Disable crossgen for windows.Tracked by - https://github.com/dotnet/cli/issues/3059
- And also fix #2974
2016-05-23 17:04:29 -07:00
Pavel Krymets
40a2b495ba Merge pull request #3204 from dotnet/pakrym/dc-fixes
Fix dependency context merge and msbuildproject resolution
2016-05-23 16:29:58 -07:00
Bryan Thornbury
cbc4f58249 change optimization data path 2016-05-23 16:13:30 -07:00
Troy Dai
e93485916b Eliminate response waiting period (#3142) 2016-05-23 14:57:33 -07:00
Pavel Krymets
79a07266c9 Fix dependency context merge and msbuildproject resolution 2016-05-23 12:26:53 -07:00
Eric Erhardt
ed7c79bb48 Merge pull request #3132 from vcsjones/fix-3084
Move command line parsing into try/catch for test.
2016-05-20 19:03:32 -05:00
Kevin Jones
f149fe0e47 Test cleanup. Fixes #3084.
Cleanup tests.
2016-05-20 10:45:01 -04:00
Kevin Jones
99d8853ef0 Move command line parsing into try/catch for test.
If invalid parameters are specified in `dotnet test`, the CLI does not
catch exceptions that can be thrown such as when specifying `-r` without
a runtime.

Fixes 3084.
2016-05-20 10:00:41 -04:00
Erik Schierboom
81e9b2fe10 Add 'dotnet restore' instruction when lock file is missing 2016-05-20 09:19:05 +02:00
Bill Wert
ed3bd312cf Fix warnings in project.json
PR #2493 introduced the new project.json schema. The tree has 118 files
with the old schema, which added several hundred warnings.

This change can't go in until PR #2864 does - it relies on those bug
fixes.
2016-05-19 11:51:49 -07:00
Eric Erhardt
00eb662107 Merge pull request #3122 from eerhardt/FixCITests
Upgrade the "dotnet-test-xunit" version to "1.0.0-rc2-192208-24"
2016-05-19 08:58:53 -05:00
Sridhar Periyasamy
5dc1a14e39 Upgrade the "dotnet-test-xunit" version to "1.0.0-rc2-192208-24"
The earlier version "1.0.0-rc2-173361-36" is missing from the cli-deps feed.
2016-05-18 20:47:53 -05:00
Ajay Bhargav Baaskaran
b6e3224387 [Fixes #2829 #2861] Maintain folder structure in mappings 2016-05-18 17:25:23 -07:00
Pavel Krymets
670dbca45b Fix bug preventing MakeRunnable on dependent project when using globbing build 2016-05-17 08:22:43 -07:00
Eric Erhardt
eb7054c90d Merge pull request #3013 from eerhardt/StreamForwarder
Console.Write() doesn't show output until a newline
2016-05-13 22:09:55 -05:00
Eric Erhardt
c84f41e749 Use Moq framework instead of a concrete class to mock ICommandFactory in dotnet-run.UnitTests. 2016-05-13 20:24:22 -05:00
Eric Erhardt
ecdb10591c Project.json schema warnings don't get displayed
When building a project.json that has schema warnings (and other warnings), we are not writing the warnings to the console. This is a regression.

The fix is to add all diagnostic messages to the LibraryManager, which is responsible to hold all the diagnostic messages.

Fix 3021
2016-05-13 13:10:39 -05:00
Eric Erhardt
6bf59ffde6 Console.Write() doesn't show output until a newline
When running an app with `dotnet run`, we are redirecting the standard out and error just to print it out to our standard out and error. However, we are batching the output until we hit a newline, which isn't ideal for console apps.

To fix this, `dotnet run` no longer redirects the standard out and error.

Fix #2777
2016-05-13 09:03:35 -05:00
Sridhar Periyasamy
a6cc2b07dd Update nuget version to 3.5.0-rc-1285
This is required to update the corefx dependencies from RC2 to RC3. Some
of the corefx libs have 'netstandard1.6' as TFM and this version of Nuget
supports that TFM.

Also the 'VersionRange.IncludePrerelease' has been removed from nuget and by
default 'VersionRange.Satisfies' returns true for any prerelease version.
2016-05-12 21:56:56 -07:00
Pavel Krymets
b8dff69cc1 Revert "Revert "Add performance tests"" (#2820) 2016-05-12 10:33:32 -07:00
Eric Erhardt
17175864cf dotnet crashes with an unresolved 'platform' dependency.
Fixed by calling TryGetValue instead of a dictionary indexer when looking up platform dependencies in ProjectContextBuilder.

Fix #2693
2016-05-11 17:32:42 -05:00
Eric Erhardt
eec782a6d1 Merge pull request #2870 from dpodder/perf-test-guide
Add README howto for perf tests
2016-05-11 12:57:28 -05:00
Eric Erhardt
8013398def Merge pull request #2980 from eerhardt/FixTestCommandErrors
dotnet test and publish failing badly when the project isn't restored.
2016-05-11 11:27:52 -05:00
Eric Erhardt
652d0541ef dotnet test and publish failing badly when the project isn't restored.
Fixing this by checking for diagnostic errors before continuing.

Fix #2692
Fix #2942
2016-05-11 10:43:58 -05:00
Eric Erhardt
728575bc42 Merge pull request #2981 from eerhardt/FixBuiltInTests
Fix BuiltInCommandTests.
2016-05-10 22:22:20 -05:00
Eric Erhardt
d51c920da8 Fix BuiltInCommandTests.
I forgot to mock out the environment on one of the builtin command tests.
2016-05-10 18:46:47 -05:00
Sridhar Periyasamy
1b2b83b6db Upgrade the RC2 branding to RC3.
The following packages are changing:

Microsoft.NetCore.App: 1.0.0-rc2-3002702 -> 1.0.0-rc3-002702
Microsoft.NETCore.DotNetHost: 1.0.1-rc2-002702-00 -> 1.0.1-rc3-002702-00
Microsoft.NETCore.DotNetHostPolicy: 1.0.1-rc2-002702-00 ->
1.0.1-rc3-002702-00
Microsoft.NETCore.DotNetHostResolver: 1.0.1-rc2-002702-00 ->
1.0.1-rc3-002702-00

Also publishing the *deb file to teh debian repo feed is disabled -
https://github.com/dotnet/cli/issues/2973
2016-05-10 13:36:20 -07:00
Daniel Podder
2be785c253 Add README howto for perf tests 2016-05-10 08:38:07 -07:00
Bryan Thornbury
0336f6bb34 Throw Command Unknown for dependency tools in libraries. (#2933)
* Throw Command Unknown for dependency tools in libraries.

* Add testProjects to test tools command for libraries.

* update failing tests

* Add tests verifying that dependency tools are not available in libraries
2016-05-08 14:20:34 -07:00
Peter Marcu
e53acd9bba Merge pull request #2941 from Sridhar-MS/version-suffix
Pass the correct version suffix in the build scripts
2016-05-08 11:31:32 -07:00
Sridhar Periyasamy
566a76e5d3 Pass the correct version suffix in the build scripts 2016-05-07 23:23:31 -07:00
Eric Erhardt
a76fea647e Merge pull request #2930 from eerhardt/MvcNet46
dotnet build raises errors MVC apps target net46.
2016-05-06 17:12:25 -05:00
Eric Erhardt
d98c1f8724 dotnet build raises errors MVC apps target net46.
The issue is when the ProjectContextBuilder sees a CompileTimePlaceholder "_._" file on a full framework, it assumes that dependency has to come from the "Reference Assemblies" directory.  If it can't be found there, an error is raised.  However, there are other reasons "_._" placeholders are created (when a NuGet package doesn't want its dependencies to be exposed in the Compile dependencies of its consumers). And these placeholders can exist for assemblies that aren't in the full framework - in this case System.Diagnostics.FileVersionInfo and others.

To fix this, if the reference can't be resolved from the "Reference Assemblies" folder, it is just skipped. If the compiler really needs that assembly, it will raise an error to the user.  Dotnet build shouldn't raise the error.

Fix #2906
2016-05-06 14:32:50 -05:00
Bryan Thornbury
f538c4f19f Move to P2P references all over the place 2016-05-05 17:21:27 -07:00
Bryan
d1cd3703ac update rc2-preview1 to preview1 2016-05-05 11:05:58 -07:00
Piotr Puszkiewicz
c3fe0d062f Fix package versions 2016-05-05 11:05:55 -07:00
Eric Erhardt
c0aeb91d61 Merge pull request #2878 from rrelyea/rrelyea/updateNugetVersions
Update version number of Nuget binaries to 3.5.0-beta
2016-05-04 18:04:31 -05:00
Eric Erhardt
ece4ae52b2 Merge pull request #2851 from dasMulli/bugfix/schema-upgrade-new-project-template
Update dotnet-new templates to new project.json schema
2016-05-04 15:51:17 -05:00
Rob Relyea
804b0eea97 Update version number of Nuget binaries to 3.5.0-beta (now w/o buildnumbers) 2016-05-04 13:14:02 -07:00
Alex Panov
0d6b3c8482 Update NuGet to 3.5.0-beta-1246 2016-05-03 17:34:46 -07:00
Piotr Puszkiewicz
3e96a05f9c Merge pull request #2781 from dotnet/brthor/2760
fixes #2760
2016-05-03 15:15:42 -07:00
Piotr Puszkiewicz
99193a3a91 Merge pull request #2724 from adamgorMSFT/adamgor/telemetry-perf-improvements
Improving Telemetry performance
2016-05-03 15:14:58 -07:00
dasMulli
d2cedd318f Added a test to ensure that C# projects created by dotnet-new are built without warnings. 2016-05-03 23:38:09 +02:00