Commit graph

1113 commits

Author SHA1 Message Date
Pavel Krymets
85b7336529 Merge pull request #1750 from dotnet/pakrym/deps-duplication-fix
Fix dependency context builder regression
2016-03-09 13:43:53 -08:00
Troy Dai
628f54c77c Send an empty error message after global error is cleared 2016-03-09 08:15:18 -08:00
Pavel Krymets
dd3c0f50db Add reference assemblies and runtime targets support to dependency context builder. 2016-03-08 12:03:10 -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
Pavel Krymets
a0db5086f6 Fix dependency context builder regression 2016-03-08 09:22:17 -08:00
Senthil
7789a42766 Merge branch 'rel/1.0.0' into hostpfiles 2016-03-08 02:20:54 -08:00
Bryan Thornbury
2b90a2f831 Merge pull request #1692 from dotnet/brthor/refactor-resolvers
Refactor Command Resolvers, Add Tests, and Fix #1649
2016-03-07 16:50:14 -08:00
Bryan Thornbury
9f58651b6c PR Feedback and nearly full test coverage for resolvers
fix

resolve rebase issues
2016-03-07 14:45:16 -08:00
N. Taylor Mullen
2f2b3df35b Merge pull request #1738 from dotnet/nimullen/createloadcontextfix
Add ability to specify `outputPath` when creating a `ProjectContext`s `AssemblyLoadContext`.
2016-03-07 14:38:35 -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
Bryan
42cc39252e Refactor CommandResolver into individual CommandResolver Implementation
classes.

Write Unit Tests covering Composite DefaultCommandResolver and
ScriptCommandResolver.

baseline

