Jan Vorlicek
72ad7aa4db
Fix pthread library option
...
While building CoreRT on OSX, I have noticed a warning:
clang: warning: argument unused during compilation: `-pthread`
The issue is that the options should be `-lpthread` instead.
2016-03-11 12:24:36 +01:00
Pavel Krymets
dceefd05c3
Fix issue preventing MVC gate to take a new dotnet cli
2016-03-10 11:33:39 -08:00
Pavel Krymets
9631ba8927
Generate actual deps.json file
2016-03-09 14:11:43 -08:00
Troy Dai
628f54c77c
Send an empty error message after global error is cleared
2016-03-09 08:15:18 -08:00
Andrew Stanton-Nurse
7cc90d9ad1
Update dotnet-build to produce portable layout
...
dotnet-build will produce a deps file for portable builds, and will now
create "runnable" outputs for RID-less targets
the outputs won't actually be runnable today because we need corehost
changes and to generate a deps.json file for corehost to use.
2016-03-08 11:46:15 -08:00
Andrew Stanton-Nurse
444e4f9fd7
update version of nuget
2016-03-08 09:53:06 -08:00
Bryan Thornbury
b813e2b849
Fixes #1649
...
make things work again
fix
Tests Passing
cleanup
fix
fix
2016-03-07 14:35:41 -08:00
Livar
1fccdbd6ec
Merge pull request #1697 from livarcocc/tests_to_run_in_message
...
Modified the protocol to send a the list of tests to run in a message
2016-03-07 14:01:45 -08:00
Pavel Krymets
781678de92
Merge pull request #1703 from dotnet/pakrym/deps-json
...
Add support for new `deps.json` format without some features.
2016-03-07 11:32:32 -08:00
Livar Cunha
e498f1dc9d
Modified the protocol to send a the list of tests to run and to invoke the test runner with the wait command flag so that the runner waits for this list.
...
Modified the reporting channel factory to have a create for the adapter and a create for the runner channel. Also added an event to the create runner channel that people can listen and be notified when a test runner channel was created. I use this event to give the message handler access to the runner channel.
Added the new message handler to DotnetTest.
2016-03-04 17:14:56 -08:00
Jared Parsons
fa143c4d1c
Revert to full PDB on Windows as a default
...
The change to default to Portable PDB by default has broken a number of downstream consumers. Moving back to full PDBs by default on Windows.
This leaves the option for portable PDB in place. Hence you can still enable it via the following entry in project.json:
``` json
"compilationOptions": {
"debugType": "portable"
}
```
2016-03-04 15:33:06 -08:00
Pavel Krymets
0a0c4a830e
Even more tests
2016-03-04 11:01:15 -08:00
David Fowler
3ed9361763
Merge pull request #1699 from dotnet/davidfowl/error-handling
...
Tweak error handling a little bit
2016-03-04 07:54:19 -08:00
David Fowler
25b5ce9c77
Tweak error handling a little bit
...
- Handle unresolved projects better in build
- Move unresolved package marking to the resolver
- Added ToString to LibraryKey for easy diagnosis of errors
2016-03-04 01:17:37 -08:00
Eric Erhardt
a709f772f1
Merge pull request #1645 from eerhardt/NewCorefx
...
Move to CoreFX build rc2-23901
2016-03-03 23:21:52 -06:00
Jared Parsons
d7cabe152f
Merge pull request #1392 from jaredpar/pdb
...
Make Portable PDB the default on Windows
2016-03-03 17:14:51 -08:00
Eric Erhardt
6468b14e1d
Move to CoreFX build rc2-23901
...
Update .exe's project.json Target Framework from dnxcore50 to netstandardapp1.5.
Update .dll's project.json Target Framework from dnxcore50 to netstandard1.3.
Adding workaround for DataContractSerialization to src\dotnet\project.json to fix crossgen issue.
Build 23901 has a dependency issue that doesn't allow the runtime.any.System.Private.DataContractSerialization
package to be restored. When we move to a new build of CoreFX we should take this workaround out.
2016-03-03 16:41:55 -06:00
Troy Dai
81baacd641
Fix issue 1665: prevent sending null error message
2016-03-03 13:13:06 -08:00
Livar
d918d527bd
Merge pull request #1676 from livarcocc/unbound_test_collection
...
TestMessagesCollection with unbound BlockingQueue
2016-03-03 12:36:43 -08:00
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