Livar Cunha
db218ab11c
This fixes a race condition where if the runner takes to long to execute and we get two messages before the runner quits, we hit a blocking piece of code when trying to add new messages to the queue, which leads to a deadlock, where we need to finish the runner to process new messages but the runner won't quit because it is waiting for us to accept is other messages.
2016-03-03 00:11:13 -08:00
Livar Cunha
03b6b8ada0
We had a bug where the framework for design time runs of dotnet test was hard coded into dnxcore50. Moved some things around so that we will pack the target framework from the project context.
2016-03-02 22:15:02 -08:00
Jared Parsons
2deb9d343a
Plumbde through the option
2016-03-02 15:53:59 -08:00
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
Jared Parsons
e56858b4b3
Make Portable PDB the default on Windows
...
VS 2015 Update 2 CTP has been released which has support for debugging portable PDBs. Now is a good time to make the transition so a) we can root out any remaining issues with portable PDBs and b) have larger dogfooding of the VS debugging experience here.
closes #704
2016-03-02 09:58:41 -08:00
Troy Dai
b63705198c
Merge branch 'troy/1569' into rel/1.0.0
2016-03-02 09:31:36 -08:00
Livar
66a4554290
Merge pull request #1640 from livarcocc/update_xunit_runner
...
Updating tests to use the latest version of dotnet-test-xunit
2016-03-01 22:47:37 -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
9953ab48b3
Changing from serializing ProcessStartInfo to our own TestStartInfo class, because serializing ProcessStartInfo doesn't really work cross-platform due to unsupported properties.
2016-03-01 21:53:51 -08:00
Troy Dai
4dff646f5d
Update ProjectManager error message
2016-03-01 19:45:45 -08:00
Troy Dai
bcd656daec
Fix logging error
2016-03-01 12:58:30 -08:00
Sridhar Periyasamy
de89da6a3a
Merge pull request #1551 from Sridhar-MS/cli-x86-support
...
Add support for building Windows x86 version of dotnet CLI
2016-02-29 14:59:51 -08:00
Livar
208a0f31ec
Merge pull request #1609 from livarcocc/dotnet_test_xunit_command
...
Dotnet test creating the command using dotnet-test-xunit
2016-02-27 15:03:14 -08:00
Dennis Fischer
61281b4580
Add a auto-generated header to the assembly info file that is created on build
2016-02-27 15:05:45 +01:00
Sridhar Periyasamy
01d2656be1
Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into cli-x86-support
2016-02-26 14:34:25 -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
Livar
14e8b184bd
Merge pull request #1597 from livarcocc/debug_tests_fixes
...
Test Runner test started needs to handle messages when dotnet test is in TestStarted state
2016-02-26 10:49:36 -08:00
Pavel Krymets
9d09d8aeac
Merge pull request #1594 from dotnet/pakrym/dth-ref
...
Fix design time host regression that caused project references being additionaly referenced as metadata
2016-02-25 19:50:08 -08:00
Senthil
f165aa5e68
Add cpp compiler flags
2016-02-25 18:12:00 -08:00
Livar Cunha
46b1fb42c0
Test Runner test started needs to handle messages when dotnet test is in a TestStarted state, as we will receive multiple test started messages. Also, to prevent a crash, when we get a message that terminates the adapter or the runner, we need to stop listening. Unfortunately, this needs to be directly where we read the messages, because if we give a handler a chance to handle that message, the reader will already be trying to read again.
2016-02-25 17:36:13 -08:00
Pavel Krymets
fa55e6fa2b
Fix DHT when referencing projects
2016-02-25 13:50:10 -08:00
Livar
b00a75e3ea
Merge pull request #1552 from livarcocc/make_version_check_optional
...
Making the version check an optional message for test discovery and test run.
2016-02-25 08:35:28 -08:00
Pavel Krymets
6013ee0981
Merge pull request #1565 from dotnet/pakrym/messages
...
Add better messages for run scenarios
2016-02-24 17:31:45 -08:00
Livar Cunha
3f2b1d068d
Making the reporing channel port discovery and accept incoming connections separate. Before we were hanging when creating the reporting channel and never starting the test runner.
2016-02-24 16:53:16 -08:00
Pavel Krymets
a074101b1d
Add better messages for run scenarios
2016-02-24 10:49:00 -08:00
Pavel Krymets
0037e0aba9
Fix dontet pack with buildbasepath
2016-02-23 19:13:50 -08:00
Livar Cunha
252eb4371f
Making the version check an optional message for test discovery and test run.
2016-02-23 18:13:00 -08:00
Sridhar Periyasamy
834edfbc9c
Add support for building Windows x86 version of dotnet CLI
...
- Changes to build scripts to produce Winx86 build artifacts like
zip/installer.
- Change to run Nuget-xplat in the same process as dotnet.exe instead of
spinning up a new 'corerun' process.
2016-02-23 18:04:49 -08:00
Livar Cunha
7630337074
Adding unit tests for the state machine of dotnet test. Starting the implementation of a state machine in dotnet test. Right now we only handle the TestSession:Terminate message.
...
Adding a message handler for the version check message. Also introduced an IDotnetTest that handles state and handlers (the state machine).
Adding the test discover start message handler and introducing a test runner.
Added the handler for the GetTestRunnerProcessInfo message. Also, modified dotnet test to have separate setter for the special message handlers for terminate and unknown messages and added a separate method to add new reporting channels to DotnetTest, so that it can handle the new listener for the test runner.
Added the test runner test discovery handlers.
Added handlers to deal with the test execution itself.
Updated dotnet-test program to use the message handlers during design time.
Added a test for the whole discover tests message flow.
Added a test for the run tests full message exchange.
2016-02-23 11:20:04 -08:00
Pavel Krymets
a71112ce8f
Asset refactoring and content files
2016-02-23 08:34:38 -08:00
David Fowler
dec4a0627f
Fix asset copy on publish when lock file instance is shared
...
- Don't mutate the library target when making a package description.
#1528
2016-02-23 02:34:56 -08:00
Pavel Krymets
f49fdd9197
Merge pull request #1501 from dotnet/pakrym/run-single-target
...
Fix run behaviour when only single target exists
2016-02-22 20:34:23 -08:00
Pavel Krymets
6ca22e4a56
Fix run behaviour when only single target exists
2016-02-22 15:11:24 -08:00
Piotr Puszkiewicz
e625cbcf7a
Removes usage of DOTNET_HOME in CLI repo.
...
DOTNET_HOME is no longer required, though it is a documented override, so this change removes all unnecessary references to DOTNET_HOME from the CLI Repo.
2016-02-18 15:38:23 -08:00
Bryan Thornbury
8d939fc7e1
Merge pull request #1477 from dotnet/brthor/deps-space-fix
...
fix dotnet-compile.deps.json space in the path issue.
2016-02-18 11:24:40 -08:00
Bryan
dd103cf6a8
fix dotnet-compile.deps.json space in the path issue.
...
add test for space in the path with Preserve Compilation Context
fix project.json
update tests
update test
2016-02-18 10:51:50 -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
Pavel Krymets
c65a1700eb
Merge pull request #1449 from dotnet/pakrym/runtime-assets
...
Fix publish runtime asseets
2016-02-18 08:07:37 -08:00
David Fowler
8645031db8
Merge pull request #1471 from dotnet/davidfowl/fix-versions
...
Fixing versions
2016-02-18 02:42:31 -08:00
David Fowler
ed16632a33
Flow the version suffix via pack as well
2016-02-18 02:27:35 -08:00
Senthil
e1d8a0505c
Update appdep
2016-02-18 01:22:54 -08:00
David Fowler
69b5e3f815
Fixing versions
...
- Added --version-suffix to build and publish
- Support reading DOTNET_* version variables everywhere versions can be read
- Show the commit sha in dotnet --version
- Added tests that check the assembly output version
- Set DOTNET_BUILD_VERSION when producing the CLI app itself so that it has the version information stamped in for help.
2016-02-18 01:10:07 -08:00
Bryan
b1885eaa58
Cleanup all the Trims everywhere. csc is the only program which requires response files to have quotes.
...
additional cleanup
2016-02-17 16:38:41 -08:00
Bryan Thornbury
23907bc924
Merge pull request #1434 from dotnet/brthor/1280/resgen-spaces
...
Fix Resgen with Spaces in Path
2016-02-17 09:35:26 -08:00
Pavel Krymets
b0ff1857cc
Fix publish runtime asseets
2016-02-16 20:54:11 -08:00
Bryan Thornbury
ccce495737
Fixes #1280
...
PR Feedback for resgen tests
don't trim
update use-dev for win10
additional product changes
More fixes
fix
fix resgen
2016-02-16 17:07:58 -08:00
Pavel Krymets
78ccff9d50
Merge pull request #1428 from dotnet/pakrym/runtime-context-logic
...
Use runtime context only where we require it
2016-02-16 17:03:01 -08:00
Pavel Krymets
9fb99526a1
Use runtime context only where we require it
2016-02-16 15:54:33 -08:00
Piotr Puszkiewicz
2471a3fc55
Merge pull request #1444 from dotnet/piotrpMSFT/Issue1352/RID_Override
...
Remove dotnet-restore RID override
2016-02-16 14:38:12 -08:00
Pavel Krymets
8a94e66384
Merge pull request #1439 from dotnet/pakrym/pack-output
...
Fix pack output location
2016-02-16 14:29:19 -08:00
Piotr Puszkiewicz
6e6b8126ac
Fixes #1352
2016-02-16 13:59:16 -08:00
Pavel Krymets
4d4f5ad895
Fix pack output location
2016-02-16 13:56:07 -08:00
Troy Dai
8058b42e9b
Add FrameworkData to ProjectReferenceDescription
2016-02-16 10:35:31 -08:00
Austin Wise
67b4012e45
Move the help command it it's own class.
...
Also fix the help command to work with intrinsic commands.
2016-02-15 20:11:02 -08:00
Senthil
ef00f0331e
Include project.json dependencies for native
2016-02-14 17:20:23 -08:00
Senthil
28f35c1cfa
Remove DOTNET_HOME from the CoreCLR probe path
2016-02-12 17:03:09 -08:00
Andrew Stanton-Nurse
d524732bbb
working on build scripts
2016-02-12 15:26:35 -08:00
Bryan Thornbury
5c0eb19859
Merge pull request #1377 from dotnet/brthor/script_executor_and_arg_forwarding
...
ScriptExecutor and ArgumentEscaper Changes
2016-02-12 12:38:21 -08:00
Piotr Puszkiewicz
69c5f542e5
Merge pull request #1285 from enricosada/fix_dotnet_compile_fsc
...
Fix dotnet-compile-fsc
2016-02-12 12:14:59 -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
Piotr Puszkiewicz
82bbd22d46
Merge pull request #1272 from cdmihai/cdmihai/noDependencies
...
Add --no-dependency flag to build
2016-02-12 10:59:54 -08:00
Enrico Sada
7dd4bdf268
fix build of target framework net46
2016-02-12 19:14:50 +01:00
Enrico Sada
57ae360c23
use DNXCORE50 define to check if target framework is Desktop
...
Best is to use NuGetFramework.IsDesktop method, but i cannot parse the assemblyInfoOptions.TargetFramework as NuGetFramework
2016-02-12 19:14:50 +01:00
Enrico Sada
a2a319c55a
support project.json compilationOptions.additionalArguments
2016-02-12 19:14:49 +01:00
Enrico Sada
19a66849a4
always create a pdb, dotnet-build crash if not found
...
a `noPdb` options doesnt exists in project.json, a pdb is required as compile output
2016-02-12 19:14:49 +01:00
Enrico Sada
e8e3f7c78f
fix invalid arguments, fsc has problems with quoted arguments ( quoted with " )
2016-02-12 19:14:48 +01:00
Enrico Sada
2bd7a978cf
add --targetprofile:netcore if target framework is not desktop
2016-02-12 19:14:47 +01: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
b5450cabc2
update version in 'dotnet new' template
2016-02-11 12:11:45 -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
Mihai Codoban
a0990a518c
Add --no-dependency flag to build
2016-02-10 15:35:27 -08:00
Pavel Krymets
4462dc21f8
Do not search for runtime output in dependencies
2016-02-10 15:20:08 -08:00
Eric Erhardt
74d8051f79
Bump CoreFx to rc2-23810
2016-02-10 13:50:28 -06:00
Piotr Puszkiewicz
b34dd22ca8
Merge pull request #1295 from dotnet/piotrpMSFT/CrossGen23808
...
crossgen 23808
2016-02-09 16:19:15 -08:00
Piotr Puszkiewicz
48797ea80a
Bump CoreFx to rc2-23808
...
Workaround for issue 1294
Improve crossgen notifications
2016-02-09 15:49:45 -08:00
Pavel Krymets
2fe913ae8f
Fix incremental build
2016-02-09 15:41:45 -08:00
Pranav K
f78a259cf1
Merge pull request #1300 from dotnet/prkrishn/dependencycontext
...
Fix the paths at which CompileContext locates resgen outputs.
2016-02-09 14:50:36 -08:00
Pavel Krymets
5c3bc7f340
Merge pull request #1321 from dotnet/pakrym/package-fix
...
Fix location for package signing
2016-02-09 14:38:31 -08:00
Bryan Thornbury
bed4c37beb
Merge pull request #1325 from dotnet/brthor/1181/quickfix
...
hard code portable-net452+win81 to quickly unblock
2016-02-09 14:32:34 -08:00
Pranav K
1d25d2574d
Fix the paths at which CompileContext locates resgen outputs.
...
Fixes #1136
2016-02-09 14:29:25 -08:00
Pavel Krymets
9c9c726d82
Fix location for package signing
2016-02-09 14:17:48 -08:00
Bryan Thornbury
a2d1d1b9e8
hard code portable-net452+win81 to quickly unblock
2016-02-09 13:06:38 -08:00
Pavel Krymets
2e71afc56d
Fix build for full clr
2016-02-09 12:01:52 -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
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
Piotr Puszkiewicz
0863e02b52
Merge pull request #1253 from dotnet/piotrpMSFT/dotnet-testConfiguration
...
dotnet-test -c
2016-02-05 14:21:12 -08:00
Eric Erhardt
a7e9ee52c9
Update to .Net Core rc2-23805
2016-02-05 15:53:23 -06:00
Piotr Puszkiewicz
f51b9fb337
enable passing config to dotnet-test
2016-02-05 13:26:12 -08:00
Troy Dai
78a7f6d8d1
Fix the exception throw during logging.
...
The '{}' in the message causes formatter exception when it appears in
string interpolation.
2016-02-04 22:58:58 -08:00
David Fowler
1e799415cb
Removed temporary folder for run
2016-02-04 19:12:02 -08:00
Piotr Puszkiewicz
65c026afbf
Merge pull request #1052 from cdmihai/cdmihai/HFSTimeStampBug
...
Allow false positive rebuilds when timestamp collision occurs
2016-02-04 17:15:04 -08:00
Mihai Codoban
1376228e4c
Merge pull request #1217 from cdmihai/cdmihai/updateBuildDocumentationReleaseTarget
...
Update build readme
2016-02-04 16:38:49 -08:00
Mihai Codoban
6d1ff3af8c
Allow false positive rebuilds when timestamp collision occurs
...
Fixes #965
2016-02-04 16:35:04 -08:00
Mihai Codoban
897c0fa0f0
Rename --force-incremental-unsafe flag to --no-incremental
2016-02-04 15:57:10 -08:00
David Fowler
d1b8eb9967
Merge pull request #1208 from AustinWise/intrinsicInvoke
...
Invoke intrinsic commands directly instead of creating a process.
2016-02-04 11:10:16 -08:00
Austin Wise
413cf152ae
Invoke intrinsic commands directly instead of creating a process.
2016-02-03 23:01:45 -08:00
Eric StJohn
0e8d52ee7f
Merge pull request #1211 from dotnet/ericstj/fixNuspecDiffs
...
Fix diffs in generated nuspec with nuget.core
2016-02-03 22:53:29 -08:00
David Fowler
89ca48bd05
Remove project.json in template to avoid restore
2016-02-03 22:19:41 -08:00