Baseline2
2016-03-07 14:34:23 -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
N. Taylor Mullen
2ea26645e6 Add ability to specify outputPath when creating a ProjectContexts AssemblyLoadContext.
- Prior to this change `outputPath` would always default to `null` which didn't work well with `VisualStudio` tooling. The tooling enables the user to specify a project's `outputPath` but more importantly defaults the project's `outputPath` to the root directory (instead of the project directory).
2016-03-07 12:01:07 -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
1658a40806 Fix tests 2016-03-04 15:05:29 -08:00
Pavel Krymets
1d7cff48d4 PR 2016-03-04 14:12:16 -08:00
Pavel Krymets
304127ec0d Fix wrapped project export 2016-03-04 12:16:23 -08:00
Bryan Thornbury
42a17b5d98 Merge pull request #1684 from dotnet/brthor/fix-bold-bleed
fix bold bleed
2016-03-04 11:10:43 -08:00
Pavel Krymets
25d70c07c3 PR 2016-03-04 11:06:12 -08:00
Pavel Krymets
7df754be36 Finish builder tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
0a0c4a830e Even more tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
dcaea8c7ca More work and tests 2016-03-04 11:01:15 -08:00
Pavel Krymets
9bd9ca1512 Add more tests and some reading logic 2016-03-04 11:01:15 -08:00
Pavel Krymets
3f4c263670 Add support for json deps file 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
Livar
049bd17ed2 Merge pull request #1696 from livarcocc/test_abstractions_tests_in_message
Adding a new SendWaitingCommand message to the test sinks
2016-03-03 21:31:30 -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
Livar Cunha
59033ba1e7 Adding a new SendWaitingCommand message to the test sinks so that they can tell dotnet test that the runner is ready to receive commands. 2016-03-03 19:53:33 -08:00
Senthil
5cf680d2f0 Merge pull request #1678 from schellap/master
Fix host case comparison
2016-03-03 18:01:47 -08: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
Bryan
5cb1703a76 fix bold bleed 2016-03-03 12:15:16 -08:00
Pavel Krymets
d701e54d8c Merge pull request #1671 from dotnet/pakrym/package-cache
Search for package cache hash file in right directory
2016-03-03 11:37:13 -08:00
schellap
58822cc37b Fix host case comparison 2016-03-03 01:52:17 -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
Pavel Krymets
30992babaf Search for package cache hash file in right directory 2016-03-02 20:04:26 -08:00
Jared Parsons
2d25d1232a Emit isn't on the CSharpCompilationOptions 2016-03-02 18:22:14 -08:00
Jared Parsons
b378fb0419 fixes 2016-03-02 16:24:54 -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
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
Troy Dai
9f8906fdac Update dotnet projectmodel tests 2016-03-01 12:58:30 -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
85ca7c183d Upgrade the roslyn packages to 1.3.0-beta1-20160225-02.
This version has the fix for https://github.com/dotnet/roslyn/issues/8951
2016-02-26 16:00:54 -08:00
Troy Dai
268dd603cc Ensure Microsoft.CSharp reference is not duplicated 2016-02-26 15:06:39 -08: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
David Fowler
1fe78c2b4d Merge pull request #1577 from dotnet/davidfowl/remove-compile
Remove top level compile command
2016-02-24 22:33:35 -08:00
David Fowler
c7fe191f0b Remove top level compile command 2016-02-24 22:07:05 -08:00
David Fowler
6dc5efb0e2 Merge pull request #1513 from discostu105/rel/1.0.0
Fix net20 compatibility
2016-02-24 21:41:40 -08:00
Pavel Krymets
6aeed1f52d Merge pull request #1563 from dotnet/pakrym/wrapped-project
Fix wrapped project path resolution
2016-02-24 18:21:14 -08:00
Bryan Thornbury
6b2539cf94 Merge pull request #1539 from dotnet/brthor/unix_console_color
Use System.Console for colors on Unix
2016-02-24 18:18:06 -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
1bfd7725b0 Fix wrapped project paht resolution 2016-02-24 16:40:22 -08:00
Pavel Krymets
acd581c376 Merge pull request #1502 from dotnet/pakrym/dc-deps
Add support for reading DepedencyContext from deps file
2016-02-24 14:03:15 -08:00
Bryan
a986a89dcc update with @stephentoub 's suggested changes 2016-02-24 10:51:36 -08:00
Pavel Krymets
a074101b1d Add better messages for run scenarios 2016-02-24 10:49:00 -08:00
Senthil
84f9ede5ef Fix program files and HOME dir 2016-02-23 20:45:17 -08:00
Pavel Krymets
0037e0aba9 Fix dontet pack with buildbasepath 2016-02-23 19:13:50 -08:00
Pavel Krymets
62284943fc Add support for reading DepedencyContext from deps file 2016-02-23 18:16:40 -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
7407a898e0 Merge pull request #1516 from livarcocc/debug_tests
Modifying dotnet test to handle the new design for debug and making it unit testable
2016-02-23 17:33:36 -08:00
Bryan
619eaa0c55 Use System.Console on Unix 2016-02-23 11:45:57 -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
David Fowler
a049eee253 Updated NuGet pacakge reference 2016-02-23 10:32:15 -08:00
Pavel Krymets
a71112ce8f Asset refactoring and content files 2016-02-23 08:34:38 -08:00
discostu105
ceb31d8f30 styling 2016-02-23 17:28:50 +01:00
discostu105
ccb3d06f23 changed method name as suggested by david 2016-02-23 17:10:00 +01:00
discostu105
d0d3a629a5 added unit test. made if condition easier to understand. 2016-02-23 15:53:51 +01: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
Livar
06d31435cb Merge pull request #1523 from livarcocc/debug_tests_abstractions
Adding a TestRunner.TestCompleted message to the test sinks.
2016-02-22 19:45:03 -08:00
Pavel Krymets
fcc384b175 Merge pull request #1500 from dotnet/pakrym/no-runtime-error
Add error message when runtime target is not found
2016-02-22 16:13:11 -08:00
Pavel Krymets
6ca22e4a56 Fix run behaviour when only single target exists 2016-02-22 15:11:24 -08:00
Livar Cunha
33ba99bb51 Adding a TestRunner.TestCompleted message that the runner can send to dotnet test. 2016-02-22 13:40:45 -08:00
discostu105
f0c8428925 cleanup of AssemblyInfoOptions 2016-02-22 11:25:02 +01:00
discostu105
8dc1e94aa9 cleanup in AssemblyInfoOptions 2016-02-22 11:22:26 +01:00
discostu105
e08401aed6 handle case where TargetFramework is null 2016-02-22 10:53:01 +01:00
discostu105
5e574f46d8 using NuGetFramework.Parse instead of passing Version object 2016-02-22 09:57:55 +01:00
discostu105
ac3e14c89e Added TargetFrameworkVersion to AssemblyInfoOptions in order to let AssemblyInfoFileGenerator if attributes are compatible with framework version. E.g. TargetFrameworkAttribute is not .NET 2.0 compatible. fixes #1480 2016-02-21 23:01:55 +01:00
Pavel Krymets
69c0375b3f Add error message when runtime target is not found 2016-02-20 18:20:16 -08:00
David Fowler
39b0880dbe Handle null commit sha
- Apparently the .version file doesn't always end up in the package
#1498
2016-02-19 20:01:14 -08:00
Sridhar Periyasamy
856a077bd1 Merge pull request #1487 from Sridhar-MS/cli-x86
Fixes in corehost for building x86 arch.
2016-02-19 12:06:50 -08:00
Sridhar Periyasamy
c8215f84d3 Use macros for __stdcall calling convention. 2016-02-19 11:30:03 -08:00
Sridhar Periyasamy
f96ac6ed92 Fixes in corehost for building x86 arch.
Set the calling convention to '__stdcall' explicitly else the default is
'_cdecl' on windows which mismatches with coreclr hosting APIs.
Use the newly built 'corehost' in stage1.
2016-02-18 18:03:26 -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
Pavel Krymets
bd94c19d2e Merge pull request #1465 from dotnet/pakrym/app-local-logic
Change app local resolution logic to require refs folder for packages and referenceassemblies
2016-02-17 17:26:28 -08:00
Bryan Thornbury
61489aef6c Merge pull request #1464 from dotnet/brthor/cleanup_trims
Cleanup quoting in response files, and trims.
2016-02-17 17:06:37 -08:00
Pavel Krymets
93570ea4aa Fix app local resolution logic 2016-02-17 17:06:33 -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
Pavel Krymets
39192b3222 Fix accidental API change 2016-02-17 15:18:42 -08:00
Troy Dai
ec4629739f Revert System.Reflection.Metadata version to rc2 2016-02-17 12:11:14 -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
Sridhar Periyasamy
735b4beb7c Merge pull request #1340 from Sridhar-MS/test-fx
[WIP]: TestFramework with support for managing test projects.
2016-02-16 16:09:09 -08:00
Pavel Krymets
9fb99526a1 Use runtime context only where we require it 2016-02-16 15:54:33 -08:00
David Fowler
ec0b004d4c Merge pull request #1438 from dotnet/davidfowl/remove-runtime
Remove the shared runtime folder from the CLI
2016-02-16 14:54:12 -08:00
Pavel Krymets
7754e8c710 Merge pull request #1362 from dotnet/pakrym/dc-tests
Refactor DependencyModel, add unit tests, add EnvironmentAbstraction library
2016-02-16 14:51:47 -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
David Fowler
528b32ddc5 Remove the shared runtime folder from the CLI 2016-02-16 12:57:01 -08:00
Sridhar Periyasamy
9ec8556d24 Rebase with the latest sources and fix the tests. 2016-02-16 11:26:40 -08:00
Troy Dai
8058b42e9b Add FrameworkData to ProjectReferenceDescription 2016-02-16 10:35:31 -08:00
Sridhar Periyasamy
ab455e6bb9 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx 2016-02-16 09:58:20 -08:00
Pavel Krymets
39e1e26f0e Refactor DependencyModel, make it ready for tests 2016-02-16 09:56:19 -08:00
David Fowler
1e18150194 Merge pull request #1231 from AustinWise/fixHelp
Fix the help command to work with intrinsic commands.
2016-02-15 23:50:03 -08:00
Troy Dai
cf2cf83ff3 Fix issue 1391 2016-02-15 21:36:35 -08:00
David Fowler
302a9e84f7 This change mimics the nuget lock file generation logic 2016-02-15 20:57:49 -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
David Fowler
00e3c25bb3 Fix lock file check so that warnings don't keep popping up 2016-02-15 19:17:21 -08:00
David Fowler
129442923a Updated to a newer version of NuGet
- Update the newest nuget
- Filter out build dependencies from the project resolver based on hte lock file
- Fix more erroneous build dependencies
2016-02-15 18:39:29 -08:00
David Fowler
467cd19662 Fixed the build dependencies in project.json 2016-02-15 10:52:29 -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
Senthil
ef00f0331e Include project.json dependencies for native 2016-02-14 17:20:23 -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
Sridhar Periyasamy
2a94a1e384 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx
Conflicts:
	Microsoft.DotNet.Cli.sln
	scripts/dockerbuild.sh
	scripts/test/setup/build-test-prerequisites.ps1
	test/dotnet-build.Tests/IncrementalTestBase.cs
	test/dotnet-publish.Tests/Microsoft.DotNet.Tools.Publish.Tests.cs
	test/dotnet-publish.Tests/project.json
