Commit graph

237 commits

Author SHA1 Message Date
Sridhar Periyasamy
5dc1a14e39 Upgrade the "dotnet-test-xunit" version to "1.0.0-rc2-192208-24"
The earlier version "1.0.0-rc2-173361-36" is missing from the cli-deps feed.
2016-05-18 20:47:53 -05:00
Pavel Krymets
670dbca45b Fix bug preventing MakeRunnable on dependent project when using globbing build 2016-05-17 08:22:43 -07:00
Eric Erhardt
ecdb10591c Project.json schema warnings don't get displayed
When building a project.json that has schema warnings (and other warnings), we are not writing the warnings to the console. This is a regression.

The fix is to add all diagnostic messages to the LibraryManager, which is responsible to hold all the diagnostic messages.

Fix 3021
2016-05-13 13:10:39 -05:00
Pavel Krymets
b8dff69cc1 Revert "Revert "Add performance tests"" (#2820) 2016-05-12 10:33:32 -07:00
Eric Erhardt
17175864cf dotnet crashes with an unresolved 'platform' dependency.
Fixed by calling TryGetValue instead of a dictionary indexer when looking up platform dependencies in ProjectContextBuilder.

Fix #2693
2016-05-11 17:32:42 -05:00
Sridhar Periyasamy
aa94c51271 Drop the 'preview2' suffix in test package projects. 2016-05-10 14:51:56 -07:00
Sridhar Periyasamy
1b2b83b6db Upgrade the RC2 branding to RC3.
The following packages are changing:

Microsoft.NetCore.App: 1.0.0-rc2-3002702 -> 1.0.0-rc3-002702
Microsoft.NETCore.DotNetHost: 1.0.1-rc2-002702-00 -> 1.0.1-rc3-002702-00
Microsoft.NETCore.DotNetHostPolicy: 1.0.1-rc2-002702-00 ->
1.0.1-rc3-002702-00
Microsoft.NETCore.DotNetHostResolver: 1.0.1-rc2-002702-00 ->
1.0.1-rc3-002702-00

Also publishing the *deb file to teh debian repo feed is disabled -
https://github.com/dotnet/cli/issues/2973
2016-05-10 13:36:20 -07:00
Piotr Puszkiewicz
1033e61d57 preview1 --> preview2
Moves CLI version suffix from preview1 to preview2
Sets channel for preview2 to 1.0.0-preview2, abandoning the Beta channel to the 1.0.0-preview1 release. Once @sokket's publishing cleanup work is complete we can re-converge the channels if desired.
2016-05-09 02:41:11 -07:00
Bryan Thornbury
0336f6bb34 Throw Command Unknown for dependency tools in libraries. (#2933)
* Throw Command Unknown for dependency tools in libraries.

* Add testProjects to test tools command for libraries.

* update failing tests

* Add tests verifying that dependency tools are not available in libraries
2016-05-08 14:20:34 -07:00
Eric Erhardt
a76fea647e Merge pull request #2930 from eerhardt/MvcNet46
dotnet build raises errors MVC apps target net46.
2016-05-06 17:12:25 -05:00
Eric Erhardt
d98c1f8724 dotnet build raises errors MVC apps target net46.
The issue is when the ProjectContextBuilder sees a CompileTimePlaceholder "_._" file on a full framework, it assumes that dependency has to come from the "Reference Assemblies" directory.  If it can't be found there, an error is raised.  However, there are other reasons "_._" placeholders are created (when a NuGet package doesn't want its dependencies to be exposed in the Compile dependencies of its consumers). And these placeholders can exist for assemblies that aren't in the full framework - in this case System.Diagnostics.FileVersionInfo and others.

To fix this, if the reference can't be resolved from the "Reference Assemblies" folder, it is just skipped. If the compiler really needs that assembly, it will raise an error to the user.  Dotnet build shouldn't raise the error.

Fix #2906
2016-05-06 14:32:50 -05:00
Bryan Thornbury
f538c4f19f Move to P2P references all over the place 2016-05-05 17:21:27 -07:00
Bryan
abc155e273 make versions consistent for PackCommand, add back * to test packages, remove --version-suffix from publish 2016-05-05 11:06:02 -07:00
Bryan
94840de4e1 fixup all references to the right version suffixes 2016-05-05 11:05:59 -07:00
Bryan
d1cd3703ac update rc2-preview1 to preview1 2016-05-05 11:05:58 -07:00
Piotr Puszkiewicz
c3fe0d062f Fix package versions 2016-05-05 11:05:55 -07:00
Piotr Puszkiewicz
3e96a05f9c Merge pull request #2781 from dotnet/brthor/2760
fixes #2760
2016-05-03 15:15:42 -07:00
Eric Erhardt
58fa6721b8 Merge pull request #2842 from eerhardt/UpdateRoslyn
Update Roslyn to 1.3.0-beta1-20160429-01
2016-05-03 15:57:33 -05:00
Piotr Puszkiewicz
a2139324f0 Merge pull request #2822 from dotnet/ajbaaska/default-builtin-fix
Fix: builtIn defaults are not used when builtIn is not specified
2016-05-03 13:46:38 -07:00
Bryan Thornbury
25335d20fe PR Feedback 2016-05-03 13:30:59 -07:00
Bryan
a25e92208e fixes #2760
Verify coreclr absence/presence depending on app type during dotnet build.
2016-05-03 11:34:56 -07:00
Eric Erhardt
ff06227e50 Update Roslyn to 1.3.0-beta1-20160429-01 2016-05-03 13:21:26 -05:00
Pavel Krymets
eb32a40ea2 Deduplicate libraries 2016-05-03 09:54:50 -07:00
Andrew Stanton-Nurse
08c4aae6a9 trim build dependencies from output 2016-05-02 19:51:12 -07:00
Eric Erhardt
9a85205781 Merge pull request #2792 from eerhardt/Relative
Execute 'csc' with working directory set to the project directory.
2016-05-02 18:53:57 -05:00
Ajay Bhargav Baaskaran
d6d103262d Fix: builtIn defaults are not used when builtIn is not specified 2016-05-02 14:21:02 -07:00
Pavel Krymets
dc249cb94b Move efs to shared runtime 2016-05-02 09:36:02 -07:00
Eric Erhardt
f2d917ed2e Execute 'csc' with working directory set to the project directory.
When using a ruleset with a relative path in buildOptions, csc can't
find the file because it is not working in the same directory as the
project.

Fix #2710
2016-05-01 22:46:03 -05:00
Pranav K
2ddd3ca9a0 Updating to latest dotnet-test-xunit 2016-04-30 18:25:11 -07:00
Pranav K
f8631fa4b7 Merge pull request #2747 from dotnet/prkrishn/remove-platformabstractions
Replaces references to Microsoft.Extensions.PlatformAbstractions
2016-04-29 17:54:22 -07:00
Piotr Puszkiewicz
ce3eed0306 Revert "Add performance tests" 2016-04-29 16:35:27 -07:00
Pranav K
1e753f7781 Replaces references to Microsoft.Extensions.PlatformAbstractions with Microsoft.Extensions.PlatformAbstractions.Internal 2016-04-29 16:06:23 -07:00
Pavel Krymets
dfa071de21 Merge pull request #2663 from dotnet/pakrym/perf-tests
Add performance tests
2016-04-29 11:18:50 -07:00
Pavel Krymets
1104e56895 Rebase 2016-04-29 09:09:23 -07:00
Andrew Stanton-Nurse
b98bc1289d abort build when an unresolved dependency is found (#2696) 2016-04-28 10:02:05 -07:00
Eric Erhardt
a9621eb469 Merge pull request #2717 from eerhardt/Spaces
dotnet build fails with xmlDoc = true and spaces in the path.
2016-04-27 20:36:36 -05:00
Pavel Krymets
40b96398b8 Merge pull request #2684 from dotnet/pakrym/desktop-standalone
Fix desktop standalone scenario
2016-04-27 18:23:44 -07:00
Eric Erhardt
5c6bf47e10 Address PR feedback. 2016-04-27 17:23:28 -05:00
Eric Erhardt
2ed81240fa dotnet build fails with xmlDoc = true and spaces in the path.
Need to quote the xmlDoc argument to the csc compiler.

Fix #2600
2016-04-27 15:43:12 -05:00
Pavel Krymets
f3b47cabf1 Fix desktop standalone scenario 2016-04-27 12:16:40 -07:00
Ajay Bhargav Baaskaran
44fd8bc2de Updated ProjectModel
- Added PackOptions, RuntimeOptions, PublishOptions and updated CompilationOptions
 - Added IncludeFilesResolver to parse include, exclude patterns
 - Added compile, embed and copyToOutput to compilationOptions
 - Renamed compilationOptions to buildOptions
 - Moved compilerName into buildOptions
 - This change is backwards compatible
 - Added warnings to be shown when the old schema is used
 - Handled diagnostic messages in ProjectReader
 - Added unit and end to end tests
2016-04-27 11:49:44 -07:00
Pavel Krymets
366bad99ac Add performance tests 2016-04-27 08:41:22 -07:00
eerhardt
f8a155a4e6 Updating CoreFx to rc2-24027 2016-04-27 05:41:53 +00:00
Eric Erhardt
c60abb0d0a Adding a dotnet run test that outputs unicode characters. 2016-04-26 09:36:26 -05:00
Bryan Thornbury
7a7b524b34 add tests for a test app with unicode characters in the path 2016-04-26 09:36:25 -05:00
Sridhar Periyasamy
beb27a28fc Address PR feedback
Add new tests to invokde executable dependency via a tool command.
2016-04-25 12:02:07 -07:00
Sridhar Periyasamy
c82d3cc08d Add Binding redirects tests 2016-04-25 11:06:13 -07:00
Mihai Codoban
91fb67835d Merge pull request #2619 from cdmihai/cdmihai/globChangeDetectionRelMerge
Cache inputs for globbing change detection
2016-04-25 09:32:24 -07:00
Pranav K
4e496c3523 Modify dotnet-test to run testRunner for all tfms
Fixes #2506
2016-04-22 16:40:03 -07:00
Mihai Codoban
a3b7c85451 Add input caching for glob change detection 2016-04-22 16:05:50 -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
e420515c2b Updating CoreFX to rc2-24022 2016-04-22 10:58:43 -05: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
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
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
Andrew Stanton-Nurse
7c688eea7f fix framework assembly resolution for net35 (#2557) 2016-04-20 11:54:42 -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
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
eerhardt
eb4952df27 Updating CoreFx to rc2-24018 2016-04-18 05:23:16 +00:00
Piotr Puszkiewicz
859a2220f1 Merge pull request #2472 from MichaelSimons/debianbuild
Add support for Debian CLI builds
2016-04-15 16:02:23 -07:00
Andrew Stanton-Nurse
852446e859 Improve resource file support (#2511)
* Add satellite assemblies to deps file with locale data
* Publish satellite assemblies to output during publish
* Copy satellite assemblies from project-to-project dependencies on
build and publish
2016-04-15 14:45:51 -07:00
eerhardt
070650ebac Updating CoreFx to rc2-24015 2016-04-15 05:25:53 +00:00
MichaelSimons
08d3b41f8d Updates per code review 2016-04-13 16:46:45 -05:00
MichaelSimons
5c0cf55623 Initial changes to support building on Debian 2016-04-13 13:49:32 -05:00
Andrew Stanton-Nurse
a48596ff23 make 'platform' flag dependent upon CLI bitness
this will make net451 deployment work for x86 apps
2016-04-12 16:11:00 -07:00
Andrew Stanton-Nurse
f2bf60d06f add separate test for publish layout 2016-04-12 16:09:53 -07:00
Andrew Stanton-Nurse
14770ae5ba Add tests for "half-portable" scenario 2016-04-12 16:09:53 -07:00
Pavel Krymets
2d3a1fd177 Make desktop publishing "half-portable" by default 2016-04-12 16:09:53 -07:00
Bryan Thornbury
709f7b7d14 Enable Cross Publishing and add tests
WIP

WIP

WIP

Test out not publishing runtimeAssets

WIP

WiP x-publish

update cross-publish-test

Update Cross Publish tests

remove --config from restore

fix build

update cross publish tests

fix test compilation error

test failure fix

fix test failure

update tests

tracing

fix desktop publishing

do publish with no build, call build manually

fix

Make host publish optional, fix faux libraries?

update

Cross Publish test working

try changing test to netcore.app

fallback to host from current platform

revert change to project.json to target Microsoft.NETCore.App

fallback to compilation build output

update kestrel standalone app project.json

Make project tools command resolver test more self-contained.

make Kestrel Standalone restore against N-1
2016-04-12 13:00:04 -07:00
Andrew Stanton-Nurse
803fef6a8b fix equality issue in DependencyContextLoader (#2379)
When checking if the provided assembly is the Entry Point Assembly, we
previously just checked if the AssemblyNames were equal, but it turns
out AssemblyName doesn't implement Equals, so it was using Reference
Equality, which fails. This change uses Assembly.Equals, which has an
Equals implementation that works.

Also adds some tests to ensure it's working.

This unblocks scenarios where the EntityFramework `dotnet-ef` command
was trying to read DependencyContext.Default but receiving a null
reference.
2016-04-08 15:33:32 -07:00
Troy Dai
449a05cb8e Update NETStandard.Library version in test samples 2016-04-08 14:20:39 -07:00
Troy Dai
a3e1664ddc Update test apps 2016-04-08 14:15:17 -07:00
Troy Dai
6a678a0d05 Add unit test for duplicate system references 2016-04-08 14:15:17 -07:00
Troy Dai
c42c60c56b Add test for mscorlib duplication issue 2016-04-08 14:15:17 -07:00
Eric Erhardt
7d6d74bba2 Fixing dotnet-test.Tests to use a portable test app - ProjectWithTests.
The ProjectWithTests needed to be moved outside of TestAssets\TestProjects because it can't be restored --infer-runtimes and it has to be built with netcoreapp1.0.
2016-04-08 09:35:06 -05:00
Eric Erhardt
99371436f3 Consume NETCore.App 2016-04-08 09:27:23 -05:00
Matt Ellis
d0ac16129d Update package dependencies to rc2-24008 2016-04-08 04:05:26 -07:00
Piotr Puszkiewicz
0954049575 Merge pull request #2354 from dotnet/anurse/fix-nuget-config
remove unnecessary NuGet.Config that was causing problems
2016-04-08 04:04:18 -07:00
Piotr Puszkiewicz
c2befefd2a Remove unnecessary dependency on Microsoft.Dnx.* 2016-04-08 01:55:41 -07:00
Pavel Krymets
ddff3a256e Merge pull request #2342 from dotnet/pakrym/run-core-app
Add netcoreapp as default tfm to run
2016-04-07 20:11:08 -07:00
Andrew Stanton-Nurse
8e23d9a635 remove unnecessary NuGet.Config that was causing problems 2016-04-07 15:37:33 -07:00
Sridhar Periyasamy
5768f4c973 Merge pull request #2297 from Sridhar-MS/fix-2126
Execute project dependency command from output directory for Desktop.
2016-04-07 13:46:30 -07:00
Pavel Krymets
0bc7380bdb Add netcoreapp as default tfm to run 2016-04-07 11:51:41 -07:00
Sridhar Periyasamy
71680d30aa Add tests to check the dependency tool load location. 2016-04-06 11:52:48 -07:00
Sridhar Periyasamy
b0a504e952 Addres PR feedback
Use 'Microsoft.AspNetCore.Hosting' instead of super old
'Microsoft.AspNet.Hosting'.
2016-04-06 09:58:01 -07:00
Sridhar Periyasamy
1db2c08fb5 Execute project dependency command from output directory for Desktop.
Created a new command resolver called OutputPathCommandResolver which
reolves a command from the project build output directory.

Made changes ProjectDependenciesCommandFactory to use
OutputPathCommandResolver if the target framework is Desktop.

Fixes - #2126

Still need to add tests.
2016-04-05 20:13:06 -07:00
Sridhar Periyasamy
91adaa2b8c Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into kestrel-tests2 2016-04-05 14:40:07 -07:00
Pavel Krymets
87ee62c282 Merge pull request #2226 from dotnet/pakrym/no-trim-refs
Do not trim refs
2016-04-05 08:55:41 -07:00
Troy Dai
16bd0dd10d Merge pull request #2247 from dotnet/troy/dth.tests
Add two tests for project model server
2016-04-05 08:30:55 -07:00
Pavel Krymets
8831bb4a8b Do not trim refs 2016-04-05 08:06:17 -07:00
Sridhar Periyasamy
8f00b95783 Add kestrel tests.
Tests will 'build', 'run', 'publish' and 'execute' a Kestrel Hello World server as a PortableFatApp and as a Standalone app.
2016-04-04 17:57:12 -07:00
Livar Cunha
7b209e5603 Moved ProjectModel to json.net for GlobalSettings and Project.json. Kept LockFileReader using the old API as I don't have the cycles to add the tests for it at the moment.
Added unit tests covering parsing of Json for all the pieces of the project.json

Added a RawRuntimeOptions to Project and made Executable deserialize that into the runtimeOptions of runtimeconfig.json

Added tests to cover copying runtimeoptions during dotnet build.
2016-04-04 12:11:27 -07:00
Troy Dai
9cec3e3152 Add two tests for project model server 2016-04-03 19:29:23 -07:00
Pavel Krymets
e4cdc250e9 Merge pull request #2177 from dotnet/pakrym/disable-json-message
Do not write json error message to stderr
2016-03-31 16:31:07 -07:00
Pavel Krymets
8d1ddcdf2d Do not write json error message to stderr 2016-03-31 14:39:33 -07:00