Livar
5b1ad5fe3e
Merge pull request #1652 from livarcocc/test_output_param
...
Added output param to dotnet test
2016-03-02 14:09:40 -08:00
Livar Cunha
ebab175d17
Added a command factory where you can fix the output parameters that will flow to the commands, like configuration, outputpath and in the future, framework, runtime and base path.
2016-03-01 22:28:46 -08:00
Livar Cunha
4108920510
Updating tests to use the latest version of dotnet-test-xunit, which supports debugging from VS. Also updating our xproj files so that we can build the CLI from VS using the CLI.
2016-03-01 16:28:10 -08:00
Livar Cunha
5b5d2cd31a
Adding a new factory that creates the command as is, without adding the dotnet to it. We need it so that the runner can pass dotnet-test-xunit and get back the final corehost command, which is the right one for VS to use and attach to.
2016-02-26 14:34:23 -08:00
Bryan
a986a89dcc
update with @stephentoub 's suggested changes
2016-02-24 10:51:36 -08:00
Bryan
619eaa0c55
Use System.Console on Unix
2016-02-23 11:45:57 -08:00
Bryan Thornbury
c749bae962
Pipe configuration through CommandResolver
...
script changes to pipe configuration to test.ps1
debug commit, remove this commit
Change dotnet-test to invoke dotnet-test-xunit directly
build tests with configuration, framework, runtime in windows
Update testtargets in new build scripts
make configuration first arg to dotnet test
PR Feedback
update command factory
fix interface
test update
2016-02-18 09:57:30 -08:00
David Fowler
078d6a8d5f
Build and project cleanup
2016-02-15 09:43:18 -08:00
David Fowler
77dfbd8e43
Fixed the build
...
- csc kept crashing on stage 2 and it turned out to be a version mismatch with System.Reflection.Metadata.
- Silenced crossgen
- Made omnisharp see all of the projects
2016-02-15 09:03:40 -08:00
Piotr Puszkiewicz
e8ef94e93f
Merge pull request #1212 from AustinWise/fixColors
...
Fix color printing and --verbose
2016-02-12 23:39:49 -08:00
Senthil
28f35c1cfa
Remove DOTNET_HOME from the CoreCLR probe path
2016-02-12 17:03:09 -08:00
Austin Wise
6957303a13
Fix build break on Windows.
2016-02-12 15:58:35 -08:00
Austin Wise
468a0f38a5
Fix color printing and verbosity.
...
Only apply the ANSI passthrough for child commands. Otherwise the
escape codes are printed to the console on Windows
Make Report.Write process escape codes so that forwarded output will have
its escape codes processed.
Also make verbose be inherited by all child processes.
2016-02-12 15:52:11 -08:00
Andrew Stanton-Nurse
d524732bbb
working on build scripts
2016-02-12 15:26:35 -08:00
Bryan Thornbury
50ab680688
update compiler unit tests
...
fix rebase errors
PR Feedback
more PR feedback
fix
make new script file executable
Remove scripts from TestAppCompilationContext
add hashbang to echoscript
2016-02-12 11:37:15 -08:00
Bryan Thornbury
c1e28ae921
Refactor ScriptExecutor, add test cases for scriptexecutor.
...
Add TargetFramework and FullTargetFramework to compile and publish script
variables.
Add ProjectLocal Command Resolution Strategy.
Fixup ArgumentEscaper to not always quote things.
Fixes #1216
Fixes #1016
Fixes #982
2016-02-12 11:04:30 -08:00
Pranav K
33f1b8551e
Compile Microsoft.DotNet.Cli.Utils in net451
2016-02-11 15:46:43 -08:00
Livar Cunha
e945361a76
Replacing the fixed rid in the dotnet compile unit test by one that respects the platform where the tests are running.
...
Removing trailing slashes for the paths passed to the scripts to avoid the double quotes escaped issue.
2016-02-11 12:44:27 -08:00
Livar Cunha
4e1ec4c159
Refactoring dotnet-compile to make adding the script variable testable. So far, moved it to have a compiler controller and two separate compilers: native and managed. Also moved the script runner to its own class so that we can mock it into the managed controller.
...
Adding a ICommand interface and factory that we can use to mock Commands and avoid actually running them in unit tests.
2016-02-11 12:42:02 -08:00
Andrew Stanton-Nurse
236fcd8f95
update everyone to 23811
...
add a little hackiness to the build script to use 23811 in the stage 0 as well
2016-02-11 10:38:59 -08:00
Eric Erhardt
74d8051f79
Bump CoreFx to rc2-23810
2016-02-10 13:50:28 -06:00
Piotr Puszkiewicz
48797ea80a
Bump CoreFx to rc2-23808
...
Workaround for issue 1294
Improve crossgen notifications
2016-02-09 15:49:45 -08:00
Bryan Thornbury
0b27dba299
Merge pull request #1240 from dotnet/brthor/stream_forwarding_changes
...
Stream Forwarding Changes.
2016-02-09 10:45:35 -08:00
Pavel Krymets
0f82ae37f3
Refactor output directory code
2016-02-09 08:52:59 -08:00
Bryan Thornbury
b8e95a9568
Argument Fowarding Tests should account for newline added by StreamFowarder. Add an entry to developer guide so command developers will use Console.WriteLine. PR feedback and slight refactoring.
2016-02-08 14:19:03 -08:00
Bryan Thornbury
ccaaebf6e5
Stream Forwarding changes to not wait on buffer full before writing. Instead input streams will be read character by character as they Console.Write or Console.WriteLine. Upon finding a newline character, the line will be printed to the parent process's console.
2016-02-08 14:19:02 -08:00
Eric Erhardt
a7e9ee52c9
Update to .Net Core rc2-23805
2016-02-05 15:53:23 -06:00
Livar Cunha
e618ff091f
Making the test scripts work with dotnet test.
2016-02-03 17:07:55 -08:00
Livar Cunha
fd604355fe
Introducing a new library to hold file system related abstractions. Making the E2E tests work with dotnet test
2016-02-03 17:07:40 -08:00
Livar Cunha
3048eb487c
Making dotnet-compile run with dotnet test. Added a method to PathUtil to calculate target paths ignoring directory traversal characters.
...
Making dotnet-build.tests run with dotnet test
Making dotnet-publish.test work with dotnet test
2016-02-03 17:07:38 -08:00
David Fowler
fe5f19765d
Fixed versions that actually exist still
2016-02-02 23:24:22 -08:00
David Fowler
ec10a1d6be
Upgrade stdlib and enable crossgen
2016-02-01 20:48:34 -08:00
David Fowler
dfc59eb20e
Everything in the same project
...
- Build in intrinsic commands as part of dotnet
2016-02-01 14:56:32 -08:00
Andrew Stanton-Nurse
1a6d5c9f5e
go to rel, do not pass go, do not collect $200
2016-01-28 22:33:19 -08:00
Piotr Puszkiewicz
1796586280
Merge pull request #1107 from livarcocc/fix_dotnet_test
...
Fix the way we pass the deps file to the host
2016-01-28 21:36:38 -08:00
Livar Cunha
9c87983fdf
When doing the argument escaping work, we changed the way we pass the depsfile to the host, this broke the dotnet test command. Moving the parameter back to its original and expected format.
2016-01-28 18:12:28 -08:00
PiotrP
e792387d7a
Adjust imports to portable45
2016-01-28 10:55:22 -08:00
David Fowler
6edac85dce
Fixed copying output assets to the publish directory
2016-01-27 20:35:43 -08:00
David Fowler
a35ae177ff
- Make all of the code looking for built assets use the OutputPathCalculator
...
- Project dependencies are always built into their specific folders and the main project is the only one that uses the output path and intermediate output path variable.
- Publish respects the output path for publish only, not compile as part of publish. This means that publishing multiple runtimes will stomp on each other. So don't do that. We can throw if you specify and output location and you haven't specified a specific combination of RID and framework. Alternatively it should probably just pick the first TFM/RID pair from the lock file. This is similar to how `dotnet run` works.
- Cleaned up the incremental build output formatting
- Use a single stream (output stream) since interleaving them was causing formatting issues (like losing random characters in the middle of outputting things).
- Didn't change how pack works, it still preserves the output structure when passing `--output`, this one is worth discussing. We could leave the build output inplace and only move the package to the output location. That's more consistent with how everything else works and can be a follow up PR.
2016-01-27 11:13:45 -08:00
piotrp
60450bd94a
Bump NETStandard.Library to 23727
2016-01-27 09:11:08 -08:00
piotrp
a66546d8fb
Maintain test artifacts
...
Improved test diagnostics
Providing diagnostics about failed process.
Workaround for https://github.com/NuGet/Home/issues/1977
get past crossgen errors!
2016-01-26 23:25:39 -08:00
Andrew Stanton-Nurse
066bebcc6c
bootstrap using nuget instead of dnx
2016-01-26 23:25:37 -08:00
moozzyk
0d3f1bf5f2
Strong naming Microsoft.Dotnet.Cli.Utils
2016-01-26 16:18:38 -08:00
Bryan
4c41c9699c
Last necessary test changes
...
Fix the refactoring bugs
fix restore
downgrade version of package command test
Linux Test Script Fixes
use corehost instead of corerun for arg testing
don't copy corehost
fix scripts
Account for change in publish path, use corerun. Issue with AppContext.BaseDirectory in corehost.
Case Sensitive Reflector
wait for process exit
Fix bug in runtests.ps1
fix release build output path
fixup bug in runtests.sh
2016-01-23 14:32:50 -08:00
Bryan
cd9e5e2f08
Make the move off of * dependencies
...
move tests back to 23704
name changed, feedback
2016-01-23 13:01:37 -08:00
Bryan
c727c513dc
Native fixes
...
project.json cleanup
Cleanup and Code Review Feedback
2016-01-23 13:01:36 -08:00
Bryan Thornbury
d1d23944df
Changes to fix publish tests
2016-01-23 13:01:34 -08:00
Bryan
e794ad6a10
Basic Argument Forwarding and Escaping Code Additions/Changes
2016-01-23 13:01:30 -08:00
Andrew Stanton-Nurse
3d493f7d9d
switch from DNX to cross-plat NuGet!
2016-01-19 11:43:09 -08:00
Piotr Puszkiewicz
4e0d28db74
Merge pull request #874 from dotnet/bricelam-patch-1
...
Update incorrect dependency in Microsoft.DotNet.Cli.Utils
2016-01-16 14:05:07 -08:00
Brice Lambson
a0d087ac72
Update incorrect dependency in Microsoft.DotNet.Cli.Utils
2016-01-15 12:55:26 -08:00
Sridhar Periyasamy
82a81cae8d
Fix double quotes in 'pathext' environment variable.
2016-01-15 10:15:26 -08:00
Sridhar Periyasamy
684d9b1d89
Fix driver to remove double quotes from paths in %PATH% env
...
Fixes - #827
2016-01-14 18:27:26 -08:00
schellap
b4b482006b
Fix host name, debuggability and embed CRT
2016-01-14 12:06:18 -08:00
Aleksandar Milicevic
1444815285
removed all invocations of the place-binary script from postcompile scripts, since it does not seem to be necessary
2016-01-12 13:16:52 -08:00
PiotrP
8274f5285b
Enable resolving command paths from AppBase
2016-01-12 13:16:52 -08:00
Senthil
28f01faae5
Merge pull request #780 from schellap/host-svc
...
Split corehost into serviceable DLL and EXE
2016-01-12 12:35:09 -08:00
moozzyk
0e4719ee95
Adding pre/post publish scripts
...
Fixes #742
2016-01-12 09:41:59 -08:00
schellap
907cf00654
Split corehost into serviceable DLL and EXE
2016-01-11 18:06:18 -08:00
Zlatko Knezevic
a90d28404e
Merge pull request #770 from alexanderkozlenko/pr_dls
...
Fix library suffux usage for coreclr library name construction
2016-01-11 16:30:35 -08:00
PiotrP
9eed889217
PR Feedback
2016-01-11 13:10:55 -08:00
PiotrP
ec5a50dfe8
fix parameter name in CommandResolver.cs
2016-01-11 12:06:35 -08:00
piotrp
c5ce2eb753
Fixes issue #781 makes CommandResolver comply with new implementation of --depsFile
2016-01-11 02:36:21 -08:00
piotrp
5cd64066c4
Packaged Commands
2016-01-09 16:50:31 -08:00
Alexander Kozlenko
9fce07625d
Fix library suffux usage for coreclr library name construction
2016-01-09 15:49:29 +02:00
Andrew Stanton-Nurse
f4df12f2e2
add proper RID detection based on PlatformAbstractions
2016-01-08 10:07:58 -08:00
Piotr Puszkiewicz
6b1e11a1c9
Merge pull request #722 from Sridhar-MS/centos-tests
...
Enable running tests for CentOS
2016-01-06 01:14:04 -08:00
piotrp
47f79e4d99
Cli.Utils internal --> public
2016-01-06 00:44:41 -08:00
Sridhar Periyasamy
2ebb28819e
Enable running tests for CentOS
...
CentOS tests were blocked due to issue https://github.com/dotnet/corefx/issues/5066 .
It has been fixed with the latest NetStandardLibrary, hence upgrading from 1.0.0-rc2-23616 to 1.0.0-rc2-23704.
With this fix the native shims are correctly restored by dnx for RID centos.7-x64.
2016-01-05 18:11:38 -08:00
piotrp
49007197e8
self-closing ifs
2016-01-05 01:49:31 -08:00
piotrp
cb90b1122c
Some PR feedback, cleaning up namespaces.
2016-01-05 01:49:28 -08:00
piotrp
ef0fc05119
ProjectContext.MakeRunnable
...
PR Feedback
Fixing naming of GetContentFiles
2016-01-05 01:49:27 -08:00
Tanner Gooding
adc24fd301
Adding support for seeding the repl with a project context.
2015-12-29 13:40:47 -08:00
Mihai Codoban
110b30ccdc
Extract build from compile
...
Build becomes the new compile. It decides which project to compile and how. It checks for incremental preconditions
Compile's resonsibility is trimmed down to only knowing how to invoke the compiler on a project
2015-12-23 17:31:47 -08:00
Mihai Codoban
197a02807f
Command knows its command resolution strategy
...
A command may be resolved from a nuget package, from the executing
assembly directory, or from the path.
2015-12-23 17:02:10 -08:00
Sridhar Periyasamy
55b9697b74
Merge branch 'master' of https://github.com/dotnet/cli into publish-tests2
2015-12-17 18:16:33 -08:00
Bryan Thornbury
3fd3daa51a
Merge pull request #487 from brthor/project_validator
...
Multi Project Validation
2015-12-16 16:47:51 -08:00
Bryan
3c1c747d9d
rc2-23616 to hopefully resolve crossgen issues
2015-12-16 11:48:33 -08:00
Bryan
fcad2bab83
Upgrade References in Project.json files to rc2-23614
2015-12-16 11:47:55 -08:00
Sridhar Periyasamy
771b0b1eb1
Fix build break
2015-12-15 10:04:16 -08:00
Pavel Krymets
93158dc1be
Add resource satelite assembly generation
2015-12-14 08:33:11 -08:00
Bryan
6ff7404a48
Multi Project Validator
...
A tool which searches recursively for project.json files,
runs a set of analyses and reports on the result.
For CLI we have only one rule currently, that Dependencies
between projects must be equivalent to avoid stomping.
2015-12-11 14:24:05 -08:00
Bryan Thornbury
8b12fa9ffe
Merge pull request #445 from brthor/stdlib
...
Move references to StdLib, Update other versions to "-rc2-23608"
2015-12-10 11:14:32 -08:00
Charles Stoner
6a15c33492
Merge pull request #424 from cston/prompt
...
Allow unbuffered forwarding of output
2015-12-10 09:18:18 -08:00
Charles Stoner
ac017ea3ee
Forward output unbuffered
2015-12-09 15:20:58 -08:00
Bryan
16fa836215
Upgrade references to use NETStandard.Library, or up to rc2-23608 where applicable
2015-12-09 14:52:56 -08:00
Sridhar Periyasamy
cd357cb273
Fix dotnet driver on windows to deal with spaces
...
dotnet driver fails running dotnet-restore.cmd if this file is in a path
containing spaces. Use the magic "/S" switch in cmd to fix this.
2015-12-04 16:26:07 -08:00
piotrp
407c933480
add dotnet-test
2015-11-30 17:28:03 -08:00
Bryan Thornbury
939ba19fb6
Small Fix
2015-11-30 11:12:39 -08:00
Bryan
ef22c93c39
E2E Testing First pass. Test each command in a sequence to mock what a user might do.
2015-11-30 11:07:07 -08:00
piotrp
8d2733e147
PR Feedback
2015-11-29 11:35:19 -08:00
piotrp
abff1f474c
PR Feedback
2015-11-28 09:39:56 -08:00
piotrp
976393ab0a
Enable commands to be shipped in packages
2015-11-28 01:18:42 -08:00
piotrp
bf2583c1a6
Fix Microsoft.DotNet.ProjectModel namespace
2015-11-27 16:19:54 -08:00
Krzysztof Wicher
159e6187ae
Merge pull request #288 from krwq/switch_to_system_commandline
...
Switch dotnet-run to System.CommandLine
2015-11-26 06:20:46 -08:00
schellap
29cd999b51
Fix restore.cmd not recognizable command
2015-11-25 12:14:26 -08:00
Krzysztof Wicher
0ecbc0d5fc
Convert dotnet-run to System.CommandLine
2015-11-20 20:33:32 -08:00
Pranav K
6e465818c5
Copy of AnsiConsole from aspnet/dnx/dev/src/Microsoft.Extensions.CommandLineUtils.Sources
2015-11-20 19:01:03 -08:00
Andrew Stanton-Nurse
04624ff5d1
add script executor
...
also added a postcompile script to each project to place the outputs in the right folder
fixes #237
2015-11-18 14:28:07 -08:00
PiotrP
e839b4debb
Update Copyright headers in all source files.
2015-11-16 19:47:43 -08:00
David Fowler
98390d50e0
Don't require all dotnet tools to be on the path
...
- Try resolving full path to executable in the local directory first.
2015-11-16 18:21:15 -08:00
Andrew Stanton-Nurse
4cc15b1246
restructure the output layout
...
also reorganize the scripts folder
2015-11-16 09:44:00 -08:00
Charles Stoner
e2cdf17e2e
Add Microsoft.DotNet.Tools.Interactive
2015-11-05 08:54:20 -08:00
Sridhar Periyasamy
f211414d6e
Upgrade references to 23504. It has the fix in System.Diagnotics.Process
...
for the Ubuntu hang.
2015-11-04 10:31:40 -08:00
Andy Gocke
e338f0415c
Update everything to 23502 and add Tools.Run to sln
2015-11-02 21:47:18 -08:00
Andy Gocke
7dd429f047
Enable Roslyn crossgen on osx/linux
...
Also updates the runtime to 23502, which contains the crossgen
utility in the xplat runtime packages.
2015-11-02 16:44:03 -08:00
anurse
b35fba863b
command line interface clean-up
2015-11-01 21:08:01 -08:00
David Fowler
e372b32b61
Overwrite existing env vars
2015-11-01 06:24:31 -08:00
Andrew Stanton-Nurse
3ce7a84a04
dotnet-run command
2015-10-31 21:57:07 -07:00
Bryan Thornbury
951e682070
remove constant
2015-10-30 15:17:43 -07:00
Bryan Thornbury
15cbb75e45
merge with master
2015-10-30 15:11:18 -07:00
Andrew Stanton-Nurse
e70a169b28
Add a shared runtime aware host
...
And use it in dotnet-compile
2015-10-30 15:03:29 -07:00
Bryan Thornbury
822f8100a9
clean things up
2015-10-30 14:48:09 -07:00
Bryan Thornbury
4cb3b9569b
Merge remote-tracking branch 'upstream/master' into compilenative
2015-10-29 12:04:02 -07:00
Bryan Thornbury
7fe32a93b1
--native first attempt
2015-10-29 12:03:01 -07:00
Andrew Stanton-Nurse
840b704bf5
pin versions
2015-10-28 15:55:43 -07:00
Andrew Stanton-Nurse
a715be1d59
switch to latest coreclr
2015-10-28 15:47:47 -07:00
Andrew Stanton-Nurse
1d76b2846c
package up DNX in the tar.gz
...
includes a smoke test for verifying that the output can be used to build
also includes a checked-in CoreCLR in order to work around CoreCLR issue
2015-10-28 10:32:30 -07:00
David Fowler
8ca5740ce0
Change output for process exiting
2015-10-22 05:31:24 -07:00
glennc
7339dbd5bf
Force package versions down temporarily while we move to dotnet.
2015-10-21 14:02:47 -07:00
David Fowler
5872aa0f0c
Make all command execution synchronous
...
- This fixes a bunch of weird races I was seeing building
larger solutions.
2015-10-21 03:11:27 -07:00
David Fowler
d42b38d8ff
Small fixes
...
- Change color of executing command
- Fix overwrite in publish
2015-10-20 03:07:21 -07:00
David Fowler
063eb45f8b
Moved the reporter to shared code
2015-10-20 02:42:29 -07:00
David Fowler
0c5464fa8c
Added time for command execution
2015-10-18 21:24:26 -07:00
David Fowler
fc64db1f73
Support resx file embedding
...
- Added resgen tool and takes .resx and makes .resources
- Write .resources and .rsp to obj folder
2015-10-18 21:07:48 -07:00
David Fowler
6ba4781c4f
Made changes to compilation and other things
...
- Added basic support for embedded resources (resx files are next!)
- Print out exit code from executed command (makes debugging easier)
- Fixed dnvm2.cmd to avoid putting things on the user path
- Fixed up propagation of exit codes
2015-10-18 19:02:09 -07:00
Andrew Stanton-Nurse
1a01bfb931
add mac build
2015-10-16 15:45:19 -07:00
Andrew Stanton-Nurse
1a9a5acb41
check in CoreConsole until there's a working build
2015-10-16 15:45:17 -07:00
David Fowler
64f539e100
Fixed a few issues around bootstrapping
...
- Work aronud coreconsole issue in the bootstrap.cmd
- Use msbuild 14 roslyn csc until we have it
- Remove quoting args when building project refs, it wasn't working
- Fixed logic that launched exe's directly
2015-10-16 04:21:40 -07:00
Andrew Stanton-Nurse
6d3f07234a
code review feedback
2015-10-15 12:56:07 -07:00
Andrew Stanton-Nurse
40eba07f28
add some bootstrap scripting
2015-10-15 12:18:45 -07:00
Andrew Stanton-Nurse
9da2475e2f
port DNX's ApplicationHostContext as ProjectContext
2015-10-14 15:37:39 -07:00
anurse
43873a37b5
merge my spike on compile/publish/run and switch from PS1 to C#
2015-10-06 10:46:43 -07:00