2016-02-12 17:26:58 -08:00
Senthil
28f35c1cfa Remove DOTNET_HOME from the CoreCLR probe path 2016-02-12 17:03:09 -08:00
Sridhar Periyasamy
d7274af53a Address PR Feedback 2016-02-12 16:57:32 -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
Sridhar Periyasamy
5fb1eaa9c6 Fix tests for unix. 2016-02-12 15:12:19 -08:00
David Fowler
6d4594a633 Disable server GC since it's OOMing 2016-02-12 13:38:49 -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
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
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
Tanner Gooding
5f5a59a136 Merge pull request #1209 from tannergooding/rel/1.0.0
Updating the Compiler and Interactive toolsets to v1.2.0-beta1-20160202-02
2016-02-12 10:59:11 -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
Tanner Gooding
4e2d4f4816 Explicitly referencing System.Reflection.Metadata v1.2.0-rc2-23805 in several project.json 2016-02-12 09:04:10 -08:00
Tanner Gooding
f994f09e11 Updating the Compiler and Interactive toolsets to v1.2.0-beta1-20160202-02 2016-02-12 08:57:42 -08:00
Pranav K
59e87f497f Use ApplicationBasePath instead of entry assembly to locate reference
assemblies.
2016-02-11 22:29:20 -08:00
Sridhar Periyasamy
96e425f8bb Fix build breaks and some 'build' tests. 2016-02-11 15:55:37 -08:00
Pranav K
33f1b8551e Compile Microsoft.DotNet.Cli.Utils in net451 2016-02-11 15:46:43 -08:00
Pranav K
f5065c9425 Target net451 in ProjectModel
Fixes #876
2016-02-11 15:42:14 -08:00
Sridhar Periyasamy
f86952cf1d Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into test-fx 2016-02-11 14:22:24 -08:00
Sridhar Periyasamy
b239c548a4 Refactor TestFramework
Remove TestScenario and add TestAssetsManager which manages the TestAssets
folder.
2016-02-11 14:08:37 -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
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
Pavel Krymets
23b1b077dd Merge pull request #1347 from dotnet/pakrym/refasm
Add reference assembly support to DependencyModel
2016-02-10 13:55:25 -08:00
Eric Erhardt
74d8051f79 Bump CoreFx to rc2-23810 2016-02-10 13:50:28 -06:00
Pavel Krymets
a8ce4f2e3a Add reference assembly support 2016-02-10 11:40:23 -08:00
Sridhar Periyasamy
d1d14283a1 TestFramework with support for managing test projects.
The CLI tool's tests are run against sample test projects for validation.
TestFramework provides an easy way to manage these sample test projects.

