Commit graph

2480 commits

Author SHA1 Message Date
Pranav K
4e496c3523 Modify dotnet-test to run testRunner for all tfms
Fixes #2506
2016-04-22 16:40:03 -07:00
Andrew Stanton-Nurse
ef0ca39da1 Memory usage improvements in build (#2626)
* Use a WorkspaceContext in dotnet-build to cache project data across
multiple compilations in a single build action
* Dramatically reduce string and object duplication by introducing a
"Symbol Table" that shares instances of NuGetVersion, NuGetFramework,
VersionRange and string across multiple lock-file parses

Test Results:
* Testing was done by compiling Microsoft.AspNetCore.Mvc (and it's
dependencies) and taking memory snapshots after each compilation in
dotMemory
* We used to allocate ~3MB and deallocate ~2.5MB on EACH compilation in
a single build action. This has been reduced to ~120KB
allocated/deallocated
* After introducing WorkspaceContext, total memory usage spiked from 6MB
across the whole build action to about 13MB, introducing the symbol
table dropped it back to about 5-6MB.
2016-04-22 15:01:56 -07:00
Eric Erhardt
80df3688b1 Merge pull request #2642 from eerhardt/UpdateDependencies
Updating CoreFX to rc2-24022
2016-04-22 13:16:28 -05:00
Eric Erhardt
e420515c2b Updating CoreFX to rc2-24022 2016-04-22 10:58:43 -05:00
Eric Erhardt
1a8d393b9b Merge pull request #2415 from eerhardt/FixTestProjects
Fix test project imports to be consistent.
2016-04-22 07:48:23 -05:00
David Fowler
c1f1f20197 Make IsPackageBased() helper method internal 2016-04-21 22:29:18 -07:00
Pawel Kadluczka
deb3367753 Merge pull request #2620 from dotnet/pawelka/tools
Fixing ProjectDependenciesCommandFactory to resolve tools
2016-04-21 22:26:58 -07:00
Pavel Krymets
c8fb6c26c3 Fixed netcore50 package based frameworks (#2630) 2016-04-21 21:47:20 -07:00
moozzyk
1aac8fb643 Fixing ProjectDependenciesCommandFactory to resolve tools
if the package name is different from the dll name

Addresses #2592
2016-04-21 19:15:54 -07:00
Senthil
3d8cbba932 Merge pull request #2617 from schellap/fx-deps-file
Determine FX dir using FX_DEPS_FILE
2016-04-21 13:49:20 -07:00
Eric Erhardt
a2f3c531fb Merge pull request #2411 from eerhardt/FixUpdateDeps
Fix update deps
2016-04-21 11:42:56 -05:00
Eric Erhardt
a567bb8697 Fix test project imports to be consistent.
- Every project.json needs portable-net451+win8 and dotnet5.4 imports (required by dotnet-test-xunit).
- If a test references NuGet, it also needs "netstandardapp1.5", because that the TFM NuGet uses currently.
2016-04-21 11:42:30 -05:00
David Fowler
4af795b9e8 Fix duplicate dependency issue (#2597)
* Fix duplicate dependency issue
If a package has the same name as a framework assembly in the dependency
graph, we usually replace it with the framework assembly if the package
provides no assets. If the framework assembly wasn't resolved, it would
skip this logic and end up adding dupes to the list, which blows up later on.
This is a tactical fix to solve the issue, we need to do some more thinking
to determine how we want to resolve conflicts between framework assemblies,
packages and dlls with the same name.
2016-04-21 09:05:55 -07:00
Senthil
342cf79490 Determine FX dir using FX_DEPS_FILE 2016-04-21 00:14:54 -07:00
Pavel Krymets
8313400465 Merge pull request #2614 from dotnet/pakrym/speedup-build
Speedup build of CLI repo
2016-04-20 20:46:24 -07:00
Eric Erhardt
8cf36612e8 Merge pull request #2594 from eerhardt/CommandLine
Remove System.CommandLine and Microsoft.Extensions.CommandLineUtils.Sources dependencies
2016-04-20 21:02:04 -05:00
Pavel Krymets
c3984443cd Speedup build 2016-04-20 17:04:22 -07:00
Eric Erhardt
0c64a7ebc9 Merging with latest code. 2016-04-20 18:52:23 -05:00
Eric Erhardt
02194fca67 Fixing compiler command line options bugs.
- Ensure the long names start with `--`
- Handle null strings in UnescapeNewlines
- Handle bool options correctly.
- Allow dotnet run, compile-csc, and compile-fsc to handle .rsp files.
2016-04-20 18:47:38 -05:00
Eric Erhardt
6fa3a8132e Enhance CommandLine
- Allow CommandLineApplication to handle .rsp files.
- Allow CommandOption to handle MultilpeValue options that have "..." at the end of their template.
- Allow CommandOption to handle boolean values with explicit or null values.
2016-04-20 18:47:37 -05:00
Eric Erhardt
44483ddc98 Remove System.CommandLine dependency.
Also removed the dependency on Microsoft.Extensions.CommandLineUtils.Sources NuGet package and instead just checking the source files into our repo as internal classes.

Fix #2526
2016-04-20 18:47:37 -05:00
Eric Erhardt
d06418509d Merge pull request #2606 from eerhardt/UpdateAspDeps
Move ASP.NET package references to rc2-20581 from the aspnetrelease feed.
2016-04-20 18:37:16 -05:00
Pavel Krymets
88ffa548ba Merge pull request #2574 from dotnet/pakrym/graph
Add multiple input project support
2016-04-20 16:12:23 -07:00
Piotr Puszkiewicz
97fd374a86 Merge pull request #1530 from dotnet/blackdwarf-patch-2
Add test, remove repl from common commands help output
2016-04-20 16:08:11 -07:00
Senthil
d02e09a5fb Merge pull request #2546 from schellap/breadcrumb
Breadcrumbs for servicing
2016-04-20 15:10:01 -07:00
Pavel Krymets
03e698f0c2 Improve traversing performance 2016-04-20 14:01:32 -07:00
Bryan Thornbury
ada4e363c0 Merge pull request #2603 from dotnet/brthor/shorter_test_names
Reduce size of test names to fix long path breaks on VSO builds
2016-04-20 12:59:02 -07:00
Andrew Stanton-Nurse
7c688eea7f fix framework assembly resolution for net35 (#2557) 2016-04-20 11:54:42 -07:00
Pavel Krymets
3472aee5c9 Remove native compilation, add multiple project files and globbing 2016-04-20 11:54:16 -07:00
Eric Erhardt
bc619cb9be Move ASP.NET package references to rc2-20581 from the aspnetrelease feed.
The places where I removed a dependency is because a lower package (InternalAbstrations) was already bringing in that dependency.

Fix #2567
2016-04-20 13:50:34 -05:00
Bryan Thornbury
a202cbef68 Reduce size of test names to fix long path issues on VSO buildds 2016-04-20 10:47:50 -07:00
Bryan Thornbury
e8eaebdaeb Merge pull request #2591 from dotnet/brthor/deb-version-quick
Fixes #2589
2016-04-20 10:42:29 -07:00
Zlatko Knezevic
f2515235b7 Merge branch 'rel/1.0.0' into blackdwarf-patch-2 2016-04-20 10:30:30 +02:00
Senthil
f6eb49a2c7 Add breadcrumb writing
- Provide DOTNET_EXTENSIONS hook
  - Name changes for CORE_SERVICING
2016-04-19 23:13:41 -07:00
Pavel Krymets
3e5b68dc43 Add project to project graph 2016-04-19 21:16:18 -07:00
Bryan
02e5e0ed63 Fixes #2589 2016-04-19 15:43:26 -07:00
Bryan Thornbury
ef0c3b2cee Merge pull request #2580 from dotnet/brthor/2566
Fix Using Command.Create from a Desktop Application
2016-04-19 15:37:45 -07:00
Andrew Stanton-Nurse
a46be549d4 fix build numbers in ResourcesTests (#2539) 2016-04-19 14:58:45 -07:00
Bryan
f4f05656a1 Take into account Code Review Feedback 2016-04-19 14:38:24 -07:00
Bryan
56194a8e12 Add a test case for a desktop app using Command.CreateDotnet, expecting to fail 2016-04-19 13:38:37 -07:00
Piotr Puszkiewicz
bc8b0c065f Merge pull request #2548 from dotnet/piotrpMSFT/issue2499/importDnxcore50
import dnxcore50
2016-04-19 13:09:33 -07:00
Bryan Thornbury
66d6a38185 Merge pull request #2450 from dotnet/brthor/test-switch
Convert TestAssets to `Microsoft.NETCore.App`
2016-04-19 12:45:28 -07:00
Pranav K
612088cfa8 Merge pull request #2579 from dotnet/prkrishn/runtimes
Use runtime directory instead of compile directory when running tests
2016-04-19 12:14:20 -07:00
Piotr Puszkiewicz
c231910e7d Remove netstandardapp1.5 import 2016-04-19 11:23:16 -07:00
Piotr Puszkiewicz
496ec6b474 dotnet-new template imports dnxcore50. Tests Green. 2016-04-19 11:22:45 -07:00
Piotr Puszkiewicz
d45032c9d7 Unit test added and Red 2016-04-19 11:22:45 -07:00
Pranav K
8c6c192806 Use runtime directory instead of compile directory when running tests 2016-04-19 11:15:50 -07:00
Bryan Thornbury
83d78129db t Convert Test Assets to Microsoft.NETCore.App
fix dotnet-compile-fsc failures

fix test failures
2016-04-19 11:08:27 -07:00
Andrew Stanton-Nurse
b682ab1d4f make all packages serviceable by default (#2575)
fixes https://github.com/dotnet/cli/issues/2569
2016-04-19 08:34:42 -07:00
Bryan Thornbury
08ee6dedd9 Merge pull request #2559 from dotnet/brthor/2512
Fixes #2512
2016-04-18 16:33:46 -07:00