Converted the publish test to use the TestFramework.
2016-02-10 00:21:19 -08: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
b0470fdebb Merge pull request #1324 from dotnet/prkrishn/1305
Don't filter by TFM when building DependencyContext
2016-02-09 14:50:57 -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
Pranav K
c31b9fe5c1 Don't filter by TFM when building DependencyContext
Fixes #1305
2016-02-09 13:07:40 -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
Pavel Krymets
7baf0d61c6 Merge pull request #1313 from dotnet/pakrym/paths2
Fix tests on OS X and add diagnostic message
2016-02-09 11:59:38 -08:00
Pavel Krymets
3f058d4f32 Fix tests and add diagnostic message 2016-02-09 10:58:36 -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
Pavel Krymets
029de95d0f Fix dependency context bug and add load overload 2016-02-08 12:22:12 -08:00
Pranav K
03d112543b * Don't throw if Assembly.GetEntryAssembly is null
* Add a CompilationOptions.Default for convenient use when
  DependencyContext.Default is null.
2016-02-08 10:06:32 -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
David Fowler
c5100d3dd6 Added repl back to the list of intrinsic commands 2016-02-05 08:40:30 -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
Senthil
ce3055d338 Merge pull request #1214 from schellap/relfix
Link pthread with corehost
2016-02-04 14:14:59 -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
Brice Lambson
ea3cef65a5 Fix directory separator in PopulateLegacyPortableDependencies 2016-02-04 10:10:41 -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
David Fowler
a65054d947 Fixed version of FileSystemGlobbing 2016-02-03 21:41:13 -08:00
Senthil
02948f1675 Link pthread with host 2016-02-03 19:53:17 -08:00
Livar Cunha
42222e50a3 Updating to last version of dotnet-test-xunit 2016-02-03 17:09:52 -08: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
Bryan Thornbury
7236a72917 Merge pull request #1192 from dotnet/brthor/dotnet-run-bug
coreclr path being set incorrectly when dotnet_home env var isn't present
2016-02-03 16:41:27 -08:00
Senthil
8cb1e93d78 Merge pull request #1207 from schellap/relfix
Port native fixes
2016-02-03 16:33:11 -08:00
Eric Erhardt
7573689a22 Removing www.myget.org in our tests.
We have a bunch of NuGet.Config files in our tests that were needed before because the tests were run out of a temp directory.  Now the tests are run out of the artifacts folder, which is a subdirectory of our repo root, so the root NuGet.Config will get picked up.

I also updated all the dotnet-core feeds from www.myget.org to dotnet.myget.org.
2016-02-03 17:39:50 -06:00
Senthil
102f11e65b Port native fixes 2016-02-03 14:49:31 -08:00
Eric St. John
b8d7697539 Fix diffs in generated nuspec with nuget.core
There was a typo in file list that used Source
value for target attribute.

The ordering of metadata was different than
nuget.core and nuget.core never added
DevelopmentDependency if it was set to
false.

There are still some differences between a
nuspec generated through Manifest.Save
in Nuget.Core and this, but all of those
make it more consistent with the nuspec
that is put in the actual package so I'm
leaving them.

The primary difference is that NuGet.Core
used string types to represent the TFM in
groupable items so it would just pass through
whatever you gave the API to the nuspec.
The downside of this is that you might have
an invalid string and you wouldn't know that
until you packed (and cracked open the nuspec).
The new implementation parses the TFM
and writes a normalized version to the nuspec.
This is more wysiwyg so I'm leaving it.

Contained in branches: master#gitext://gotobranch/master
Contained in no tag
2016-02-03 14:27:53 -08:00
David Fowler
656b59c508 Calculate the intermediate output path in CompileContext.NeedsRebuilding 2016-02-03 08:33:39 -08:00
David Fowler
2d04bdcd17 Merge pull request #1195 from dotnet/davidfowl/faster-restore
Pin versions and restore less
2016-02-03 00:42:26 -08:00
David Fowler
fe5f19765d Fixed versions that actually exist still 2016-02-02 23:24:22 -08:00
David Fowler
73f7550b98 Pin versions and restore less
- Should speed up the build
2016-02-02 23:03:12 -08:00
Troy Dai
b9f2d8fe3d Fix projectmodel-server regression
1. Address the null reference exception when a project dependency is
broken.
2. Address the duplicate key issues after the logic of redirecting
System pacage to reference assembly was added

Update projectmodel-server and tests

1. Fix test timeout caused by undisconnected socket;
2. Update project model server
2016-02-02 22:26:16 -08:00
Bryan Thornbury
c4b3925e46 Revert "Updating the Compiler and Interactive toolsets to v1.2.0-beta1-20160202-02"
This reverts commit 1cbdc40464.
2016-02-02 17:55:08 -08:00
Bryan Thornbury
5db0198418 fix bug in dotnet-run 2016-02-02 15:26:23 -08:00
Tanner Gooding
1cbdc40464 Updating the Compiler and Interactive toolsets to v1.2.0-beta1-20160202-02 2016-02-02 15:25:05 -08:00
Andy Gocke
5e0329f417 Merge pull request #1160 from agocke/infer-analyzer-lang-id
Infer the analyzer languageId from compilerName
2016-02-02 15:03:10 -08:00
Pranav K
7a03c91350 dotnet-resgen should use a file to accept argument values 2016-02-02 13:01:22 -08:00
Andy Gocke
7a203c02e1 Merge pull request #1158 from agocke/add-additional-arguments
Add "additionalArguments" compilation option
2016-02-02 12:22:03 -08:00
Andrew Stanton-Nurse
16c9d3ffa6 Merge pull request #1178 from dotnet/davidfowl/fix-versions-and-crossgen
Upgrade stdlib and enable crossgen
2016-02-02 12:00:21 -08:00
Pavel Krymets
2b5c7d06fb Merge pull request #1167 from dotnet/pakrym/notnull
Do not throw exception when DependencyModel does not exist
2016-02-02 09:51:26 -08:00
Andy Gocke
34f78994d1 Infer the analyzer languageId from compilerName
Simplifies using a different compiler since you only have
to set one value if the the compiler is known to dotnet-compile
2016-02-01 22:58:47 -08:00
Andy Gocke
6ba581fc17 Add support for 'additionalArguments' in compilationOptions
Rather than keep a map that will have to be constantly updated every time
a new argument gets added to a compiler, the 'additionalArguments' option
will allow users to directly add arguments to the underlying compiler.
2016-02-01 22:48:12 -08:00
David Fowler
ec10a1d6be Upgrade stdlib and enable crossgen 2016-02-01 20:48:34 -08:00
Piotr Puszkiewicz
44ac20a4ce Merge pull request #1175 from dotnet/pakrym/1096
Fix NRE in restore
2016-02-01 20:11:32 -08:00
piotrp
b4b0e612ed Fixes issue #1174 2016-02-01 17:33:47 -08:00
Pavel Krymets
10038ceb77 Fix NRE in restore 2016-02-01 17:30:41 -08:00
David Fowler
d886cc7195 Added pack command 2016-02-01 14:56:32 -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
Bryan Thornbury
31c718d5d3 Merge pull request #1117 from dotnet/brthor/refactor_test_scripts
Refactor test scripts
2016-02-01 14:15:36 -08:00
Pavel Krymets
a6bfc67e8a Do not throw exception when DependencyModel does not exist 2016-02-01 12:13:48 -08:00
Andrew Stanton-Nurse
0951d424be Merge pull request #1100 from dotnet/anurse/1093-fix-shared-source-packages
suppress adding project output to export when there is no output
2016-02-01 10:28:14 -08:00
Livar Cunha
35ef45306a Copying project dependencies when the project is a test project. Without this, dotnet test will fail to find the P2P dependencies and crash.
Refactoring the MakeCompilationOutputRunnable code so that it is easier to move it to build. Making build stop passing runtime to compile. Moving the MakeCompilationOutputRunnable from compile to build.

Making WriteDepsFile create its directory if it does not exist.
2016-01-31 01:01:32 -08:00
David Fowler
b16ecff0e9 Make publish do less work
- Added a runtime switch to build and compile
- Flow the runtime from publish through build and compile
2016-01-30 10:33:36 -08:00
Bryan
39682cd14b dotnet-restore fix
add rid to all restores in test

Add Rid to appdep script, fix common

more script fixes!

fixes

script fix

script fix

Fix up the Runtests script

more fixes :)
2016-01-30 00:21:15 -08:00
Pranav K
be18ee31be Switch to using File.LastWriteTimeUtc 2016-01-29 19:22:31 -08:00
Andrew Stanton-Nurse
be29bb2968 suppress adding project output to export when there is no output 2016-01-29 12:27:04 -08:00
Pavel Krymets
35d6fc4477 Copy refs only on publish 2016-01-29 10:20:28 -08:00
piotrp
7f937d03bb fixes #1112 2016-01-28 22:34:09 -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
N. Taylor Mullen
8ecef6b20d Compare AssemblyNames correctly.
- Calling `AssemblyLoadContext.LoadFromAssemblyName(new AssemblyName("foo"))` would not work prior to this because the assembly path lookup was a dictionary where the key was `AssemblyName` without a proper `AssemblyName` comparer.

#1084
#955
2016-01-28 20:01:35 -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
8a36a61213 Fixing imports for dotnet5.4 2016-01-28 12:49:08 -08:00
PiotrP
462bee83bd revert dontet5.4 dependencies 2016-01-28 12:15:10 -08:00
PiotrP
e792387d7a Adjust imports to portable45 2016-01-28 10:55:22 -08:00
piotrp
f190fa0895 Move to latest System.CommandLine 2016-01-28 10:53:34 -08:00
piotrp
25a7be1b21 Remove 'name' property from PJs 2016-01-28 10:53:32 -08:00
piotrp
63d79b06b4 projectmodelserver 2016-01-28 10:53:31 -08:00
piotrp
9a7cab4cda build scripts and md 2016-01-28 10:53:31 -08:00
piotrp
47db1b91e2 Tools Projects rename 2016-01-28 10:53:29 -08:00
David Fowler
6edac85dce Fixed copying output assets to the publish directory 2016-01-27 20:35:43 -08:00
David Fowler
d4a8fa24db Oops, fixed the asset name for the main asset 2016-01-27 14:22:06 -08:00
David Fowler
b09b00f8a5 Added a way to get output assets
- Flow it through the project context so things end up
everywhere (mostly)
2016-01-27 13:07:26 -08:00
David Fowler
543783dae4 Use consistent version of logging 2016-01-27 11:39:25 -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
Piotr Puszkiewicz
788194e48e Merge pull request #1004 from piotrpMSFT/anurse/bootstrap-with-nuget-finally
Anurse/bootstrap with nuget finally
2016-01-27 11:03:19 -08:00
Piotr Puszkiewicz
c67ad6f8da Merge pull request #1056 from dotnet/appcontextbase
Set AppContext BaseDirectory
2016-01-27 09:15:10 -08:00
piotrp
60450bd94a Bump NETStandard.Library to 23727 2016-01-27 09:11:08 -08:00
piotrp
7b14149c8c Bad Merge 2016-01-26 23:25:42 -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
Piotr Puszkiewicz
90fad34d5a Merge pull request #1058 from piotrpMSFT/piotrpMSFT/Issue1057/NuGet-536
Bump NuGet dependency to -536
2016-01-26 21:40:07 -08:00
Piotr Puszkiewicz
55e838427f Merge pull request #927 from agocke/analyzer-support
Add analyzer support
2016-01-26 19:19:42 -08:00
Piotr Puszkiewicz
511015c331 Merge pull request #1027 from enricosada/teach_fsharp_to_dotnet_new_rel_1.0.0
teach fsharp to dotnet new
2016-01-26 19:18:12 -08:00
Piotr Puszkiewicz
b72975bf4c Merge pull request #1051 from dotnet/pawelka/strongname
Strong naming Microsoft.Dotnet.Cli.Utils
2016-01-26 19:16:41 -08:00
piotrp
bd109c1bf4 Bump NuGet dependency to -536 2016-01-26 18:47:03 -08:00
Senthil
5a01557501 Set AppContext BaseDirectory 2016-01-26 18:38:21 -08:00
Pranav K
ec73b1de23 Ignore framework assemblies when compiling for package based frameworks.
Fixes #1054
2016-01-26 17:41:11 -08:00
moozzyk
0d3f1bf5f2 Strong naming Microsoft.Dotnet.Cli.Utils 2016-01-26 16:18:38 -08:00
Andy Gocke
75859c5dc0 Merge branch 'rel/1.0.0' into analyzer-support 2016-01-26 10:43:34 -08:00
Piotr Puszkiewicz
e7053b5339 Merge pull request #1030 from dotnet/fixhelp
Fix the dotent help screen
2016-01-26 01:19:52 -08:00
piotrp
bfdf0a5fe1 Bump NuGet to -531 2016-01-25 22:58:54 -08:00
Zlatko Knezevic
cd1837d189 Fix the dotent help screen
Replace the compile verb with build.
2016-01-25 12:48:21 -08:00
Piotr Puszkiewicz
e40f860d12 Merge pull request #1025 from dotnet/pawelka/bug-1014
Fixing wrong output path passed to pre/post publish scripts
2016-01-25 11:20:29 -08:00
Enrico Sada
91b37f82b4 teach fsharp to dotnet new
- add --lang <LANG> [C#|F#] with alias (csharp/cs)
- renamed template directories, format "LANGUAGE-TEMPLATE"
- add --type <TYPE>

    default to first template of the language ( "Console" )

- show all avaiable types, if invalid argument --type

    ```
    Unrecognized type: notexists
    Avaiable types for F# :
    - Console
    ```
2016-01-25 19:52:52 +01:00
moozzyk
813979de0e Fixing wrong output path passed to pre/post publish scripts
Fixes #1014
2016-01-25 09:24:27 -08:00
Andy Gocke
c716ad6571 Add analyzer support
With this change, any referenced analyzer project will be parsed by the
project system and the assemblies will be passed down to the compiler.
By default, the analyzer language is considered to be "cs". If another
language is used, the "languageID" option should be specified inside the
"analyzerOptions" section of the project.json file.

Resolves #83
2016-01-24 21:38:42 -08:00
David Fowler
0bf95241be Remove unused list 2016-01-24 11:09:59 -08:00
David Fowler
2807db8044 Auto reference facades in the common cases
- There are 2 major cases to auto reference facades:
1. When using a netstandard/dotnet* based package on a platform where the System.* packages don't provide any compilation assemblies.
2. When referencing a PCL where no dependencies were specified in the nuspec.
- For 1, we handle it by replacing package references with reference assemblies if possible. For 2. We turn assembly references of PCL assemblies into package dependencies.
This should cover the 90% case where people had to manually reference facades anytime they wanted to use a PCL on Net4.x.

TODO: P2P PCL references

#164
2016-01-24 11:05:31 -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
piotrp
f16f839019 Fixes system.runtime.extensions:4.1.0.0 issue 2016-01-23 13:01:35 -08:00
Bryan Thornbury
d1d23944df Changes to fix publish tests 2016-01-23 13:01:34 -08:00
piotrp
9c5e520285 various fixes 2016-01-23 13:01:33 -08:00
Bryan
8d0fada156 Product Changes to Work with new argument escaping 2016-01-23 13:01:31 -08:00
Bryan
e794ad6a10 Basic Argument Forwarding and Escaping Code Additions/Changes 2016-01-23 13:01:30 -08:00
schellap
45bee52522 Resolve sym links to probe paths on Unix 2016-01-22 16:51:04 -08:00
Livar Cunha
fdea0b87e0 Making some of the testbase methods protected.
Renaming variables according to code review comments. Adding the folder logic to the builder tests. Creating a separate compilation folder during the build.
2016-01-22 15:22:45 -08:00
Livar Cunha
ac2d0e36a9 Changing multiple dotnet commands to be aware of $configuration/$tfm folder structure under the --output path option.
Changing the build scripts to copy files over from debug\dnxcore and to check for the folders existence before trying that.
Making the build command aware of the subfolders and making E2E tests aware of subfolders.
Fixing compiler tests to look for the xml in the right plae taking into consideration the configuration and tfm.
Modifying publish tests to not take into consideration the runtime. This is a temporary change. will bring it back once the commands all understand rid.
Making the packaging step work by placing binaries where dotnet pack expects.
2016-01-22 15:22:44 -08:00
Andrew Stanton-Nurse
7b39d9ce85 remove unnecessary dependency (that isn't present anymore) 2016-01-22 15:17:04 -08:00
Piotr Puszkiewicz
ee247484f3 Merge pull request #971 from dotnet/anurse/970-correct-lock-file-check
adjust lock file check to handle NuGet-style lock file
2016-01-22 13:34:38 -08:00
Andrew Stanton-Nurse
29589f2503 Merge branch 'rel/1.0.0' into anurse/update-nuget 2016-01-22 11:45:50 -08:00
Andrew Stanton-Nurse
5db4684cb1 update to take NuGet build 3.4.0-beta-517 2016-01-22 10:40:01 -08:00
Andrew Stanton-Nurse
43d57e438e adjust lock file check to handle NuGet-style lock file
fixes #970
2016-01-22 10:22:53 -08:00
Bryan
e6a58df9ca fixup Additional references which bring in the new System.Runtime.Extensions 2016-01-21 17:37:06 -08:00
Bryan Thornbury
36a32c4ecc Update project.json 2016-01-21 16:20:15 -08:00
Bryan Thornbury
41693d6966 Update project.json 2016-01-21 16:18:35 -08:00
Piotr Puszkiewicz
fc9097459e Merge pull request #940 from dotnet/trdai/848.1
Add default warning suppresses to CommonCompilerOptions
2016-01-21 13:20:37 -08:00
Piotr Puszkiewicz
14f665eb30 Merge pull request #930 from cdmihai/cdmihai/buildCommandTestingReleasePR
Release PR: Incremental build tests and improvements
2016-01-21 12:31:25 -08:00
Sridhar Periyasamy
3a1f1d251c Merge pull request #926 from Sridhar-MS/restore-temp1
Create the temp folder for 'tools' restoration in the project directory.
2016-01-21 12:02:06 -08:00
Troy Dai
1b8f3a0025 Add default suppress to compiler options message 2016-01-21 11:03:10 -08:00
Andrew Stanton-Nurse
0ad75a758a prep for nuget bootstrapping 2016-01-21 10:24:07 -08:00
Sridhar Periyasamy
6a249f65ea Address PR feedback.
Restore the 'tools' into obj folder.
2016-01-20 17:20:38 -08:00
Mihai Codoban
b2f5bbeeb0 Add dotnet-compile to path probing watch
Since Build is heavily coupled to the logic in dotnet-compile, we're
checking against path probing for dotnet-compile
2016-01-20 16:07:24 -08:00
Mihai Codoban
68d46fefad Incremental output goes to stdout 2016-01-20 16:06:02 -08:00
Mihai Codoban
a7e57ae2ed Include XML and PDB as incremental outputs 2016-01-20 16:06:01 -08:00
Mihai Codoban
2dcf502946 Use lock file to find out when dependencies change
Faster to check one file than many
2016-01-20 16:06:01 -08:00
Mihai Codoban
0ddf493f1d ProjectContext provides access to Lockfile; Lockfile knows its path 2016-01-20 16:06:00 -08:00
Sridhar Periyasamy
6b01f1a644 Create the temp folder for 'tools' restoration in the project directory.
This is a fix for regression caused by #877. It is required to create the
temp folder in the project directory so that same nuget.config resolution
happens for both 'dependencies' and 'tools'. See #844.
2016-01-20 14:50:06 -08:00
David Fowler
7972586c31 Steps to boostrapping with NuGet
- Fixed a bunch of dependencies that was causing dotnet restore to fail on the CLI
- Added imports to `project.json` so that `dotnet-restore` works
- Fixed a bunch of dependency issues in different projects
- Ironically, running `dotnet restore` on the dotnet-restore project still fails (will fix in another commit). Looks like it might be a nuget issue
2016-01-20 18:15:07 +00:00
Andrew Stanton-Nurse
f532ce33b4 Merge pull request #899 from dotnet/anurse/fix-nuget
Work around NuGet packaging error
2016-01-19 15:57:13 -08:00
Andrew Stanton-Nurse
3b261afb47 workaround #901 by using corerun instead of corehost 2016-01-19 15:06:05 -08:00
Andrew Stanton-Nurse
bce4aacb13 work around NuGet packaging error 2016-01-19 14:49:14 -08:00
Andrew Stanton-Nurse
1579f0a809 fix nuget reference 2016-01-19 14:26:11 -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
Troy Dai
479a81a576 Update message sequences of ProjectModel server
Send References ahead of Dependencies
2016-01-15 20:03:29 -08:00
Piotr Puszkiewicz
a64f8f6310 Merge pull request #877 from Sridhar-MS/restore-temp-remove
Delete temporary folder created by "dotnet restore".
2016-01-15 17:07:49 -08:00
Troy Dai
68c0edff17 Enable to initialize a project before restore
1. Check the lock file path first.
2. Update tests
2016-01-15 16:05:18 -08:00