Jon Sequeira
35e3625d4b
Merge branch 'rel/1.0.0' into make-migration-backup-folder-peer-of-project
2016-12-20 15:24:33 -08:00
Justin Goshi
89f0b05958
Improve sln migration tests ( #5066 )
...
* WIP Improve sln migration tests
* Simple migration test
* Improve the test
* WIP update test assets
* Update test
* Test a bug fix
* Add another migrate sln test
* Fix FilePath related tests
* Finish the migrate sln tests
* Fix tests
* Fix another path issue
2016-12-20 13:04:01 -10:00
Krzysztof Wicher
aa7fb60d73
remove redundant packagesRoot path check and reorder methods
2016-12-20 14:56:21 -08:00
Livar Cunha
4bda166b2f
Emitting a None item for App.config if one exists side-by-side to the project.json.
2016-12-20 14:42:31 -08:00
jonsequitur
620e573f95
make migration backup folder a sibling of the project root
2016-12-20 14:35:52 -08:00
Krzysztof Wicher
444dd6a031
shorten random package name, address pr feedback
2016-12-20 13:53:21 -08:00
Krzysztof Wicher
59ae0e2d3d
fix tools when restoring with --packages
2016-12-20 12:18:55 -08:00
Zlatko Knezevic
b467d66182
Remove argument separator from commands ( #5080 )
...
* Remove argument separator from commands
Currently, the argument separator (`--`) is only supported on
`dotnet run`. This PR removes it from other commands to make the help and
usage of these command clearer.
* Adding dotnet run message test
* Responding to PR feedback
2016-12-19 22:11:39 -08:00
Krzysztof Wicher
2d5e40f3ba
Merge pull request #5085 from krwq/i5019
...
Add error message when tool is ivoked but not restored
2016-12-19 16:51:14 -08:00
Livar
134e9af798
Merge pull request #5078 from livarcocc/preserve_rids_from_pj
...
Only adding rids for full framework TFMs if the project.json does not have runtimes
2016-12-19 16:20:12 -08:00
Krzysztof Wicher
ccfb4135c4
Add error message when tool is not restored
2016-12-19 14:12:04 -08:00
Livar
2aa166b5d0
Merge pull request #5069 from livarcocc/version_attributes
...
Making version an attribute for packagereference and dotnetclitoolreference
2016-12-19 09:48:00 -08:00
Livar Cunha
b2ce6c794a
Only adding rids for full framework TFMs if the project.json does not already have Runtimes in its Runtimes section.
2016-12-18 18:45:35 -08:00
Krzysztof Wicher
476a83eb1a
Ensure dotnet restore --packages is working ( #5008 )
...
* add dotnet restore --packages tests
* add dotnet build, publish, pack, dotnet-test test
* Shorten the test name in attempt to fix test failure
* fix whitespaces
2016-12-18 00:45:25 -08:00
Livar Cunha
52b45d0c49
Fixing tests and a couple of issues in the code due to Localization.
2016-12-16 23:59:58 -08:00
Piotr Puszkiewicz
2a612f88af
https://github.com/dotnet/cli/issues/5070
2016-12-16 22:45:48 -08:00
Scott Addie
e25e387f1f
Add hyphen in Welcome to .NET Core Telemetry paragraph - commandline
2016-12-16 22:45:47 -08:00
Livar Cunha
ee999ef874
Adding clean to the expected help output.
2016-12-16 20:14:33 -08:00
Livar Cunha
612da09a78
Fixing the failing dotnet --help test.
2016-12-16 19:16:38 -08:00
Livar Cunha
e1c0bbe0f7
Making version an attribute for packagereference and dotnetclitoolreference.
2016-12-16 19:13:37 -08:00
Livar
9c3141b63f
Merge pull request #5057 from dotnet/dev/jgoshi/removeProj
...
Implement dotnet remove project
2016-12-16 18:56:28 -08:00
Livar
e491fbdcd0
Merge pull request #5054 from codito/fix-retcode
...
Return non-zero exit code for test failure in multitargeted test project
2016-12-16 18:08:12 -08:00
Livar
a9ca6d8c5b
Merge pull request #5062 from livarcocc/clean_empty_targets_migration
...
Added a clean empty targets method to CleanOutputProjectRule
2016-12-16 18:07:37 -08:00
Livar
f1c16e59d6
Merge pull request #5043 from livarcocc/d_for_diagnostics
...
Changing the host verbosity flag to -d|--diagnostics
2016-12-16 16:05:02 -08:00
Justin Goshi
e94748f172
Update tests for non-windows platforms
2016-12-16 15:25:07 -08:00
Justin Goshi
45264edcd7
Merge branch 'rel/1.0.0' into dev/jgoshi/removeProj
2016-12-16 14:53:33 -08:00
Livar Cunha
2336cd7aa0
Fixing the help message.
2016-12-16 14:31:53 -08:00
Livar
af3cab66f4
Merge pull request #5034 from livarcocc/duplicate_resource_migration
...
Adding a Exclude @(EmbeddedResource) during migration to EmbeddedResources
2016-12-16 14:26:07 -08:00
Livar Cunha
d6d6fc612b
Added a unit test for cleaning empty targets.
...
Added a clean empty targets method to CleanOutputProjectRule that removes any targets without content inside of them from the csproj.
2016-12-16 13:31:42 -08:00
Livar Cunha
9fd4903bf3
Addressing code review comments and adding a test for dotnet --help.
2016-12-16 12:58:34 -08:00
Livar Cunha
5558e5f728
Changing the host verbosity flag to -d|--diagnostics from -v|--verbosity so that it is not confused with the verbs verbosity flag.
2016-12-16 12:58:34 -08:00
Justin Goshi
ae1e183e41
Complete the refactor and test improvements
2016-12-16 10:23:26 -08:00
Justin Goshi
82f5278d8a
Merge branch 'rel/1.0.0' into dev/jgoshi/removeProj
2016-12-16 08:44:38 -08:00
Justin Goshi
806d5a2589
Implement dotnet list projects ( #5027 )
...
* Implement dotnet list projects
* Address PR comments
* Fix build breaks
2016-12-16 06:41:47 -10:00
Arun Mahapatra
f3a74f1162
Return non-zero exit code for test failure in multitargeted test project.
...
Treat the errors from vstest task as errors (instead of warnings) before continuing further.
Add asserts for exit code in tests for dotnet-test and dotnet-vstest.
2016-12-16 15:39:52 +05:30
Justin Goshi
023a899db0
WIP Refactor and improve tests
2016-12-16 01:04:09 -08:00
Justin Goshi
20f2242947
Adding dotnet remove project tests
2016-12-15 15:48:04 -08:00
Livar Cunha
e710958b79
Adding a Exclude @(EmbeddedResource) during migration so that we don't get duplicate resources when building migrated apps.
2016-12-15 11:17:20 -08:00
Justin Goshi
441277ccfa
Implement dotnet add project ( #5022 )
...
* Implement dotnet add project
* Addressed PR comments
2016-12-14 13:53:11 -10:00
Livar Cunha
56dd76bdb0
Adding Update under Content for BuildOptions as well, but limiting this change only to Web Apps at the moment, because regular SDK does not have Content Include=**/* in place yet.
2016-12-13 16:45:40 -08:00
Livar Cunha
a22f4be938
Adding a UpdateContextTransform that generates items with the Update attribute set instead of Include. Also, removed the Exists condition for published content, because now that we are using Update, that check is not needed. I left the option to set a condition on the metadata though.
2016-12-13 16:45:39 -08:00
Livar Cunha
84682562bf
Adding a condition to Content CopyToPublishDirectory to validate that the file exists before trying to copy it to output, to keep the same functionality as it existed in PJ. In MSBuild world, without this condition, CopyToPublishDirectory will fail.
2016-12-13 16:45:39 -08:00
Justin Goshi
76722fd403
Improve the help text ( #5002 )
...
* WIP Improve help text
* Improve help text
* Address PR comments
* Address PR comments
* Address PR comments
2016-12-13 14:31:35 -10:00
Piotr Puszkiewicz
2fbafe6f3f
Remove StreamForwarder from CLI tests ( #4936 )
...
* WiP
* Replace StreamForwarder with OutputDataReceived
* Add build logging around test execution
* add newlines
* Add handling for the null terminator while maintaining empty lines
* Extra Diag
* Verbose logging for VS Test Console
* Fix asset file locking tests
* Add testcommand timeout + improve dotnet-new tests
* WiP
* Welcome, JoSequ!
* Fix failing tests
* Clean out diagnostics writelines
* self-PR1
2016-12-13 14:15:35 -08:00
Justin Goshi
2b7e9b6524
Clean up sln reader/writer ( #5005 )
2016-12-13 06:45:00 -10:00
Zlatko Knezevic
d335b5de40
Changing dotnet-test options ( #4987 )
...
In Preview 3, the `dotnet test` options were not aligned with the CLI's
adopted format. This PR changes the options to be aligned. Where
possible/applicable, I have shortened the long options to a meaningful
mnemonic short version.
Fixes #4960
2016-12-12 23:29:29 -08:00
Livar
1a49787a1f
Merge pull request #4993 from livarcocc/cyclic_dependency_test
...
Adding a test that validates CLI templates don't depend on CLI packages.
2016-12-12 15:48:41 -08:00
Livar Cunha
e1965327e0
Adding a test that restores all c# templates and checks that none of them depend on a package produced by the CLI. I had to write this as a single test for all templates because it cuts the test time in about half to restore all the packages at once to the same folder than to clean and restore again everytime per template.
2016-12-09 16:11:57 -08:00
Livar
bd590f51e6
Emitting PackageId whenever we emit AssemblyName. We need to do this to preserve the behavior from PJ where the package id matched the containing PJ folder name. In MSBuild, PackageId will match AssemblyName, unless it is explicitly specified. ( #4990 )
2016-12-09 16:10:16 -08:00
Krzysztof Wicher
8eaec8715b
Merge pull request #4972 from krwq/p2p-compat-check
...
add compat checks to dotnet add
2016-12-09 15:32:15 -08:00
Krzysztof Wicher
524fe3cb6b
apply review feedback
2016-12-09 12:11:11 -08:00
Piotr Puszkiewicz
70c8ecbf16
Merge branch 'rel/1.0.0' into migrate_pj_without_frameworks
2016-12-09 00:30:36 -08:00
Livar
1fd99f1588
Merge rel/1.0.0-preview4 back into rel/1.0.0 ( #4974 )
...
* Updating the preview4 channel to rel-1.0.0-preview4
* Add more xlf files for new strings
* bundle fsharp sdk, only Sdk directory is required
* align f# console proj
* align f# lib template
* align f# mstest template
* align f# xunit template
* align f# web template
* fix mstest package version, aligned to c#
* remove unused directories from bundled sdks
* Adding a SdkNugetVersion property when invoking dotnet pack on test packages so that test packages can reference exact packages. We need that because of https://github.com/NuGet/Home/issues/4063 . Without it, pack creates the nuspec with a version like 1.0.0-version-, instead of 1.0.0-version-<version_used_in_build>, which leads to problems when restoring the tool. Like, it ends up restoring to the closest version of the package (oldest), instead of the latest.
* Update web template for Web SDK 154 (#4948 )
* Update WebSDK version
* Update web template to get rid of globs
https://github.com/aspnet/Templates/pull/735
* MSBuild to 15.1.458 (#4950 )
* Adding MigrateWebSdkRule to the DefaultMigrationRuleSet (#4963 )
* Adding MigrateWebSdkRule to the DefaultMigrationRuleSet and adding a E2E test to cover it.
* Do not migrate compile and EmbeddedResources for web application, because those are included in the Web Sdk already.
* Addressing code review comments
2016-12-09 00:30:02 -08:00
Livar Cunha
9bddb5bac7
Addressing code review comments.
2016-12-08 20:06:55 -08:00
Livar Cunha
bb1bceb8bb
When we had a project.json without frameworks, we were failing to show the appropriate error message because when we were generating the error message itself we tried to access the project context (which requires a framework in the PJ). This fix makes the ProjectContext optional to add the migration error.
2016-12-08 19:53:35 -08:00
Krzysztof Wicher
9a8d158e09
add test coverage
2016-12-08 16:23:21 -08:00
Krzysztof Wicher
21993e0129
fix dotnet-remove-p2p tests
2016-12-08 15:04:32 -08:00
Krzysztof Wicher
2d38aaa6e1
fix dotnet-add-p2p tests
2016-12-08 14:56:31 -08:00
Justin Goshi
0831316321
Allow migration of sln files ( #4949 )
...
* WIP Migrate sln files
* WIP add reference to redist
* Adding tests and fixing a few bugs
* Fix some tests
* Remove use of DeepClone
* Fix test build errors
* Fix more tests
2016-12-07 11:49:15 -10:00
Krzysztof Wicher
79e6126b2a
add dotnet list p2ps ( #4929 )
...
* add stub for dotnet list p2ps
* apply review feedback
* PR feedback: consistent method modifiers
* apply missed review feedback
* add test coverage and do not treat no p2ps as error
* move private methods to the bottom, rename weird res name
2016-12-07 12:56:27 -08:00
Livar Cunha
c94934dfc5
Replacing snake casing with Camel casing for GivenThatIWantToMigrateBuildOptions. At some point, I will be able to change them all.
2016-12-05 20:34:11 -08:00
Livar Cunha
9d96bf8c20
Adding GenerateRuntimeConfigurationFiles when migrating a test project.
2016-12-05 18:23:34 -08:00
Piotr Puszkiewicz
7eb87f3397
Remove tests affected by https://github.com/dotnet/cli/issues/4381
2016-12-05 12:23:29 -08:00
Piotr Puszkiewicz
d6cab4af58
use Sdks attribute in dotnet new
templates ( #4916 )
...
* Move dotnet-new templates to Sdk attribute
* Update to MSBuild 15.1.0-preview-000454-01
To pick up a fix for Microsoft/msbuild#1431 .
* Fix template newlines
* Fix casing on Microsoft.Net.Sdk
* Move migration test csproj's to Sdk attribute
* Disable parallel sdk restore
Each SDK restore operation will try to manipulate the same assets.json file since the dependency name&version are injected into a common csproj file. This can cause runtime failures when two NuGets try to restore the project at once.
* Make casing of SDK 'NET' and not 'Net'
* Remove redundatn imports
* Fix test string
* Additional race
* Replacing the SDK with the Web.Sdk when it is a Web project.
* Fixing the test by writting the csproj before running the migration rule.
2016-12-04 22:31:58 -08:00
Scott Carlton
dc3d88c587
Localize changes for dotnet-remove ( #4900 )
...
* Rename centralized LocalizableStrings file
* Added RemoveDefinition
* Rebase
* rebase, remove localizablestrings for help
* loc for help command
* remove localizablestrings
* Localization changes for dotnet-remove
* Slight refactoring
2016-12-04 21:33:43 -08:00
Piotr Puszkiewicz
caad95491a
Fix output race ( #4911 )
...
* Fix output race
TestCommand starts the test process before wiring up stderr & stdout. This change delays process start until after the wireup is finished so that the test process cannot shut down before we have wired up output redirection.
* Bypass stream forwarder when it fails to attach to a process
CLI has tests failing errenously when, due to timing issues, the StreamForwarders fail to attach to a process because it managed to exit before attachment occurs.
We tried attaching the forwarders prior to Process Start but this proved impossible because the OUT and ERR streams are not available to attach before the process starts.
This exposes a fundamental flaw in our output redirection mechanisms. We should probably move to using https://msdn.microsoft.com/en-us/library/system.diagnostics.process.outputdatareceived.aspx or a similar mechanism. However, I don't know that @brthor hadn't considered and discarded this approach.
For the time being I am attempting to make tests more deterministic by capturing the associated exceptions and moving to a different mechanism when StreamForwarders are not available.
Opened https://github.com/dotnet/cli/issues/4913 to track the broader issue.
* File.Copy is not atomic...
2016-12-04 11:54:29 -08:00
Livar
ac4f903731
Merge pull request #4897 from livarcocc/no_publish_iis
...
Skipping dotnet publish-iis when migrating scripts as it is now part of the web.sdk
2016-12-04 09:36:52 -08:00
Piotr Puszkiewicz
d2d0353e60
Include Microsoft.Net.Sdk in CLI layout ( #4895 )
...
* WiP
* Update test
* Working version of Net SDK
* Latest SDK doesn't work as packageref
* DCR + PR
* Harden CLI tests against #4884
2016-12-03 14:19:54 -08:00
Rohit Agrawal
4311926366
update nuget to 4.0.0-rc2 (dev build 2067) ( #4904 )
2016-12-02 19:19:54 -08:00
Livar Cunha
7583bcb2fd
Skipping dotnet publish-iis when migrating scripts as it is now part of the web.sdk
2016-12-02 10:41:25 -08:00
Piotr Puszkiewicz
da82bdb05d
Centralize Microsoft.Net.SDK Version ( #4890 )
...
* Centralize Microsoft.Net.Sdk package version
Note: Templates were omitted as their version needs to be static.
* Unifying additional missmatched versions
* prefercliruntime
whitespace threw off ReplaceAll
* Additional missed globs
* Revert SDK version for performance tests
* PR Feedback
* Roll back VSTestXunitDesktopAndNetCore.csproj SDK version
2016-12-02 09:34:03 -08:00
Piotr Puszkiewicz
f18967e39a
Update CLI's MSBuild Version to 15.1.0-preview-000451-02 ( #4889 )
...
* Centralize definition of MSBuild Version in CLI
* MSBuild --> 15.1.0-preview-000451-02
2016-12-01 20:10:42 -08:00
Piotr Puszkiewicz
ecfd970045
Extra strings for localization ( #4880 )
...
* Update strings for localization
* re-align strings
2016-12-01 16:01:29 -08:00
Piotr Puszkiewicz
e82ed6799d
Enable overriding MSBuildSDKsPath with env var ( #4885 )
2016-12-01 14:45:55 -08:00
Martin Andreas Ullrich
4af30914c9
Show meaningful error when failing to migrate invalid scripts ( #4842 )
2016-11-30 20:36:13 -08:00
Krzysztof Wicher
7312e1cb3a
Merge pull request #4868 from krwq/i4746-dotnet-remove
...
Add dotnet-remove-p2p
2016-11-30 16:14:47 -08:00
Justin Goshi
8afb8ebf31
sln reader/writer ( #4870 )
...
* Snap of sln reader/writer from https://github.com/mono/monodevelop
* Remove unnecessary code
* Create a new test asset with an sln file because adding an sln to an existing one broke other tests
* Remove commented out line
* Removing unneeded PropertyGroup per PR comments
* Update the license
* Fixing the license
2016-11-30 14:08:28 -10:00
Krzysztof Wicher
0349aed9a7
complete tests
2016-11-30 12:07:13 -08:00
Krzysztof Wicher
23b46490a3
add some test cases stubs
2016-11-29 16:14:05 -08:00
Krzysztof Wicher
65f699f1cc
Prepare test project for dotnet-remove-p2p
2016-11-29 15:47:30 -08:00
Krzysztof Wicher
f49e29711f
Merge pull request #4758 from krwq/i4521
...
Fix 4521: Add dotnet-add-p2p
2016-11-28 13:51:08 -08:00
Piotr Puszkiewicz
b47d728516
Hide restore output of first-run experience ( #4740 )
...
* Fix 4066
* Merge Conflict
* Move fix to the DotNetCommandFactory
* More normalization
The `\r\n` issue is oddly non-deterministic. This change did not affect the message endings and yet CI started failing. Normalizing both string should have the desired result...
2016-11-28 00:46:26 -08:00
Enrico Sada
7b0117ac85
Update fsharp templates for preview4 with latest msbuild style ( #4836 )
...
* update web template
* add test build of fsharp/web template
* align fsharp/xunittest template
* add test for all template projects
* align fsharp/console template to #4821
* align fsharp/lib template to #4821
* align fsharp/mstest template to #4821
* align fsharp/xunittest template to #4821
* fix shortened test directory path (was same for c# test)
* try fix ci failure
2016-11-28 00:45:38 -08:00
Enrico Sada
a0060ac321
Fix for current ci fails ( #4838 )
...
* test ci
* try fix ci failure
2016-11-28 00:45:17 -08:00
Livar
325b849858
Merge pull request #4814 from livarcocc/invoke_tool_cli_fx
...
Making Project Tools use the CLI shared runtime
2016-11-25 16:12:38 -08:00
Faizan2304
eb8e0cfa40
Bug fixes ( #4810 )
...
* Bug fixes
* Nitpick
* -Fixed failed tests
-Added test to cover trx logger scenario.
* Fix for issue https://github.com/Microsoft/vstest/issues/241
* Fix for failed test. We have taken fix where dotnet test will return nonzero if test fails. In multi TFM scenario if test fails it termates the whole process as dotnet test is returning 1. As a fix of this we should continue if some test fails for next TFM
* Bump Microsoft.Testplatform.CLI and Microsoft.NET.Test.Sdk version
2016-11-24 00:48:54 -08:00
Piotr Puszkiewicz
3a3ab7e0b0
MSBuildSDKsPath ( #4824 )
...
* Tests in place
* Implementation
2016-11-23 23:54:44 -08:00
Livar
9862fbb4d7
Checking that the lock file exists before trying to acquire the lock for it. ( #4797 )
...
* Checking that the lock file exists before trying to acquire a lock for it, which takes up to 30 seconds.
* Adding a test for failing when reading the lock file and it does not exists.
2016-11-23 22:59:54 -08:00
Enrico Sada
2cf0675270
add F# templates to dotnet new
( #4789 )
...
* add F# templates to `dotnet new`
* add dotnet new tests
* avoid conflict with cs test dir
* fix test
2016-11-23 22:57:54 -08:00
Krzysztof Wicher
8b565616a0
Strings->LocalizableStrings, Extensions->ProjectRootElementExtensions, fix long lines, remove empty line
2016-11-23 15:35:48 -08:00
Livar
923320b66b
Merge pull request #4829 from jeffkl/4753
...
Move project.lock.json during migration
2016-11-23 14:02:35 -08:00
Krzysztof Wicher
93c30898e4
fix non-windows failures
2016-11-23 14:02:19 -08:00
Krzysztof Wicher
2bd020d015
attempt to fix broken linux build
2016-11-23 13:46:44 -08:00
Livar Cunha
9e9d7f1d52
Turns out I had missed one code review comment. Fixing the string validation for one of the tests.
2016-11-23 12:56:37 -08:00
Krzysztof Wicher
b22276a4a6
add fake msbuild.exe to workaround the msbuild issue
2016-11-23 11:03:39 -08:00
Livar Cunha
d5f7efbe86
Addressing code review comments.
2016-11-23 10:19:00 -08:00
Jeff Kluge
2205a8577c
Move project.lock.json during migration
...
Closes #4753
2016-11-23 09:46:36 -08:00
Livar Cunha
dc87680337
Making Project Tools use the CLI shared runtime if they have the prefercliruntime in the root of their package. This allows for project tools to not have to change when a new runtime comes up as long as they are compatible with the runtime that the CLI is using.
2016-11-23 09:25:47 -08:00
Livar
da0e7b744b
Revert "update NuGet to 4.0.0-rc2 build ( #4802 )" ( #4818 )
...
This reverts commit 0bafbd061e
.
2016-11-23 09:01:32 -08:00
Krzysztof Wicher
b8b7d98256
last touches
2016-11-22 14:46:33 -08:00
Krzysztof Wicher
58fe57e315
Lock on spec - all tests passing on Windows
2016-11-22 14:46:32 -08:00
Krzysztof Wicher
19dde128ba
detect non-existing references and tiny refactor of tests
2016-11-22 14:46:32 -08:00
Krzysztof Wicher
8e5ffaf176
fix some of the stuff in the feedback
2016-11-22 14:46:32 -08:00
Krzysztof Wicher
5d1deeeea1
test project - almost finished - not all review changes included
2016-11-22 14:46:32 -08:00
Rob Relyea
0bafbd061e
update NuGet to 4.0.0-rc2 build ( #4802 )
2016-11-22 00:51:12 -08:00
Livar
09f62cdd7e
Merge pull request #4741 from piotrpMSFT/piotrpMSFT/issues/4739-xprojUser
...
add *.xproj.user to backup file types
2016-11-16 09:30:17 -08:00
Livar
9847196c95
Merge pull request #4737 from livarcocc/migrate_authors
...
Adding Authors migration.
2016-11-16 09:29:13 -08:00
Livar
11f871b715
Merge pull request #4733 from livarcocc/migrate_adds_rids_for_desktop
...
Emitting runtime identifiers if the source project has any full framework TFMs
2016-11-16 09:29:01 -08:00
Piotr Puszkiewicz
d39ee4a463
add *.xproj.user to backup file types
2016-11-16 01:10:55 -08:00
Justin Goshi
be61afcfa5
Remove unused project.json and .xproj files ( #4735 )
...
* Remove unused project.json and .xproj files
* Update the test msi script
2016-11-15 16:12:19 -10:00
Livar Cunha
c364f27346
Adding Authors migration.
2016-11-15 16:36:04 -08:00
Livar Cunha
9513428013
Emitting runtime identifiers if the source project has any full framework TFMs.
2016-11-15 14:07:35 -08:00
Krzysztof Wicher
7a3bc96f75
Fix 4508: CLI verbs that call into msbuild should control their output ( #4719 )
...
* Fix 4508: CLI verbs that call into msbuild should control their output
* fix failing tests + tiny bufix in dotnet test
2016-11-15 11:56:39 -08:00
Krzysztof Wicher
43df9a170d
Fix 4655: Migrate errors are not getting put in formatted output ( #4718 )
...
* Fix 4655: Migrate errors are not getting put in formatted output
* Move test asset to NonRestoredTestProjects
* use group test asset manager: NonRestoredTestProjects
2016-11-15 09:39:58 -08:00
Piotr Puszkiewicz
bf425a6f0a
Removing dotnet-test-mstest when migrating because that package is no longer needed. ( #4690 )
2016-11-14 14:59:59 -08:00
Krzysztof Wicher
9212605e89
binding redirects tests: Simplify and get ready for enabling ( #4692 )
...
* binding redirects tests: Simplify and get ready for enabling
* fix targets broken during cleanup
* fix non-windows build
* apply pr feedback: remove some not needed code
* remigrate BindingRedirects samples, add x64 to bind redir proj
2016-11-14 14:26:03 -08:00
Justin Goshi
6d57ca7e14
Migrating all test projects ( #4668 )
...
* WIP migrate tests
* WIP fixing more tests
* WIP fix test build break
* Test results files are now trx
* Get CI to pass until we get an xunit xml logger
* Added DotNetTestPJ since that was needed for one test
* Fix build break
* Forgot to add DotNetTestPJ as a build task
* Need to restore project.json for the project used in ubuntu test
* Restore PJ for ubuntu test
* Switch the Ubuntu test to csproj based
2016-11-11 21:46:29 -10:00
Livar Cunha
df755b5554
Removing dotnet-test-mstest when migrating because that package is no longer needed.
2016-11-11 10:52:33 -08:00
Livar
43dfa6b8ba
Updating script migration to use the correct BeforeTargets. ( #4680 )
2016-11-10 18:24:35 -08:00
Livar
9869b82412
Merge pull request #4662 from livarcocc/remove_dotnet_test_xunit_migration
...
Removing dotnet-test-xunit when migration from project.json to csproj
2016-11-09 11:11:17 -08:00
Livar Cunha
7f549314ff
Removing dotnet-test-xunit when migration from project.json to csproj, as that package is no longer needed.
2016-11-09 09:52:52 -08:00
Piotr Puszkiewicz
b918b2a6b6
Invoking a command waits up to 30s for NuGet or another process ( #4657 )
...
* Invoking a command waits up to 30s for NuGet or another process
* PR Feedback
2016-11-08 23:23:13 -08:00
Livar
312559ccdc
Merge pull request #4636 from Faizan2304/xunitTemplateFix
...
Update version of xunit adapter in test assets and xunit template
2016-11-08 14:42:47 -08:00
Faizan Ahmad
c9a5c95cd6
Updated test to reflect xunit version change
2016-11-09 01:23:46 +05:30
Livar Cunha
ef90667375
Hoisting FrameworkAssemblies for desktop frameworks during migration.
2016-11-07 16:16:48 -08:00
Parallels
7edea7e23e
Fixing pack tests that were looking for the nupkg under bin/debug/TFM instead of bin/Debug. This was a change in pack that needed to be reflected in the tests.
2016-11-04 12:56:21 -07:00
seancpeters
40c34f891a
Updating the Microsoft.Net.Sdk & Microsoft.Net.Sdk.Web versions ( #4585 )
...
* Updating the Microsoft.Net.Sdk & Microsoft.Net.Sdk.Web versions
* Fixed merge conflicts. Had to re-update the Sdk version in one place.
* re-migrate dotnet.dll
* Revert Performance Test Projects
* Fix test test
* Add missing WithRuntime
* Disable failing test test
2016-11-03 22:12:33 -07:00
Rob Relyea
f961fef8e0
update NuGet in CLI to 4.0.0.2048 ( #4614 )
...
* update NuGet in CLI to 4.0.0.2047
* update NuGet in CLI to 4.0.0.2048
2016-11-03 22:11:44 -07:00
Livar
d6eef01015
Adding a tool migration for BundleMinifier.Core to move all version of the tool to 2.2.301 during migration. ( #4613 )
2016-11-03 19:55:52 -07:00
Livar
de5da5870f
Marking hoisted P2P projects with a FromP2P attribute. ( #4598 )
2016-11-03 10:27:51 -07:00
Piotr Puszkiewicz
fd9cb55f1a
Add msbuild-based stage0 where possible ( #4597 )
...
* Add msbuild-based stage0 where possible
* Fix bash initialization script
* Windows Fixes
* Fix dotnet deb tool
2016-11-02 23:01:57 -07:00
Livar
14c285db1c
Merge pull request #4583 from NTaylorMullen/nimullen/removert
...
Remove Razor.Tools/Razor.Design from migration logic.
2016-11-02 21:21:20 -07:00
Livar
d84c89be15
Merge pull request #4589 from livarcocc/cleanup_migration
...
Cleanup migration
2016-11-02 17:03:29 -07:00
Livar
14ad04a400
Merge pull request #4580 from jeffkl/telemetry
...
Some unit tests for MSBuild telemetry
2016-11-02 16:05:43 -07:00
Jeff Kluge
6a4d49e227
Remove quotes from /Logger argument because the argument escaper will do it for me
2016-11-02 15:19:21 -07:00
N. Taylor Mullen
411dd02923
Remove Razor.Tools/Razor.Design from migration logic.
...
- Razor.Tools/Razor.Design will not be shipping with MSBuild support for the upcoming release.
2016-11-02 15:16:57 -07:00
Livar Cunha
4e1f2f2b20
Removing TFM specific defines for migrated projects, since they are not being set in the SDK itself.
2016-11-02 15:05:45 -07:00
Livar
f84ce89e30
Merge pull request #4558 from Faizan2304/enablevstest
...
Enable disabled vstest and test verb test.
2016-11-02 13:59:45 -07:00
Jeff Kluge
a2d438288e
Reduce line lengths
2016-11-02 13:06:44 -07:00
Faizan Ahmad
fa4fad1ba0
Update vstest test to use short name test asset
2016-11-03 00:49:49 +05:30
Justin Goshi
d1772f6ed4
Add mstest support ( #4572 )
...
* Migrate: auto-injected dependencies should overwrite existing dependency version if present
* WIP adding new mstest templates
* Auto-inject mstest dependencies when testrunner is set to mstest
* WIP trying to get new web test to work
* Get dotnet new -t Web test to pass
* Remove whitespace and accidentally added (redundant) tests
* Shorten test method name
2016-11-02 08:49:45 -10:00
Faizan Ahmad
734afe84cf
Update test to point new short name test assets
2016-11-03 00:14:03 +05:30
Faizan Ahmad
5c5f593449
Merge branch 'rel/1.0.0' into enablevstest
2016-11-02 23:50:44 +05:30
Faizan Ahmad
111499899d
Reduced the test name to overcome 256 character file length limit in windows
2016-11-02 23:38:20 +05:30
Livar Cunha
0c833f5349
Making the default exclude option empty, so that by default, we don't set any excludes for compile or embed during migration.
2016-11-02 10:11:37 -07:00
Faizan Ahmad
dc249a94e9
Logging
2016-11-02 21:34:35 +05:30
Jeff Kluge
9c10867194
Unit tests for the logger command-line argument when telemetry is enabled or disabled
2016-11-02 08:04:02 -07:00
Faizan Ahmad
4af8d52a23
Updated the version of microsoft.testplatform.cli package
2016-11-02 18:11:36 +05:30
Faizan Ahmad
9b92fe2336
Adding try catch for xunit test to get logs
2016-11-02 15:07:13 +05:30
Krzysztof Wicher
d520160ce3
Merge pull request #4554 from krwq/fix_lib_wo_netstandard
...
When Library add reference to NETStandardLib if not present
2016-11-01 16:50:47 -07:00
Livar
aaa343a1c8
Merge pull request #4566 from livarcocc/migrate_unqualified_references
...
Migrating unqualifing references as projects
2016-11-01 15:54:45 -07:00
Krzysztof Wicher
e3bc102b06
When Library add reference to NETStandardLib if not present
2016-11-01 15:52:24 -07:00
Krzysztof Wicher
875e275e38
Revert "When Library add reference to NETStandardLib if not present"
...
This reverts commit 57d79bb2d3
.
2016-11-01 15:45:14 -07:00
Krzysztof Wicher
57d79bb2d3
When Library add reference to NETStandardLib if not present
2016-11-01 15:34:17 -07:00
Justin Goshi
155ef033f2
Migrate: auto-inject test dependency version ( #4565 )
...
* Migrate: auto-injected dependencies should overwrite existing dependency version if present
* Address PR comments
2016-11-01 12:10:51 -10:00
Livar Cunha
23a44f192f
Fixing the test on windows. We need to use path.combine because of the forward/backward slashes for directory separation.
2016-11-01 14:58:11 -07:00
Faizan Ahmad
061722d4ad
Enable some more test
2016-11-02 03:01:13 +05:30
Livar Cunha
82ff6397f5
Migrating unqualifing references as projects if we find a matching project. Without this, we have project references being migrated as package references.
2016-11-01 14:17:12 -07:00
Faizan Ahmad
0995daf83e
1) Added test to cover xunit scenario
...
2) Added log in multi tfm test to root cause the issue where it is failing for net46
2016-11-02 01:45:44 +05:30
Livar Cunha
c7858afc48
Attempting to actually fix the build this time. We were not pointing to the right packages cache before.
2016-11-01 12:46:29 -07:00
Faizan Ahmad
5c5ce3d336
Enable test verb tests
2016-11-01 22:01:30 +05:30
Faizan Ahmad
b13a7cee50
Enable Vstest test
2016-11-01 17:17:45 +05:30
Faizan Ahmad
1b5497afda
Enale disabled vstest test. It was failing in restore.
...
Going with increamental approach. In this commit i am trying to enable restore. In next commit will enable vstest
2016-11-01 16:18:33 +05:30
Livar Cunha
9139c4006b
Fixing full framework tests
2016-11-01 00:31:21 -07:00
Justin Goshi
f9493545dc
Address PR comments to improve test readability and reliability
2016-10-31 20:50:52 -07:00
Justin Goshi
45ccc74ace
Merge from rel/1.0.0
2016-10-31 20:00:15 -07:00
Livar
3c52adf53d
Merge pull request #4537 from livarcocc/rename_tools_packages
...
Rename tools packages
2016-10-31 18:39:32 -07:00
Jeff Kluge
595a768e30
Custom logger for MSBuild to receive telemetry events ( #4551 )
...
* Upgrade MSBuild references to 15.1.0-preview-000370-00
* Custom logger for MSBuild to receive telemetry events
Had to make the telemetry session ID a static variable so that the forwarding app could use it.
I've tested this all manually and will be writing tests after everyone signs off on the implementation here.
2016-10-31 16:16:39 -07:00
Piotr Puszkiewicz
d804502a8a
Remove deprecated test assets ( #4546 )
...
* Remove deprecated test assets
* Add missing nuget configs and fix poorly named test folder
* Test Cleanup
2016-10-31 16:16:07 -07:00
Justin Goshi
4cd74bff88
Only add the xunit references if the test running is xunit
2016-10-31 15:55:22 -07:00
Justin Goshi
4ea37c91a8
Migrate: add package dependencies to test projects
2016-10-31 13:59:47 -07:00
Livar Cunha
be2ab211f1
Addressing code review comments.
2016-10-31 12:39:03 -07:00
Livar Cunha
b16c9018b6
Adding a map of asp tools packages that tells which versions we need to migrate and to what. Any package in that list, will also have its version updated.
2016-10-31 12:33:01 -07:00
Livar
5a621b53e2
Merge pull request #4540 from livarcocc/issue4492/migrateWeb
...
Issue4492/migrate web
2016-10-31 12:26:26 -07:00
Livar Cunha
c3b57f2e72
Changing the Sdk.Web version to match the current SDK version so that we can update them together. Also added the dotnet-web to the migrated tests.
2016-10-30 21:32:11 -07:00
Piotr Puszkiewicz
f53c51fc07
[WiP] enable /m by default ( #4543 )
...
* MSBuild integration project + refactoring
* Feature Complete
* Change default target to an existing one
2016-10-29 12:08:52 -07:00
Piotr Puszkiewicz
5ede3b6367
post migration cleanup ( #4449 )
...
* Create tests
* Basic scenario working & tested
* Feature Complete
* prevent build of intentionally broken test asset
* Update migrate command backup
* PR Feedback
* Move negative test to negative test directory
* Fix tests
* make test output directories unique
* Merge Conflict
* make backup the default behavior
* Pass2Fail
* Remove tests' PJ dependency
2016-10-29 01:58:37 -07:00
Livar
3ec5279491
Merge pull request #4516 from dagood/disable-parallel
...
Use --disable-parallel during xplat restores
2016-10-29 00:49:09 -07:00
Livar Cunha
9e88b811a0
Refactoring the ProjectTypeDetector to use the Project in the MigrationInputs.
2016-10-29 00:33:22 -07:00
Mike Lorbetske
2d27092513
Fix the test for web project migration
2016-10-29 00:33:22 -07:00
Mike Lorbetske
e847389fc2
Update migration to use the web template as a base for web projects
2016-10-29 00:33:22 -07:00
Livar
22a5a15ba9
Merge pull request #4536 from krwq/outputNameIssue
...
Migrating project with OutputName
2016-10-28 20:55:18 -07:00
Livar Cunha
6c1dd226ec
Fixing windows failure due to path length.
2016-10-28 19:03:03 -07:00
Livar Cunha
9cbc563b55
Fixing tests in Windows.
2016-10-28 18:19:42 -07:00
Livar Cunha
59ac685dcd
Updating the msbuild version to one with the preserve compilation context fix.
2016-10-28 18:19:41 -07:00
Bryan Thornbury
c9f9421b93
preserve whitespace
2016-10-28 18:19:39 -07:00
Krzysztof Wicher
e9e05006da
Migrating project with OutputName
2016-10-28 17:27:42 -07:00
Justin Emgarten
54cad0b7a6
Updating nuget to 4.0.0-rc-2037
2016-10-28 17:13:29 -07:00
Livar
cbed94dbef
Merge pull request #4517 from livarcocc/promote_project_dependencies
...
Promote project dependencies
2016-10-28 15:17:47 -07:00
Arun Mahapatra
45a05417aa
Update GivenDotnetTest3BuildsAndRunsTestFromCsprojForMultipleTFM.cs
2016-10-29 03:03:14 +05:30
Arun Mahapatra
43d27b843b
Add issue to track vstest break
2016-10-29 01:30:49 +05:30
Arun Mahapatra
9ba8f816df
Disable vstest tests temporarily to unblock PR build
2016-10-29 01:05:18 +05:30
Davis Goodin
6b361b8dad
--disable-parallel in tests.
2016-10-28 11:06:37 -05:00
Faizan Ahmad
a09690d8df
1) Added diag support
...
2) Added log in test which are failing in windows machine for framework net46
2016-10-28 20:15:38 +05:30
Faizan Ahmad
63a14fd3ab
Merge from rel/1.0.0
2016-10-28 17:56:24 +05:30
Livar Cunha
29bd1e12e6
Fixing a merge with a new test that I added. No more restore3, hooray.
2016-10-27 20:56:36 -07:00
Livar Cunha
83350434bc
Adding a E2E test and a indirect dependency to TestAppDependencyGraph.
2016-10-27 20:08:53 -07:00
Livar Cunha
fa6aa749bd
Doing a tree traversal of all dependencies and creating a list that is then added to the project dependencies of the project.
2016-10-27 20:08:53 -07:00
Piotr Puszkiewicz
6fcbefa4f7
[WIP] Removes *3 verbs, making msbuild the driver ( #4456 )
...
Removes *3 verbs, making msbuild the driver
2016-10-27 18:46:43 -07:00
Livar
53dc665e9b
Merge pull request #4505 from livarcocc/assembly_info_migration
...
Assembly info migration
2016-10-26 17:00:22 -07:00
Justin Goshi
68afda8e4d
Handle "runtimes" section ( #4503 )
...
* Migrate "runtimes" section as a RuntimeIdentifiers property in the resulting csproj file. Also do not call restore3 from publish3 anymore.
* Fix up the publish3 tests to call restore3 first and the csproj files to have RuntimeIdentifiers
2016-10-26 22:23:40 +00:00
Livar Cunha
017fe529c1
Adding a E2E test for migrating an app with AssemblyInfo.
2016-10-26 15:13:39 -07:00
Livar Cunha
f863630fd8
Adding a rule that turns off assembly info generation for attributes already defined when migrating.
2016-10-26 13:55:15 -07:00
Faizan Ahmad
c7200f1599
Merge branch 'rel/1.0.0' into test3formultipletfm
2016-10-26 23:42:53 +05:30
Livar
4aa1c1bfb4
Merge pull request #4499 from eerhardt/FixRun3Project
...
Fix dotnet run3 --project to pass the project to msbuild.
2016-10-26 10:57:06 -07:00
Faizan Ahmad
679ea57acf
Merge branch 'rel/1.0.0' into test3formultipletfm
2016-10-26 21:46:55 +05:30
Faizan Ahmad
aea25b1fc5
Addressed PR comment
2016-10-26 16:53:34 +05:30
Livar
7149c722b1
Merge pull request #4496 from livarcocc/issue_4486
...
Merging metadata with different values
2016-10-25 22:26:21 -07:00
Livar
8befd890d8
Merge pull request #4494 from livarcocc/migrate_target_package
...
When determining the P2P dependencies, only use dependencies of type project
2016-10-25 22:25:28 -07:00
Eric Erhardt
33ec55aee3
Fix dotnet run3 --project to pass the project to msbuild.
...
Also update Microsoft.NET.Sdk to 1.0.0-alpha-20161026-2 since this has the corresponding fix needed for https://github.com/dotnet/sdk/issues/301 .
2016-10-26 00:04:40 -05:00
Livar Cunha
71aa93b164
Merging metadata with different values by setting the metadata values to be string joined and semi-column separated. This fixes the problem of having multiple mappings for the same file in a include/mappings.
2016-10-25 15:26:04 -07:00
Livar Cunha
175eaeb5c1
When determining the P2P dependencies, only use dependencies of type project. This prevents us from migrating a package dependency as a project dependency because of a project with the same name being present.
2016-10-25 13:09:06 -07:00
Faizan Ahmad
763e6bc946
nitpick
2016-10-26 00:10:25 +05:30
Faizan Ahmad
cb42c594ab
Test fix
2016-10-25 22:22:00 +05:30
Faizan Ahmad
8379feacdf
Updated test to handle configuration.
2016-10-25 20:57:59 +05:30
Faizan Ahmad
33caa408a1
1) Added support to run test from test3 verb for the project targeting multiple TFM
...
2) Added test to address above change
3) Crossgen were creating problem for full CLR built assemblies. Removed All those assembly from Crossgen list.
4) Removed the line of code which were deleting Extensions folder under sdk folder as this folder contain trx logger dlls
2016-10-25 20:10:18 +05:30
Livar
2cc007520d
Merge pull request #4479 from livarcocc/projectdependencies_full_framework
...
Making OutputPathCommandResolver work with MSBuild.
2016-10-24 16:18:15 -07:00
Livar Cunha
d61ebd3087
Making OutputPathCommandResolver work with MSBuild.
2016-10-24 12:41:27 -07:00
Livar Cunha
be419e3b70
Fixing project dependencies migration so that they are only conditioned when they where under a TFM in the project.json to begin with.
2016-10-21 18:00:17 -07:00
Livar
caf072daeb
Merge pull request #4463 from brthor/brthor/imports
...
Turn on tests
2016-10-21 14:22:21 -07:00
Livar
d8bf015d7c
Merge pull request #4459 from livarcocc/package_files
...
Package files
2016-10-20 21:01:02 -07:00
Bryan Thornbury
5301f08423
turn on signing test ( #4460 )
...
* turn on signing test
* fix the test
* test with xplat AssemblyOriginatorKeyFile
* tweak signassembly condition
2016-10-20 20:15:42 -07:00
Livar Cunha
883eb2e82f
Removing a test that is not necessary.
2016-10-20 15:53:31 -07:00
Bryan Thornbury
16ff3734a3
fix the multi tfm test to not build net20
2016-10-20 15:33:47 -07:00
Bryan Thornbury
1c1f4c462f
turn on multi tfm test
2016-10-20 15:19:35 -07:00
Bryan Thornbury
481aebd18a
turn on the web test
2016-10-20 15:04:53 -07:00
Livar Cunha
095105f2ec
Addressing code review comments.
2016-10-20 14:35:45 -07:00
Livar Cunha
dc0d87c826
Adding an additional test to validate mappings to the root of the package.
2016-10-20 11:56:30 -07:00
Livar Cunha
ddef1fc424
Adding pack files migration.
2016-10-20 11:56:07 -07:00
Bryan Thornbury
ecbc45098d
Add support for Migration defaults ( #4242 )
...
* Add support for sdk props/targets defaults to Migration.
* fix the transform applicator
* remove transform applicator dependency on insertion order for item merges
* defaults constructor msbuild version change
2016-10-20 11:00:41 -07:00
Livar Cunha
22bc479927
Updating msbuild to 15.1.319-preview5
2016-10-19 12:43:21 -07:00
Livar Cunha
e2e72a9662
Updating the msbuild templates in the CLI to use TargetFramework (singular).
2016-10-18 15:02:35 -07:00
Eric Erhardt
b32aedde5a
Add /p:SkipInvalidConfigurations=true to fix the test
2016-10-17 21:03:08 -05:00
Eric Erhardt
469f7be5c3
Add test for dotnet run with multiple frameworks.
2016-10-17 21:03:08 -05:00
Justin Goshi
71666cc9b5
Auto add referenced assemblies for desktop migration
...
* https://github.com/dotnet/cli/issues/4351
Auto add referenced assemblies for desktop migration. Adds the same ones
that the build for project.json does.
* Address PR comments
* Address CR comments
* Address CR comment
Use .ToList() instead of new List
* Fix a build break
Needed .noautobuild file in my test asset project
* Change the migrate test for desktop framework to windows only
* Reducing to 120 characters per line
2016-10-18 01:02:10 +00:00
Livar Cunha
3798102035
Changing the API to create the MSBuild project to LoadProject and removing some non-existing paths from the RepoDirectoriesProvider.
2016-10-17 08:43:47 -07:00
Livar Cunha
391d04c67a
Adding net46 to some of our libraries back, so that we can run binding-redirect tests again. We need those tests for tool and we need to keep them running.
2016-10-16 18:44:07 -07:00
Livar Cunha
7601f66328
Reducing the test method name sizes in an attempt to get it passing on Windows.
2016-10-16 18:42:57 -07:00
Livar Cunha
dab19ce57c
Fixing msbuild.exe casing
2016-10-14 14:58:36 -07:00
Livar Cunha
8ad1982013
Handling configuration when the env variable is not set.
2016-10-14 14:36:09 -07:00
Livar Cunha
58bc3b5853
Making the tests aware of the Configuration used in the build.
2016-10-14 12:56:18 -07:00
Livar Cunha
99d6b1fd6d
Adding some more tracing to tools command resolvers.
2016-10-14 12:56:18 -07:00
Livar Cunha
d8a10024e5
Addressing code review comments by removing unnecessary test artifacts.
2016-10-14 12:56:18 -07:00
Livar Cunha
318c9f3e44
Making ProjectDependenciesCommandResolver handle msbuild projects as well by using the ProjectFactory and IProject.
...
Moving the CommandResolution classes that depend on msbuild back into Cli.Utils.
Updating the src projects to a netstandard compatible with Cli.Utils moving to netstandard1.5
2016-10-14 12:56:18 -07:00
Justin Emgarten
bc82b16a01
Merge pull request #4406 from dotnet/emgarten/solutionRestore
...
Adding recursive restore and solution level restore
2016-10-14 11:18:24 -07:00
Piotr Puszkiewicz
02a19aff56
dotnet-new csproj templates ( #4382 )
...
Make csproj templates first-class in dotnet-new.
2016-10-14 00:06:35 -07:00
Justin Emgarten
53b436c5d5
Updating NuGet to 3.6.0-rc-1984
2016-10-13 19:31:15 -07:00
Bryan Thornbury
1926d0e4a4
fix null ref when only one item ( #4390 )
2016-10-12 16:01:22 -07:00
Bryan Thornbury
f79d78703b
remove autounify, fix langversion ( #4387 )
...
* remove autounify, fix langversion
* PR feedback
2016-10-12 14:59:36 -07:00
Faizan Ahmad
578edc9350
Rebase with rel/1.0.0
2016-10-12 22:53:43 +05:30
Faizan Ahmad
4dd685a45c
Addressed livar PR comment
2016-10-12 15:20:07 +05:30
Justin Emgarten
f2eef338db
Updating NuGet to 3.6.0-rc-1979
2016-10-12 00:49:44 -07:00
Faizan Ahmad
391fff1f20
Merge branch 'rel/1.0.0' into clitest3verb
2016-10-12 11:57:46 +05:30
Justin Goshi
07418af874
Fixes #4293
...
https://github.com/dotnet/cli/issues/4293
2016-10-11 18:25:47 -10:00
Eric Erhardt
ea092717ac
Merge pull request #4369 from eerhardt/SingleTFM
...
Move all CLI libraries to be single-TFM targeting netstandard1.3 where possible.
2016-10-11 20:59:48 -05:00
Justin Goshi
59f2483fd3
https://github.com/dotnet/cli/issues/4293
...
Improve help text for commands that shell out to msbuild.
2016-10-11 17:29:09 -07:00
Eric Erhardt
742d48b596
Fix binding-redirects.Tests to work with net46.
2016-10-11 18:30:15 -05:00
Eric Erhardt
acbef441b1
fixup Cli.Utils.Tests for latest code from rel/1.0.0
2016-10-11 17:31:18 -05:00
Bryan Thornbury
924c2c2954
Fix Migration Imports ( #4350 )
...
* Fix Migration Imports
* turn tests back on
* turn other tests back on
* test update
* update nuget version
* fix string join
* bump nuget version
* undo
* undo
* undo
2016-10-11 15:22:18 -07:00
Eric Erhardt
b8dbdc29ae
Merging Test.Utilties with the latest code from rel/1.0.0.
2016-10-11 17:20:15 -05:00
Eric Erhardt
b5329995d8
Merge branch 'rel'
2016-10-11 17:01:33 -05:00
Eric Erhardt
00f543d089
Fix dotnet-tests to run tests on net46, since we only support netstandard1.3 in ProjectModel.
2016-10-11 16:59:58 -05:00
Eric Erhardt
7618cce420
Remove GivenADesktopAppWhichUsesCommandCreateDotnet, since Cli.Utils will only support netstandard1.5 going forward.
2016-10-11 16:16:44 -05:00
Eric Erhardt
38753d42b0
Fix the tests for targeting netstandard1.3.
2016-10-11 16:01:03 -05:00
Justin Goshi
19abf66412
Fixes issue #4313
...
Improve error messages for the migrate command
2016-10-11 10:58:49 -10:00
Piotr Puszkiewicz
28193c5f75
Merge pull request #4303 from dasMulli/feature/dotnet-clean-verb
...
Added clean3 verb for msbuild based projects.
2016-10-11 11:36:27 -07:00
Justin Goshi
70a8872f45
Address CR comments for the new migration tests
...
Changing the tests to also verify the error messages.
2016-10-11 11:19:04 -07:00
Justin Goshi
5016aea90c
Add tests
2016-10-10 18:01:59 -07:00
Bryan Thornbury
0bdd3bd59f
type build, suppress parent, include, exclude working
2016-10-10 16:21:55 -07:00
Bryan Thornbury
c44e50dfc4
type build tests
2016-10-10 16:21:53 -07:00
Eric Erhardt
93166dd77c
Merge pull request #4361 from eerhardt/RemoveFsc
...
Remove dotnet-compile-fsc.
2016-10-10 14:17:29 -05:00
Livar Cunha
c2bce2e2cc
Moving the InferLegacyRestoreRuntime method to Test.Utilities, since it is needed only by tests.
2016-10-10 09:52:39 -07:00
dasMulli
148319a3c2
Added clean3 verb for msbuild based projects.
2016-10-10 18:31:30 +02:00
Eric Erhardt
6cf0327875
Remove dotnet-compile-fsc.
...
It's new home is https://github.com/dotnet/netcorecli-fsc/
2016-10-10 11:23:46 -05:00
Faizan Ahmad
23af21d7bb
Merge with rel/1.0.0
2016-10-10 15:29:35 +05:30
Livar Cunha
09d811fdbd
Adding an OverrideRid property used in the GetRuntimeInfo task to override the rid of the CLI. This allows us to build for osx.10.11 when building on osx.10.12.
2016-10-08 11:45:19 -07:00
Bryan Thornbury
2727b191e3
Merge pull request #4310 from brthor/brthor/migrationreport
...
Migration Report
2016-10-07 11:01:06 -07:00
Livar Cunha
167470b1c9
Updating the SDK version, which we need to pick up the NuGetTargetMoniker fix.
2016-10-06 18:31:15 -07:00
Bryan Thornbury
fbaf9a679e
Project Migration Report
2016-10-06 15:56:15 -07:00
Rohit Agrawal
28bd507f40
update nuget and sdk to 3.6.0-rc-1954 and 1.0.0-alpha-20161006-3 ( #4332 )
2016-10-06 09:35:58 -07:00
Faizan Ahmad
3f271e1215
Merge branch 'rel/1.0.0' into clitest3verb
2016-10-06 17:50:59 +05:30
Sridhar Periyasamy
5c6e3a05fb
Merge pull request #4305 from dotnet/sridhar-ms/migrate-p2p-fix
...
Fix P2P migration and migrate folders in global.json
2016-10-05 20:59:39 -07:00
Sridhar Periyasamy
c6064677db
Address PR feedback
2016-10-05 17:58:42 -07:00
Nate McMaster
b38f644347
Merge pull request #4326 from dotnet/namc/user-secrets
...
Add migration rule for 'userSecretsId'
2016-10-05 16:40:38 -07:00
Sridhar Periyasamy
1d85c241b1
Add support to migrate folders specified in global.json
2016-10-05 16:27:17 -07:00
Sridhar Periyasamy
a396630576
Fix P2P migration
...
Fixes #4269 by deep cloning the MsbuildTemplateProject for each P2P reference. Add test which migrates and builds P2P references.
2016-10-05 16:25:28 -07:00
Livar Cunha
bfc1f82d68
Fixing the tools item name in csproj. Nuget used a different one then was originally at the spec.
2016-10-05 15:27:30 -07:00
Nate McMaster
190f0fc756
Rename to MigrateJsonPropertiesRule
2016-10-05 15:15:13 -07:00
Nate McMaster
dd7a76e6f0
Add migration rule for 'userSecretsId'
2016-10-05 15:05:19 -07:00
Bryan Thornbury
50e83b9c65
Merge pull request #4320 from brthor/brthor/toolsrefmigration
...
dotnet cli migrate tools ref
2016-10-05 13:39:34 -07:00
Livar
7a0dff8a96
Merge pull request #4300 from livarcocc/support_for_toolsref
...
Support for toolsref
2016-10-05 13:18:12 -07:00
Livar Cunha
465b32dab4
Addressing code review comments.
2016-10-05 11:51:59 -07:00
Bryan Thornbury
310da80c3a
remove write
2016-10-05 11:39:14 -07:00
Bryan Thornbury
1232a38e51
dotnet cli migrate tools ref
2016-10-05 11:36:23 -07:00
Livar Cunha
facbef52ff
Changing the code to read tools from csproj because the tools section in assets.json is no longer being populated.
2016-10-04 18:59:44 -07:00
Livar Cunha
1570e0fde4
Moving the ProjectToolsCommandResolver to dotnet out of Cli.Utils because of the dependency on Microsoft.Build. Also added a EndToEnd test for tools ref using the MSBuildTestApp.
2016-10-04 18:59:44 -07:00
Livar Cunha
e5f6107d88
Fixing a test that needed the lock file now that that's what we use for tools.
2016-10-04 18:58:38 -07:00
Bryan Thornbury
bf5404373f
add signed verification test
2016-10-04 16:48:14 -07:00
Bryan Thornbury
46b16d2de0
fix signing migration
2016-10-04 16:06:45 -07:00
Bryan Thornbury
7632cd3502
Merge pull request #4261 from brthor/brthor/packageref
...
PackageReference Migration
2016-10-04 14:42:43 -07:00
Bryan Thornbury
a078e8b845
dir
2016-10-04 10:13:01 -07:00
Faizan Ahmad
579df78466
- Implementation of test3 verb for single TragetFramework
...
- E2E test for test3 verb.
2016-10-04 15:37:36 +05:30
Bryan Thornbury
adff632929
green
2016-10-03 20:10:09 -07:00
Bryan Thornbury
bf45ab19ca
PackageReference
2016-10-03 17:12:57 -07:00
Eric Erhardt
5055935008
Merging rel/1.0.0-preview2 into rel/1.0.0.
2016-10-03 14:47:24 -05:00
Faizan Ahmad
b240b855c1
Update the new version of Microsoft.TestPlatform.cli which has fix related to testAdapterPath.
...
Updated the test project to reflect the same.
2016-10-04 00:17:35 +05:30
Eric Erhardt
79999f3798
Remove temporary test project.
2016-10-03 09:37:15 -05:00
Eric Erhardt
a7366f5864
Add support for publishing self-contained applications.
...
Fix #4204
2016-10-03 09:23:00 -05:00
Livar Cunha
4173d19b3c
Pinning the SDK version for migrated apps.
2016-09-30 09:27:16 -07:00
Livar Cunha
29b197534c
Updating to a new SDK and adding a work around to set project.lock.json for migrated projects.
2016-09-30 09:27:15 -07:00
Livar Cunha
68e1aae6cc
Fixing tests.
2016-09-30 09:27:15 -07:00
Livar Cunha
7e16ad0388
Adding TargetFrameworks even for single TFM and cleaning up PackageRef.
2016-09-30 09:27:15 -07:00
Livar Cunha
715f1f6a10
Addressing code review comments.
2016-09-30 09:27:15 -07:00
Livar Cunha
c41b35f06f
Updating tests to reflect msbuild projects running without project.json.
2016-09-30 09:25:11 -07:00
Livar Cunha
2bbef9328b
Removing project.json from msbuild template and msbuild test app.
2016-09-30 09:25:11 -07:00
Eric Erhardt
ce6c29676d
Adding "BuildRid" to the CLI as a fallback RID to use when inferring which RID to use when building, running, and publishing self-contained applications.
...
This enables users to use the CLI on newer versions of the OS that aren't fully supported yet - for example using a new OSX version that isn't listed in the runtime graph in the current NuGet packages.
Fix #4238
2016-09-29 22:39:00 -05:00
Sridhar Periyasamy
98231a6628
Merge pull request #4254 from dotnet/sridhar-ms/migrate-directory
...
Add support to migrate a directory.
2016-09-29 10:13:55 -07:00
Sridhar Periyasamy
a50708ac5c
Address PR feedback
2016-09-28 09:00:15 -07:00
Livar Cunha
f0a50c92ac
Fixing issues small issues found during build and tests.
2016-09-27 10:53:22 -07:00
Sridhar Periyasamy
7ee2bd1f26
Add support to migrate a directory.
...
- Given a directory migrate all the project.jsons in it recursively.
- Remove '-p/--project' option. Instead directly pass a directory or project.json as argument.
- Add tests.
2016-09-26 14:16:17 -07:00
Eric Erhardt
5434c7f392
Merge pull request #4237 from eerhardt/PublishCommand
...
Add `dotnet publish3` command
2016-09-26 11:51:19 -05:00
Sridhar Periyasamy
038fb6fbae
Merge pull request #4221 from dotnet/sridhar-ms/multiple-proj-migrate
...
Migrate P2P references
2016-09-23 22:30:58 -07:00
Sridhar Periyasamy
ec7aa87576
Add xproj tests to test migrate command.
2016-09-23 17:33:35 -07:00
Livar Cunha
f5feed1abb
Removing a test that won't work now.
2016-09-23 14:37:16 -07:00
Sridhar Periyasamy
46ab621422
Migrate P2P references
...
- Given a project migrate all the project references recursively.
- Add a boolean option '--skip-project-references' to skip migrating P2P references. By default P2P references are migrated.
- Remove the '--output' since it is not used heavily and makes migrating multiple projects easier.
- Add tests
2016-09-23 14:25:57 -07:00
Livar Cunha
09a369530c
Adding tests for run3.
2016-09-23 12:49:24 -07:00
Eric Erhardt
eed29be806
Add dotnet publish3
command.
2016-09-23 12:12:55 -05:00
Eric Erhardt
5cfe3e9ff5
Merge pull request #4229 from eerhardt/NewCommands
...
Create a `dotnet msbuild` command and fill out the applicable command line arguments to `dotnet build3`.
2016-09-23 09:05:01 -05:00
Bryan Thornbury
a04194c0f7
Merge pull request #4224 from brthor/brthor/remove-nuget
...
Migration: Remove dependency on lock file and dotnet restore
2016-09-22 18:47:58 -07:00
Livar
a0aa51777f
Merge pull request #4233 from livarcocc/migrate_packOptions
...
Adding migrate PackOptions capabilities.
2016-09-22 17:57:08 -07:00
Bryan Thornbury
5523f24712
fix tests
2016-09-22 17:16:37 -07:00
Livar Cunha
768e289f0c
Adding migrate PackOptions capabilities.
2016-09-22 16:14:27 -07:00
Bryan Thornbury
95e0ed3713
fix errors, enable tests
2016-09-22 14:30:56 -07:00
Eric Erhardt
5bd310bbd5
Add dotnet msbuild
tests.
2016-09-22 15:56:36 -05:00
Bryan Thornbury
3e6e1ddcd0
add support for conditioned csproj references, add tests
2016-09-22 12:51:23 -07:00
Bryan Thornbury
a688885f21
remove nuget dependency in tests
2016-09-21 21:23:50 -07:00
Bryan Thornbury
8a420de736
Remove nuget dependency
2016-09-21 21:14:48 -07:00
Bryan Thornbury
5d2f0579d2
Migrate xproj to csproj dependencies
2016-09-21 17:27:02 -07:00
Bryan Thornbury
08fbe7f9d1
remove debug
2016-09-21 14:51:31 -07:00
Bryan Thornbury
2dd99ce015
improve finding encompassed items in a configuration
2016-09-21 14:41:16 -07:00
Bryan Thornbury
b03f4c282b
remove some tests
2016-09-21 13:19:01 -07:00
Bryan Thornbury
fe676e7bc6
use c# boolean syntax
2016-09-21 11:51:13 -07:00
Bryan Thornbury
dc13951871
fix PublishWithContents test
2016-09-21 11:37:43 -07:00
Bryan Thornbury
875d91629e
case insensitive msbuild metadata findng
2016-09-21 11:31:30 -07:00
Bryan Thornbury
362f71a94a
Project Json mapping migration support
2016-09-20 21:18:11 -07:00
Bryan Thornbury
3a567e5957
Merge pull request #4185 from brthor/brthor/migrate-x-targetting
...
Migration X-Targeting
2016-09-19 16:01:04 -07:00
Bryan Thornbury
02495c07e0
Remove script extension inference test
2016-09-19 15:13:09 -07:00
Bryan Thornbury
448d9dc08b
remove pathext workaround
2016-09-19 13:25:40 -07:00
Bryan Thornbury
67f292947d
try again
2016-09-19 11:11:01 -07:00
Faizan2304
0ce597a147
Implemented vstest verb which will run the test from given container. ( #4115 )
...
* Implemented vstest verb which will run the test from given container.
* Fixed Nitpick.
* 1) Addressed PR comment
2) Added tests for vstest verb
* Using specific version of Microsoft.TestPlatform.
* Address PR comments.
Modified help text for the vstest command.
Removed unused function.
* Fixed package related issue.
--Taking reference of microsoft.testplatform.cli nuget package which has contentFolder in it so that sub folder of this nuget can also be added in cli package.
-- Removing vstest.console, vshost and datacollector from Bundletools as we dont want *.deps.json to be override
* Nitpick
* Making vstest.console arguments compatible for non windows platform
* Fix tests to run on linux machine
* Updated the microsoft.testplatform.cli nuget package version. This version has fix related to non windows machine.
* changed dapter path from bin/debug to bin/Debug
* updated nuget version of package Microsoft.TestPlatform.CLI.
* Revert "updated nuget version of package Microsoft.TestPlatform.CLI."
This reverts commit bcc26c21d11c2bd2e5259a74f9890b0fd75962c7.
* Updated version of nuget package Microsoft.TestPlatform.CLI
Added Test project in solution file
* Addressed PR comment.
* Removed unnecessary --platform argument from test
2016-09-19 10:59:26 -07:00
Bryan Thornbury
2ddcbe449c
kill script extension inference tests
2016-09-19 10:54:45 -07:00
Bryan Thornbury
9067bc9e45
Path ext hacks
2016-09-19 10:33:03 -07:00
Bryan Thornbury
9d46a19c59
TFM
2016-09-19 09:16:36 -07:00
Bryan Thornbury
fe20698d81
PR Feedback
2016-09-16 16:37:48 -07:00
Bryan Thornbury
3cdd994798
fix test
2016-09-15 16:30:39 -07:00
Bryan Thornbury
944eb1e787
Migration X-Targeting
2016-09-15 15:54:10 -07:00
Bryan Thornbury
ce47a64870
fixup namespaces and keyfile
2016-09-14 15:30:11 -07:00
Bryan Thornbury
9b21131bb3
sign tests
2016-09-14 14:10:47 -07:00
Eric Erhardt
ab8e1b707b
Merge pull request #4143 from eerhardt/NewSDK
...
Update Microsoft.NETCore.Sdk to 1.0.0-alpha-20160907-1
2016-09-07 15:44:23 -05:00
Eric Erhardt
df45fc2153
Enable MSBuild EndToEnd test on all platforms.
2016-09-07 14:49:26 -05:00
Livar Cunha
236e0d57da
Updating NuGet.Config for migration tests.
2016-09-06 13:58:16 -07:00
Livar Cunha
e0629ad351
Fixing test failure because the web app is using packages in a feed that we did not have. Add that feed through a NuGet.COnfig only for the tests that need it.
2016-09-02 17:59:13 -07:00
Livar Cunha
1767385aa1
Updating versions in a few places that did not exist in the preview2 branch.
2016-09-02 15:01:59 -07:00
Livar Cunha
27bc1c4f91
Merge branch 'rel/1.0.0-preview2' into merge_preview2_to_rel100
...
* rel/1.0.0-preview2:
Update versions of EF and scaffolding tools
Update Kestrel to 1.0.1
Update version of routing to 1.0.1
Add missing comma to F# lib project.json
Update cshtml wildcard in publishOptions
Don't print arguments in F# console app
Update F# dotnet-new templates for Preview 2 (Enrico Sada rebase)
Update MVC version to 1.0.1
Upgrade Corefx and coreclr references
fix typo in dotnet-install file
Remove the VS2012 CRT dependency from docs (#3632 )
Fix README to use hostfxr download links (#3622 )
Fix Oracle Linux version in README.md
Use NugetCache Sentinel for Telemetry setting.
Add Serviceable assembly attribute and nuspec attributes for all shipping CLI assemblies.
Remove showing firsttime eula for non verbs.
Adding Oracle Linux and Linux Mint to the titles
Moving Ubuntu 16.04 to be next to Ubuntu 14.04
Update README.md
2016-09-02 14:53:16 -07:00
Joel Verhagen
3619b7d767
Set the "hashPath" when building the .deps.json file
...
Update Microsoft.Extensions.DependencyModel to 1.0.1-beta-000933
Update Microsoft.DotNet.PlatformAbstraction to 1.0.1-beta-000933
Update NuGet to 3.6.0-beta.1.msbuild.4
Update dotnet-test-xunit to 1.0.0-rc2-350904-49
2016-09-02 10:02:54 -07:00
Eric Erhardt
bb130ce71f
Merge pull request #4134 from eerhardt/NewSDK
...
Update Microsoft.NETCore.Sdk to 1.0.0-alpha-20160831-1
2016-09-01 16:13:38 -05:00
Eric Erhardt
94edeb44ca
Fix tests that now pass correctly with the latest Sdk.
2016-09-01 13:42:35 -05:00
Eric Erhardt
0e4044b8bd
Update Microsoft.NETCore.Sdk to 1.0.0-alpha-20160831-1
2016-09-01 11:08:34 -05:00
Bryan Thornbury
7b5ca2da34
Add Scripts environment variable support
2016-08-31 15:30:23 -07:00
Sridhar Periyasamy
8fcfc2af05
Upgrade Corefx and coreclr references
...
Microsoft.NetCore.App 1.0.0 => 1.0.1
Microsoft.NETCore.Runtime.CoreCLR 1.0.2 => 1.0.4
CLI Branding "Microsoft .NET Core 1.0.0 - SDK Preview" => "Microsoft .NET Core 1.0.1 - SDK 1.0.0 Preview 2-003122"
List of changes
- all project.jsons
- dotnet new templates
- and build projects files
- shared-build-targets-utils\DependencyVersions.cs
- CliDependencyVersions.cs
2016-08-31 10:41:47 -07:00
PiotrP
a6ee3df5b2
Merged branch feature/msbuild into piotrpMSFT/branchmerge
2016-08-30 14:10:47 -07:00
Bryan Thornbury
b0554d3ff3
PR Feedback
2016-08-30 12:00:56 -07:00
Bryan Thornbury
903764aa7d
Fix msbuildexe config
2016-08-30 12:00:11 -07:00
Bryan Thornbury
28e2aa493d
ProjectJsonMigration Tests
2016-08-30 12:00:11 -07:00
PiotrP
3cdd15a145
Merged branch feature/msbuild into piotrpMSFT/branchmerge
2016-08-30 10:30:45 -07:00
Livar Cunha
7d60d66a86
Addressing more code review comments.
2016-08-29 09:46:12 -07:00
Piotr Puszkiewicz
8eecff0112
Address build issues
2016-08-27 15:57:14 -07:00
PiotrP
ae4a690724
Fix tests
...
Missing namespace
Re-enable dotnet-nuget unit tests
2016-08-26 18:14:04 -07:00
Livar Cunha
9f2a0169fc
Addressing code review comments.
2016-08-26 11:23:47 -07:00
Livar Cunha
e8f2dabcdb
Fixing broken tests after my changes to the CommandResolvers.
2016-08-25 22:53:04 -07:00
Livar Cunha
55c00a7e45
Adding a resolution chain to the command resolution chain that works based on a directory, more specifically, the publish directory.
2016-08-25 16:01:32 -07:00
Livar Cunha
7e556e37d2
Adding a separate runner for project.json and for assembly.
2016-08-24 15:24:30 -07:00
Livar Cunha
dddfb6bb45
Adding new unit tests to cover TestRunner in DotnetTestParams.
2016-08-23 11:26:37 -07:00
Livar Cunha
0667e84069
Added an ITestRunnerResolverFactory that decides on which resolver to use based on the set of parameters received.
2016-08-22 21:29:14 -07:00
Livar Cunha
8e432e567a
Adding TestRunner resolvers that will be able to find a test runner based on different criteria.
...
Moving dotnet test command to its own library that can be shared between dotnet test and the test target in the SDK folder.
2016-08-22 15:45:13 -07:00
Piotr Puszkiewicz
578adf072c
Merge remote-tracking branch 'refs/remotes/origin/feature/msbuild'
...
Conflicts:
src/dotnet/Program.cs
2016-08-18 18:08:45 -07:00
Piotr Puszkiewicz
e92c9603c8
Test reliability and format cleanups
2016-08-18 17:10:20 -07:00
Joel Verhagen
aacc30d5d8
Add "path" property the .deps.json file for libraries
...
Update DependencyModel and PlatformAbstractions packages to 1.0.1-beta-000917
Update dotnet-test-xunit to 1.0.0-rc2-330423-54
2016-08-18 15:57:03 -07:00
Piotr Puszkiewicz
3194ec1c3a
Shorten test asset names
2016-08-18 13:36:36 -07:00
PiotrP
c3971fc100
Add missing build artifacts
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
9a1d4b7ef8
Fix packagedcommandtests
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
4e2d13a8ff
Microsoft.DotNet.ProjectModel.Tests to TAM
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
fa9c795823
Move Microsoft.Dotnet.Cli.Utils.Tests to TAM
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
9f08302bbf
Move packagedcommandtests to TAM
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
31756737d3
dotnet-resgen.Tests
...
move dotnet-resgen.Tests to TAM
remove unnecessary code from dotnet-publish.Tests
add missing lock files in dotnet-compile.Tests
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
8fbc227422
Move dotnet-pack.Tests to TestAssetsManager
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
8c9e1fca90
TestAssetManager in CompilerTests
2016-08-18 12:36:25 -07:00
Piotr Puszkiewicz
2db1997bc0
Merge remote-tracking branch 'refs/remotes/origin/feature/msbuild'
...
Conflicts:
Microsoft.DotNet.Cli.sln
build_projects/dotnet-cli-build/DebTargets.cs
build_projects/dotnet-cli-build/TestTargets.cs
scripts/package/package-debian.sh
src/Microsoft.Extensions.DependencyModel/DependencyContextJsonReader.cs
src/dotnet/commands/dotnet-new/Program.cs
src/dotnet/commands/dotnet-pack/PackageGenerator.cs
test/Microsoft.Extensions.DependencyModel.Tests/DependencyContextJsonReaderTest.cs
2016-08-16 18:30:52 -07:00
drewgil
11b666acee
Add nuget command to dotnet cli
2016-08-16 09:27:55 -07:00
Justin Emgarten
51ea2e6014
Adding Restore3 command for msbuild restore support.
2016-08-12 00:05:21 -07:00
Eric Erhardt
bc04f905db
Remove Build.Tasks.Tests.
2016-08-10 20:09:15 -05:00
Livar Cunha
75524b0c6a
Disabling the net451 discovery tests.
2016-08-10 13:40:27 -07:00
Livar Cunha
d8e7d37616
Addressing code review comments
2016-08-10 13:40:27 -07:00
Livar Cunha
8fa2d35291
Updating dotnet new test so that it does not use project dependencies and honors package dependencies.
2016-08-10 13:40:27 -07:00
Livar Cunha
7b94fa7df2
Updating the xunit version to match the new version of dotnet-test-xunit.
2016-08-10 13:40:27 -07:00
Livar Cunha
dc7f1fdf84
Updating the xunit version to one that does not depend on internalabstractions.
2016-08-10 13:40:13 -07:00
Livar Cunha
0a55a7cb99
Updating the msbuild changes to handle DependencyModel coming from core-setup instead of a project dependency.
2016-08-10 13:39:49 -07:00
Livar Cunha
e900e23544
Updating dependencies to use the new dependencymodel and platformabstractions. Also updated the xunit template to add internalabstractions.
...
Conflicts:
src/Microsoft.DotNet.Cli.Utils/project.json
test/dotnet-build.Tests/BuildOutputTests.cs
2016-08-10 13:39:49 -07:00
Livar Cunha
ee1474c161
Removing dependency model from CLI repo.
...
Conflicts:
Microsoft.DotNet.Cli.sln
build_projects/dotnet-cli-build/PackageTargets.cs
build_projects/dotnet-cli-build/TestPackageProjects.cs
build_projects/dotnet-cli-build/TestTargets.cs
src/Microsoft.Extensions.DependencyModel/CompilationLibrary.cs
src/Microsoft.Extensions.DependencyModel/DependencyContext.cs
src/Microsoft.Extensions.DependencyModel/DependencyContextLoader.cs
src/Microsoft.Extensions.DependencyModel/DependencyContextPaths.cs
src/Microsoft.Extensions.DependencyModel/DependencyContextWriter.cs
src/Microsoft.Extensions.DependencyModel/Resolution/AppBaseCompilationAssemblyResolver.cs
src/Microsoft.Extensions.DependencyModel/Resolution/PackageCacheCompilationAssemblyResolver.cs
src/Microsoft.Extensions.DependencyModel/Resolution/ResolverUtils.cs
src/Microsoft.Extensions.DependencyModel/project.json
test/Microsoft.Extensions.DependencyModel.Tests/DependencyContextJsonWriterTests.cs
test/Microsoft.Extensions.DependencyModel.Tests/FunctionalTests.cs
test/Microsoft.Extensions.DependencyModel.Tests/PackageCacheResolverTest.cs
test/Microsoft.Extensions.DependencyModel.Tests/PackageResolverTest.cs
2016-08-10 13:39:49 -07:00
PiotrP
a7d594049b
Remove dotnet-build.tests
...
This capability is being replaced by MSBuild, and the project.json tests are very long running.
2016-08-10 11:55:56 -07:00
Eric Erhardt
2b741bca27
Fix and re-enable build3 tests.
2016-08-10 09:21:43 -05:00
PiotrP
f277103831
Make GivenThatICopyLibraryAssets repeatable
2016-08-08 13:44:44 -07:00
jplebre
db17fb6889
xunit and nunit template tests cannot run in parallel
2016-08-03 22:06:17 +01:00
jplebre
e5dad7e451
Cleaned up unused bits
2016-08-03 22:06:17 +01:00
jplebre
06d7a84c08
Added tests as a project to the solution
2016-08-03 22:06:17 +01:00
Pavel Krymets
ee6063b12b
Use JsonTextReader in DependencyContextJsonReader ( #3972 )
...
Using low level JsonTextReader in DependencyContextJsonReader class for performance reasons
2016-08-02 13:16:44 -07:00
Pavel Krymets
b7075b857b
Use JsonTextReader in DependencyContextJsonReader ( #3972 )
...
Using low level JsonTextReader in DependencyContextJsonReader class for performance reasons
2016-08-02 10:02:30 -07:00
Eric Erhardt
df3fea3736
Merge pull request #3962 from eerhardt/msbuild-GenerateDepsFile
...
Implement GenerateDepsFile MSBuild Task
2016-08-01 20:17:05 -05:00
Eric Erhardt
10cfa744e5
PR feedback.
...
Implement VersionPrefix and VersionSuffix MSBuild properties.
Use FluentAssertions in the test.
2016-08-01 15:02:22 -05:00
Eric Erhardt
b3e69b139e
Update NuGet to 3.5.0-rc1-1697
2016-08-01 13:58:04 -05:00
Eric Erhardt
a4aa0a99cd
Implement GenerateDepsFile MSBuild Task
2016-07-29 20:46:34 -05:00
Livar Cunha
89a6bdd197
Disabling the msbuild E2E test.
2016-07-28 23:35:46 -07:00
Livar Cunha
174eeed45e
Adding System namespace to packagedependencyprovidertest, required by StringComparer.
2016-07-28 21:57:00 -07:00
Livar Cunha
b05b0e6dc5
After NuGet started lower casing the packages, we started hitting issues where we failed to locate dependencies under our list of libraries due to different casing in the libraries names. The fix here is to compare the library names ignoring casing.
2016-07-28 21:17:32 -07:00
Eric Erhardt
efc0efe4f9
Workaround native deps resolver not lower casing the file paths into the NuGet cache.
...
This is needed until https://github.com/dotnet/core-setup/pull/64 is merged.
2016-07-26 21:00:14 -05:00
Eric Erhardt
a48def9ade
Fix package code for new NuGet.
...
The new NuGet uses tolower paths, and we need to react to it.
Port https://github.com/dotnet/cli/pull/2722
Port https://github.com/dotnet/cli/pull/3554
2016-07-26 20:53:20 -05:00
Eric Erhardt
d54bba96cd
Fix Microsoft.DotNet.Tools.Tests.Utillities.xproj name to match folder.
...
Also fixing GivenAProjectDependenciesCommandFactory test to expect a lower case path, since that is what the new NuGet does.
2016-07-26 20:53:19 -05:00
Eric Erhardt
6eabeb9be0
Generate runtimeconfig.json and runtimeconfig.dev.json from MSBuild
...
Moves generating the runtimeconfig files to a separate MSBuild target which is only dependent on project.lock.json.
Also, moving up our NuGet dependency to 3.5.0-rc1-1653, since that brings in the LockFile.PackageFolders property, which is needed for runtimeconfig.dev.json.
2016-07-26 20:53:17 -05:00
Piotr Puszkiewicz
fe5119fde4
Piotrp msft/merge2msbuild ( #3923 )
...
* Add Test for removing readonly flag when copying readonly library assets
* change namespace
* PR Feedback
* Update README.md (#3904 )
* Update README.md
* Responding to PR feedback
* Responding to PR feedback
2016-07-23 13:38:31 -04:00
Bryan Thornbury
5cb8be5143
PR Feedback
2016-07-21 22:09:07 -07:00
Bryan Thornbury
f829d8cb93
change namespace
2016-07-21 21:12:50 -07:00
Bryan Thornbury
e1c5c7a43d
Add Test for removing readonly flag when copying readonly library assets
2016-07-21 19:36:45 -07:00
Eric Erhardt
e908ffec91
Fix build3 tests.
2016-07-21 18:29:35 -05:00
Eric Erhardt
72c59c4d05
Add test for MSBuild End to End.
2016-07-21 16:02:57 -05:00
Eric Erhardt
d2db776d87
Merge rel/1.0.0 into feature/msbuild.
2016-07-18 14:44:06 -05:00
Ajay Bhargav Baaskaran
dbf7435c3c
[ Fixes #3502 ] Fix: publishOptions: [...] not respected
2016-07-13 15:09:22 -07:00
Ajay Bhargav Baaskaran
c748c81a4a
[ Fixes #3856 ] Allow mapping of the same file to multiple target paths
2016-07-13 14:56:22 -07:00
Piotr Puszkiewicz
08e9bc903e
CLI Testing via msbuild ( #3779 )
...
* Rebase
* Remove Multi-Project Validator
* Remove projectmodelserver tests
* Enable test package creation
* Incremental test restore
* WiP
* Enable Test Asset Project restore
* Build Test Assets & Restore Test Projects
* Build Test projects
* Enable Test Execution
also moves Test Targets to a well-known CLI Version [Stage 2]
* Pass throuh existing telemetry profile
* 2-space tabs
* Revert TestTargets.cs
* WiP PR feedback
* Refactoring
* Fix naming of RestoreTestAssetPackages
* DotNetTest task
* Fix merge issue
* ExecuteWithCapturedOutput
MSBuild considers StdErr output to be failures. This causes output of any test command which is expected to produce an error to be swallowed in the test.
* Workaround for always-on tracing functionality in dotnet-test
* Fix Path Separator Windows/Unix
* Seperate package build from pack
* Windows Pathing issues
* PR Feedback
* Workaround for msbuild #773
https://github.com/Microsoft/msbuild/issues/773
2016-07-11 12:46:27 -07:00
PiotrP
5ed1371cd9
Remove Project Model Server
2016-06-30 14:31:08 -07:00
Bryan Thornbury
fa97921a4d
change to properties, artifact names
2016-06-29 15:12:58 -07:00
Eric Erhardt
cec5bacaad
Merge branch 'feature/msbuild' of https://github.com/dotnet/cli.git
2016-06-23 17:52:51 -05:00
Bryan Thornbury
400e1db3b9
dotnet-build3 Adding msbuild execution command to cli
2016-06-23 13:57:33 -07:00
Piotr Puszkiewicz
9d01e3bc2e
Merge rel/1.0.0-preview2 to rel/1.0.0 ( #3677 )
...
* Update README.md
* Moving Ubuntu 16.04 to be next to Ubuntu 14.04
* Adding Oracle Linux and Linux Mint to the titles
Adding Oracle Linux and Linux Mint to the titles next to their compatible binaries.
* Remove showing firsttime eula for non verbs.
* Add Serviceable assembly attribute and nuspec attributes for all shipping CLI assemblies.
Fix #3345
* Use NugetCache Sentinel for Telemetry setting.
* Fix Oracle Linux version in README.md
Oracle Linux 7 -> Oracle Linux 7.1
* Fix README to use hostfxr download links (#3622 )
Also fix a rebase error from b524fd079e6dcdd744faeb6061ccbfe99d1f810f#diff-04c6e90faac2675aa89e2176d2eec7d8
* Remove the VS2012 CRT dependency from docs (#3632 )
* fix typo in dotnet-install file
This was needed to rebuild the CLI with the updated Roslyn NuGet packages.
Thanks goes to @akoken for the fix.
2016-06-22 15:17:54 -07:00
Troy Dai
fc370bee6d
Clean up comments in DthTests
2016-06-15 23:24:03 -07:00
Troy Dai
97da0b0696
Fix dependencies type changes scenario in project model server.
2016-06-15 23:24:03 -07:00
Josh Free
ef9ad4044a
Merge pull request #3579 from Priya91/rel/1.0.0-preview2
...
Remove showing firsttime eula for non verbs.
2016-06-15 17:02:34 -07:00
Troy Dai
64c49d972a
Add test to ensure refresh dependencies' consistency
2016-06-15 16:07:47 -07:00
Lakshmi Priya Sekar
db7f68716b
Use NugetCache Sentinel for Telemetry setting.
2016-06-15 15:55:28 -07:00
Pavel Krymets
6b54ae0bcc
Trim platfrom libraries from deps fiels
2016-06-15 09:09:38 -07:00
Lakshmi Priya Sekar
eab2494ed5
Remove showing firsttime eula for non verbs.
2016-06-14 17:55:10 -07:00
Lakshmi Priya
8dd2479965
Check if project.json exists before creating new project in the same dir ( #3543 )
...
* Check if project.json exists before creating new project in the same dir.
* Change error message.
2016-06-14 13:20:29 -07:00
Bryan Thornbury
277b2e7a0d
re-enable first time experience for the first-time experience tests
2016-06-14 02:41:47 -07:00
jacalvar
635c3331df
Update to Json.NET 9.0.1
2016-06-14 03:21:56 -05:00
Eric Erhardt
a4cef6d367
Updating NuGet to beta2-1484
2016-06-14 03:19:04 -05:00
Eric Erhardt
f25f047376
Updating CoreFX, CoreCLR, Roslyn, CoreSetup to stable versions.
2016-06-14 03:14:53 -05:00
Livar
9f2bb66198
Merge pull request #3485 from livarcocc/offline
...
Offline feature work
2016-06-12 00:58:26 -07:00
Eric Erhardt
c1c7ca06c2
Update NuGet to 3.5.0-beta2-1480
2016-06-11 12:23:24 -05:00
Eric Erhardt
8e83ccb659
Merge pull request #3518 from eerhardt/UpdateDependencies20160611042958
...
Updating CoreFx, CoreClr, Roslyn, CoreSetup to rc3-24210-10, rc3-24210-10, beta1-20160610-04, rc3-3004459-00 respectively
2016-06-11 11:33:21 -05:00
Zlatko Knezevic
79bbfafc51
Fix the project.json for C# library and add tests ( #3507 )
...
* Fix the project.json for C# library and add tests
This commit fixes the bug introduced in project.json for the C# Library
template. It also adds two simple tests for the library template that
drop the class library and then restore and another that also builds.
Fixes #3496
2016-06-11 06:43:56 -07:00
eerhardt
2aa3dd0843
Updating CoreFx, CoreClr, Roslyn, CoreSetup to rc3-24210-10, rc3-24210-10, beta1-20160610-04, rc3-3004459-00 respectively
2016-06-11 04:29:58 +00:00
Andrew Stanton-Nurse
762a259e9f
fix #3469 by correcting overflow and enabling tests ( #3471 )
...
* fix #3469 by correcting overflow and enabling tests
* pr feedback
2016-06-10 17:28:23 -07:00
Livar Cunha
105e5ab051
Introducing a in progress sentinel that gets verified before running the first time experience. If we can get a handle for this sentinel, we proceed with the first time run, otherwise, it means there is a first time experience running already, in which case we continue running dotnet normally, even though the final (real) sentinel is not present yet. This prevents multiple dotnet commands from running the first time experience in parallel and prevents us from running into parallel nuget restores.
2016-06-10 16:54:39 -07:00
Livar Cunha
ed7e583ab6
Addressing code review comments and adding a DOTNET_SKIP_FIRST_TIME_EXPERIENCE env variable to have a way to turn off the feature.
2016-06-10 16:54:37 -07:00
Livar Cunha
69f43beccd
Adding the code to extract the archive in the first use of dotnet an
...
d added the first time use welcome text as well as some E2E tests.
2016-06-10 16:54:16 -07:00
Livar Cunha
4c5f097d67
Adding the configurer to dotnet.
2016-06-10 16:54:11 -07:00
Livar Cunha
461c26b78d
Adding a create method to the sentinel and invoking it from the Primer when appropriate.
2016-06-10 16:54:09 -07:00
Livar Cunha
ac2e21452f
Adding a separate abstraction for the NuGet sentinel.
2016-06-10 16:54:06 -07:00
Livar Cunha
84f63029fe
Almost all of the code to prime the NuGet cache from the archive.
...
- Created a Configurer class that is responsible for deciding when to run the dotnet first time use
experience and invoke the NuGetCachePrimer.
- Added the NuGetCachePrimer which extract the archive and primes the cache.
-- This is just missing creating the sentinel once restore succeeds.
- Added a shell for the NugetPackagesArchiver, which will be responsible for expanding the archive (likely
replaced in the future by an abstraction from Eric's code or its implementation will simply call Eric's code).
- Added a TemporaryFolder abstration to Internal Abstractions that handles deleting the temporary folder once
we are done with it.
2016-06-10 16:53:55 -07:00
eerhardt
7b51f28c7f
Updating CoreFx, CoreClr, CoreSetup to rc3-24210-06, rc3-24210-01, rc3-3004449-00 respectively
2016-06-10 15:05:30 +00:00
Eric Erhardt
ef4a8e85ef
Updating CoreSetup to rc3-004443-00.
2016-06-10 01:09:46 -05:00
eerhardt
cd9bcd40b3
Updating CoreFx, CoreClr, CoreSetup to rc3-24209-08, rc3-24208-04, rc3-3004442-00 respectively
2016-06-09 21:14:15 -05:00
Zhi Li
9a9864bf68
Update NuGet Version to 3.5.0-beta2-1451
2016-06-09 07:52:00 -05:00
Eric Erhardt
f43aad780c
Updating CoreFx, CoreClr, Roslyn, CoreSetup, DiaSymReader to rc3-24208-04, rc3-24208-04, beta1-20160608-03, rc3-004425, rc2-60608-04 respectively
2016-06-08 22:56:25 -05:00
Pranav K
a2d4f6fed0
Remove use of Microsoft.Extensions.PlatformAbstractions
2016-06-08 16:28:52 -07:00
Eric Erhardt
d2f1fa0300
Updating CoreFx, CoreClr, CoreSetup to rc3-24207-03, rc3-24207-03, rc3-004415 respectively.
2016-06-07 18:24:30 -05:00
Jonathan Miller
cff4f37456
Merge pull request #3411 from sokket/json
...
Bumping JSON.NET to 9.0.1
2016-06-07 16:17:00 -07:00
Jonathan Miller
30ba1a1a61
Merge pull request #3413 from sokket/cycle
...
Adding check for self-referencing projects
2016-06-07 16:16:54 -07:00
Jonathan Miller
cdf4407419
Bumping JSON.NET to 9.0.1
2016-06-07 15:04:17 -07:00
Eric Erhardt
2e7c467aad
Merge pull request #3407 from dotnet/dev-ragrawal-updatenuget
...
update nuget to 3.5.0-beta2-1392
2016-06-07 15:50:13 -05:00
Jonathan Miller
dc5fbc1a91
Adding basic cycle detection in the dependency walker
2016-06-07 13:21:13 -07:00
Eric Erhardt
334b079995
Updating CoreSetup, Roslyn, DiaSymReader to rc3-004408, beta1-20160606-02, 1.0.8-rc2-60606-01 respectively.
2016-06-06 18:56:24 -05:00
Andrew Stanton-Nurse
dd51836aac
fix #2289 by integrating EF's version of project load context ( #3402 )
2016-06-06 15:08:46 -07:00
Rohit Agrawal
5378f5a697
update nuget to 3.5.0-beta2-1392
2016-06-06 14:14:20 -07:00
Todd Moscinski
d3b935489f
Fixing schema version number, tweaking a string, and making test call pass a bool instead of a string to enable serviceable.
2016-06-06 11:00:47 -07:00
Todd Moscinski
391675c5b9
Changing schema version to 8 to match NuGet internal value and adding a pack test for the --serviceable option.
2016-06-06 11:00:33 -07:00
Eric Erhardt
42938f180f
Updating CoreSetup to rc3-004406
2016-06-06 11:15:07 -05:00
Josh Free
b422e7fde3
Merge pull request #3393 from eerhardt/UpdateDependencies20160606022451
...
Updating CoreFx, CoreSetup to rc3-24206-00, rc3-004404 respectively
2016-06-06 08:26:49 -07:00
eerhardt
354b1d38d5
Updating CoreFx, CoreSetup to rc3-24206-00, rc3-004404 respectively
2016-06-06 14:24:51 +00:00
Troy Dai
7adf70d297
Expand timeout setting for project model server
2016-06-05 20:30:21 -07:00
Eric Erhardt
3e77d1a2d8
Moving TestAsset project from netstandard1.5 to 1.6.
2016-06-04 19:56:42 -05:00
eerhardt
ea8ae8d1c7
Updating CoreFx, CoreSetup to rc3-24204-00, rc3-004400 respectively
2016-06-04 18:32:34 +00:00
Eric Erhardt
4f95bc0010
Update CoreSetup to rc3-004397
2016-06-04 00:00:28 -05:00
Eric Erhardt
8162f89996
Fixing PortableAppWithRuntimeTargetsIsPublishedCorrectly now that libuv is contained in the Shared Framework.
2016-06-03 11:16:52 -05:00
Eric Erhardt
f16f2e64eb
Updating CoreFx, CoreSetup, Roslyn to rc3-24201-00, rc3-004391, beta1-20160602-01
2016-06-03 07:27:42 -05:00
Eric Erhardt
0577337cdc
Merge pull request #3351 from dotnet/preview2
...
Updating CoreSetup to rc3-004373
2016-06-02 15:47:00 -05:00
Eric Erhardt
351255dda1
Updating CoreSetup to rc3-004373
2016-06-02 14:45:00 -05:00
Bryan Thornbury
64508f08ab
fixes #2408 stop using corehost to activate projectdependencycommands
2016-06-02 10:50:38 -07:00
Livar Cunha
7652335195
Addressing code review comments and adding opensuse 13.2
2016-05-31 15:15:57 -07:00
Matt Ellis
29bd8be092
Remove some rids from cross plublish tests
...
Until all the packages are published for these RIDs (which requires the
work in core-setup to land) we can't cross publish for the new distros.
2016-05-31 15:15:57 -07:00
Matt Ellis
3e9a3d2d95
Fix syntax error
2016-05-31 15:15:08 -07:00
Livar Cunha
e634fedae8
Adding Fedora 23
2016-05-31 15:15:08 -07:00
Livar Cunha
84d1b60ffe
Adding docker files, modifying scripts and code to handle ubuntu 16.04
2016-05-31 15:15:08 -07:00
Eric Erhardt
71b5e40060
Merge pull request #3305 from eerhardt/UpdateDependencies20160531082746
...
Updating CoreFx, CoreSetup to rc3-24131-00, rc3-004363 respectively
2016-05-31 16:45:39 -05:00
Eric Erhardt
b1b7caac3d
Merge pull request #3303 from eerhardt/ReEnableTests
...
Re-enable tests disabled for crossgen enabling
2016-05-31 16:16:05 -05:00
eerhardt
657c03b625
Updating CoreFx, CoreSetup to rc3-24131-00, rc3-004363 respectively
2016-05-31 20:27:46 +00:00
Eric Erhardt
32b6204fda
Re-enable tests disabled for crossgen enabling
...
Fix #3269
2016-05-31 13:26:39 -05:00
Eric Erhardt
d50068a5e4
Updating CoreFx, CoreSetup to rc3-24128-00, rc3-004338 respectively
2016-05-31 12:55:36 -05:00
eerhardt
a087de2f87
Updating CoreFx, CoreSetup to rc3-24127-01, rc3-004336 respectively
2016-05-28 00:48:49 +00:00
eerhardt
80820a638b
Updating CoreFx, CoreSetup to rc3-24127-00, rc3-004324 respectively
2016-05-27 18:12:45 +00:00
Eric Erhardt
3fd06948fb
Merge pull request #3264 from eerhardt/UpdateDependencies20160527080508
...
Updating CoreFx, CoreSetup to rc3-24126-01, rc3-004322 respectively
2016-05-27 13:04:01 -05:00
Andrew Stanton-Nurse
d5b1ee138f
Add version suffix to build cache to ensure incremental builds are reset when it changes ( #3246 )
...
* add test for #2687
* fix #2687 by writing version suffix to build cache
2016-05-27 10:49:50 -07:00
Eric Erhardt
63a786b334
Disable tests for crossgen re-enable.
2016-05-27 11:56:27 -05:00
eerhardt
ef76efa02c
Updating CoreFx, CoreSetup to rc3-24126-01, rc3-004322 respectively
2016-05-27 08:05:08 +00:00
Eric Erhardt
cc178d425f
Update CoreFx, SharedFx to rc3-24126-00, rc3-004312
2016-05-26 13:11:22 -05:00
Piotr Puszkiewicz
b303afb9bb
Remove optimizationdata subdirectory from optimizationdata path ( #3242 )
...
PR #3208 moved optimizationdata to a new root directory called optimizationdata. The leaf-node directory optimizationdata is therefore redundant.
2016-05-25 20:41:10 -07:00
Eric Erhardt
e27ef0f18c
Merge pull request #3230 from dotnet/brthor/host-out
...
Remove host + sharedfx build from CLI Repo
2016-05-25 20:02:44 -05:00
Eric Erhardt
203a9be510
Merge pull request #3229 from billwert/nuget-verbosity
...
Reduce nuget output
2016-05-25 17:16:22 -05:00
Bryan
aa01110c33
Remove The host build, consume the host build from core-setup
2016-05-25 14:49:12 -07:00
Daniel Podder
651e8c2524
perf tests: add fallback feed to dotnet restore ( #3160 )
...
The perf tests use `dotnet restore` to download test dependencies. The
perf tests' project.json may sometimes refer to a version of the
framework that is not yet published, which can cause the restore command
to fail. This change addresses the issue by adding a fallback nuget feed
that contains not-yet-published version of the framework.
2016-05-25 11:26:46 -07:00
Bill Wert
785cab3072
Reduce nuget output
...
This addresses part of #1623 . Unfortunately, because the CLI takes Nuget
as a binary, it is hard to get to where I think we should really be.
This change makes default verbosity "minimal", which is the first level
where you get any status output. Unfortunately, things like package
downgrade warnings and the like still appear there. This does hide all
the "info" and "trace" messages by default.
I also removed the now useless (and previously undocumented)
--quiet.
2016-05-24 21:34:11 -07:00
Livar
fe7b519722
Merge pull request #3215 from eerhardt/netcore-rc3
...
Upgrade to CoreFX rc3
2016-05-24 10:33:59 -07:00
Bryan Thornbury
2feda51952
Merge pull request #3208 from dotnet/brthor/3083
...
change optimization data path
2016-05-24 10:26:24 -07:00
schellap
3953a85a63
Add test for standalone resource dependency
2016-05-23 19:14:46 -07:00
Livar Cunha
a9e12e0336
Updating core packages to rc3-24123-01
2016-05-23 17:19:11 -07:00
Sridhar Periyasamy
0c463c281f
Remove '--infer-runtimes' option for 'dotnet restore' when restoring
...
TestAssets.
2016-05-23 17:04:32 -07:00
Sridhar Periyasamy
a2ef88cf86
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-23 17:04:31 -07:00
Sridhar Periyasamy
d2188cd95a
Move the CLI corefx dependencies from RC2 to RC3 - rc3-24113-00.
...
- Disable crossgen for windows.Tracked by - https://github.com/dotnet/cli/issues/3059
- And also fix #2974
2016-05-23 17:04:29 -07:00
Pavel Krymets
40a2b495ba
Merge pull request #3204 from dotnet/pakrym/dc-fixes
...
Fix dependency context merge and msbuildproject resolution
2016-05-23 16:29:58 -07:00
Bryan Thornbury
cbc4f58249
change optimization data path
2016-05-23 16:13:30 -07:00
Troy Dai
e93485916b
Eliminate response waiting period ( #3142 )
2016-05-23 14:57:33 -07:00
Pavel Krymets
79a07266c9
Fix dependency context merge and msbuildproject resolution
2016-05-23 12:26:53 -07:00
Eric Erhardt
ed7c79bb48
Merge pull request #3132 from vcsjones/fix-3084
...
Move command line parsing into try/catch for test.
2016-05-20 19:03:32 -05:00
Kevin Jones
f149fe0e47
Test cleanup. Fixes #3084 .
...
Cleanup tests.
2016-05-20 10:45:01 -04:00
Kevin Jones
99d8853ef0
Move command line parsing into try/catch for test.
...
If invalid parameters are specified in `dotnet test`, the CLI does not
catch exceptions that can be thrown such as when specifying `-r` without
a runtime.
Fixes 3084.
2016-05-20 10:00:41 -04:00
Erik Schierboom
81e9b2fe10
Add 'dotnet restore' instruction when lock file is missing
2016-05-20 09:19:05 +02:00
Bill Wert
ed3bd312cf
Fix warnings in project.json
...
PR #2493 introduced the new project.json schema. The tree has 118 files
with the old schema, which added several hundred warnings.
This change can't go in until PR #2864 does - it relies on those bug
fixes.
2016-05-19 11:51:49 -07:00
Eric Erhardt
00eb662107
Merge pull request #3122 from eerhardt/FixCITests
...
Upgrade the "dotnet-test-xunit" version to "1.0.0-rc2-192208-24"
2016-05-19 08:58:53 -05:00
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
Ajay Bhargav Baaskaran
b6e3224387
[ Fixes #2829 #2861 ] Maintain folder structure in mappings
2016-05-18 17:25:23 -07: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
eb7054c90d
Merge pull request #3013 from eerhardt/StreamForwarder
...
Console.Write() doesn't show output until a newline
2016-05-13 22:09:55 -05:00
Eric Erhardt
c84f41e749
Use Moq framework instead of a concrete class to mock ICommandFactory in dotnet-run.UnitTests.
2016-05-13 20:24:22 -05: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
Eric Erhardt
6bf59ffde6
Console.Write() doesn't show output until a newline
...
When running an app with `dotnet run`, we are redirecting the standard out and error just to print it out to our standard out and error. However, we are batching the output until we hit a newline, which isn't ideal for console apps.
To fix this, `dotnet run` no longer redirects the standard out and error.
Fix #2777
2016-05-13 09:03:35 -05:00
Sridhar Periyasamy
a6cc2b07dd
Update nuget version to 3.5.0-rc-1285
...
This is required to update the corefx dependencies from RC2 to RC3. Some
of the corefx libs have 'netstandard1.6' as TFM and this version of Nuget
supports that TFM.
Also the 'VersionRange.IncludePrerelease' has been removed from nuget and by
default 'VersionRange.Satisfies' returns true for any prerelease version.
2016-05-12 21:56:56 -07: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
Eric Erhardt
eec782a6d1
Merge pull request #2870 from dpodder/perf-test-guide
...
Add README howto for perf tests
2016-05-11 12:57:28 -05:00
Eric Erhardt
8013398def
Merge pull request #2980 from eerhardt/FixTestCommandErrors
...
dotnet test and publish failing badly when the project isn't restored.
2016-05-11 11:27:52 -05:00
Eric Erhardt
652d0541ef
dotnet test and publish failing badly when the project isn't restored.
...
Fixing this by checking for diagnostic errors before continuing.
Fix #2692
Fix #2942
2016-05-11 10:43:58 -05:00
Eric Erhardt
728575bc42
Merge pull request #2981 from eerhardt/FixBuiltInTests
...
Fix BuiltInCommandTests.
2016-05-10 22:22:20 -05:00
Eric Erhardt
d51c920da8
Fix BuiltInCommandTests.
...
I forgot to mock out the environment on one of the builtin command tests.
2016-05-10 18:46:47 -05: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
Daniel Podder
2be785c253
Add README howto for perf tests
2016-05-10 08:38:07 -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
Peter Marcu
e53acd9bba
Merge pull request #2941 from Sridhar-MS/version-suffix
...
Pass the correct version suffix in the build scripts
2016-05-08 11:31:32 -07:00
Sridhar Periyasamy
566a76e5d3
Pass the correct version suffix in the build scripts
2016-05-07 23:23:31 -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
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
Eric Erhardt
c0aeb91d61
Merge pull request #2878 from rrelyea/rrelyea/updateNugetVersions
...
Update version number of Nuget binaries to 3.5.0-beta
2016-05-04 18:04:31 -05:00
Eric Erhardt
ece4ae52b2
Merge pull request #2851 from dasMulli/bugfix/schema-upgrade-new-project-template
...
Update dotnet-new templates to new project.json schema
2016-05-04 15:51:17 -05:00
Rob Relyea
804b0eea97
Update version number of Nuget binaries to 3.5.0-beta (now w/o buildnumbers)
2016-05-04 13:14:02 -07:00
Alex Panov
0d6b3c8482
Update NuGet to 3.5.0-beta-1246
2016-05-03 17:34:46 -07:00
Piotr Puszkiewicz
3e96a05f9c
Merge pull request #2781 from dotnet/brthor/2760
...
fixes #2760
2016-05-03 15:15:42 -07:00
Piotr Puszkiewicz
99193a3a91
Merge pull request #2724 from adamgorMSFT/adamgor/telemetry-perf-improvements
...
Improving Telemetry performance
2016-05-03 15:14:58 -07:00
dasMulli
d2cedd318f
Added a test to ensure that C# projects created by dotnet-new are built without warnings.
2016-05-03 23:38:09 +02:00
Piotr Puszkiewicz
69a32cc010
Merge pull request #2653 from dotnet/piotrpMSFT/issue2584/multicoreJIT
...
Piotrp msft/issue2584/multicore jit
2016-05-03 14:15:25 -07:00
Sridhar Periyasamy
3b48b6b4e9
Merge pull request #2560 from Sridhar-MS/crossgen-tests
...
Add crossgen tests
2016-05-03 14:09:55 -07: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
Eric Erhardt
adbf30c192
Fixing GivenThatWeWantToUseDotnetTestE2EInDesignTimeForMultipleTFms to give separate paths to the TestAssetsManager.CreateTestInstance by passing in a callingMethod name.
2016-05-03 15:09:27 -05:00
Sridhar Periyasamy
51b20e89d2
Update xunit references in crossgen.Tests
2016-05-03 11:49:00 -07:00
Piotr Puszkiewicz
9f0dab1a08
PR Feedback
2016-05-03 11:38:55 -07:00
Sridhar Periyasamy
25b1f627c2
Fix 32 bit crossgen tests.
2016-05-03 11:35:17 -07:00
Sridhar Periyasamy
b567bc82c3
Add crossgen tests
...
Simple tests which does static analysis of managed assemblies metadata to
make sure that they are crossgened. Currently it verifies that all the
assemblies in CLI SDK and SharedFx directroty are crossgened.
2016-05-03 11:35:16 -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
PiotrP
44f6642116
Rebase Conflicts
2016-05-03 10:37:29 -07:00
Piotr Puszkiewicz
304434433b
Feature Complete
...
- Add remaining test scenarios
- Refactor implementation
- Add gitignore entry for optimization profiles
2016-05-03 10:36:48 -07:00
Piotr Puszkiewicz
94e620088e
Test Infrastructure Updates
...
Creates a TestDirectory abstraction under TestInstance to manage creation of test-specific working directories
Enables TestAssetManager to create TestDirectory instances
Enables fluent addition of Environment Variables to TestCommand
Adds PathUtility support for ensuring a directory exists
2016-05-03 10:36:05 -07:00
PiotrP
6c1ef959cc
WiP
2016-05-03 10:36:05 -07:00
Pavel Krymets
eb32a40ea2
Deduplicate libraries
2016-05-03 09:54:50 -07:00
Eric Erhardt
4f1dbeba0e
Merge pull request #2769 from eerhardt/FixBuiltInCommandTests
...
Fixing BuiltInCommandTests so it doesn't fail sporatically.
2016-05-03 10:31:52 -05:00
David Fowler
90bc89ed67
Fix placeholder resolution logic
2016-05-03 02:00:12 -07:00
Andrew Stanton-Nurse
08c4aae6a9
trim build dependencies from output
2016-05-02 19:51:12 -07:00
Daniel Podder
afa471cde3
Add script to run and compare CLI perf tests ( #2746 )
...
* Add script to run and compare CLI perf tests
tests/Performance/run-perftests.py is a Python3 script that fetches all
of the dependencies needed to run the perf tests in test/Performance
locally. It can run the perf tests for a single dotnet.exe, or run two
dotnet.exe instances sequentially and compare the results between them.
Basic usage for a single test:
run-perftests.py --name "runid" ...\dotnet.exe
Usage for a comparison run:
run-perftests.py --name "runid" ...\dotnet.exe --base ...\dotnet.exe
For more detailed usage:
run-perftests.py -h
* run-perftests: fix publish xunit.perf.runner.cli
The code that builds xunit-performance would skip publishing
Microsoft.DotNet.xunit.performance.runner.cli due to a bug in the
condition to check whether it was published already or not. To fix the
issue and simplify the logic, I'm making it always publish when
building the project, instead of building and publishing separately.
* run-perftests: add support for python2
* run-perftests.py: fix framework version issue
The perf test harness was failing with "stage 0" binaries due to an issue
finding the correct installed framework version. The fix is to delete the
project.lock.json followed by a dotnet restore before each run, using the
dotnet.exe that is about to be tested. (Kudos to @brianrob for the debugging
help and suggested fix!)
2016-05-02 17:07:10 -07:00
Eric Erhardt
16b996f25b
Fixing the BuiltInCommandTests to not mutate global shared state.
...
The BuiltInCommandTests sets the current Console.Out and Console.Error, which causes the test to fail if some other test is running and writes to the console at the same time.
Fix #2768
2016-05-02 19:02:22 -05: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
Ajay Bhargav Baaskaran
a4487db949
Added missed warnings for deprecated schema
2016-05-02 13:22:42 -07:00
Eric Erhardt
d52ea07934
Fixing dotnet-compile and dotnet-test unit tests. Also, fixing a potential NullRef in ProjectContext.
...
The compile unit test needed to be updated to mock out a new call to ICommand.WorkingDirectory.
The test unit test needed to account for build-base-path getting fully qualified.
2016-05-02 14:39:09 -05:00
Piotr Puszkiewicz
c907d52451
Merge pull request #2809 from eerhardt/UpdateNuGet
...
Updating NuGet references from beta to rc.
2016-05-02 11:40:10 -07:00
Troy Dai
f32683cbab
refactor WorkspaceContext ( #2736 )
...
this removes a regression in ProjectModelServer behavior
also added a test to cover target framework change in DTH
2016-05-02 11:32:24 -07:00
Pavel Krymets
dc249cb94b
Move
efs to shared runtime
2016-05-02 09:36:02 -07:00
Eric Erhardt
9d1d937ced
Updating NuGet references from beta to rc.
2016-05-02 09:29:51 -05: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
9e768d9cad
Merge pull request #2767 from dotnet/prkrishn/filesystemglobber
...
Copy FileSystemGlobbing and HashCodeCombiner sources
2016-04-29 19:57:47 -07:00
Justin Emgarten
69f1bc9937
Merge pull request #2778 from rohit21agrawal/rel/1.0.0
...
Update nuget version to 3.5.0-beta-1233
2016-04-29 19:53:48 -07:00
Pranav K
734c9fc43b
Copy FileSystemGlobbing and HashCodeCombiner sources
2016-04-29 17:55:06 -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
Rohit Agrawal
e0567e976f
Updating NuGet to version 3.5.0-beta-1233
2016-04-29 15:04:54 -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
Pranav K
944d4e543a
Merge pull request #2732 from dotnet/prkrishn/remove-cycles
...
Remove references to Microsoft.Extensions.Logging
2016-04-29 10:40:24 -07:00
Pavel Krymets
cf6fdc6dac
Merge pull request #2733 from dotnet/anurse/perf-tracing
...
Add performance tracing to dotnet cli
2016-04-29 09:45:48 -07:00
Pavel Krymets
1104e56895
Rebase
2016-04-29 09:09:23 -07:00
Andrew Stanton-Nurse
36e56e9d00
Add performance tracing
2016-04-29 08:16:37 -07:00
Pranav K
54cfe01869
Remove references to Microsoft.Extensions.Logging
2016-04-28 13:07:34 -07:00
Eric Erhardt
38d0c28a1e
Merge pull request #2700 from eerhardt/FixFilePath
...
"dotnet test project.json" fails in a directory with a test project.json in it
2016-04-28 12:32:51 -05:00
Andrew Stanton-Nurse
b98bc1289d
abort build when an unresolved dependency is found ( #2696 )
2016-04-28 10:02:05 -07:00
Pavel Krymets
f8300f8747
Merge pull request #2721 from dotnet/pakry/no-deps-yes-deps
...
Fix --no-dependencies incremental check regression
2016-04-28 08:43:59 -07:00
Eric Erhardt
e2dcb968eb
Add tests for invoking dotnet XX project.json
from in
...
a folder that contains the project.
2016-04-28 08:50:22 -05: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
Pavel Krymets
9ffa4ad399
Fix --no-dependencies incremental check regression
2016-04-27 15:29:12 -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
cdb75966eb
Remove test script
2016-04-27 08:41:22 -07:00
Pavel Krymets
0401935d31
Use performance test
2016-04-27 08:41:22 -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
5d2da26e74
Adding dotnet run tests for passing arguments to the app.
2016-04-26 19:58:41 -05:00
Brian Robbins
705a48940f
Build-Time Hello World Performance Test ( #2681 )
...
Hello world build performance benchmark.
2016-04-26 17:52:34 -07:00
Eric Erhardt
7dbf525e48
Merge pull request #2680 from eerhardt/CliEncoding
...
dotnet build fails if the directory contains unicode characters
2016-04-26 15:11:44 -05: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
Bryan Thornbury
498bd3b40f
remove test skips introduced to workaround #2536
2016-04-25 17:25:21 -07:00
Piotr Puszkiewicz
7e0714d781
Merge pull request #2586 from Sridhar-MS/binding-redirects
...
Generate binding redirects for all executable package dependencies.
2016-04-25 17:04:19 -07:00
Andrew Stanton-Nurse
a729b97b35
align code in dotnet-run ( #2679 )
...
we used to use different code when --framework was specified than when it was not specified, this synchronizes them to use the same code path which removes a hidden NullRef
also adds tests to cover both cases
2016-04-25 13:53:02 -07: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
c1fbf18059
Disable test due to issue - https://github.com/dotnet/cli/issues/2632
...
Also fix code where the tests were not getting run.
2016-04-25 11:06:14 -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
4974df41ee
Merge pull request #2527 from dotnet/prkrishn/run-all-the-tests
...
Modify dotnet-test to run testRunner for all tfms
2016-04-24 21:51:57 -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
Rohit Agrawal
7509e4d175
Update nuget version to 3.5.0-beta-1199
2016-04-22 15:27:00 -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
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
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
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
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
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
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
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
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
Jonathan Miller
18ae4d4791
Merge pull request #2538 from sokket/nrefix
...
Fixing #2480 to produce an InvalidProjectException for invalid projects
2016-04-18 13:57:57 -07:00
Bryan Thornbury
3fa70112da
Fixes #2512
...
add tests for the projectdependenciescommandfactor
Add a test variation to test overriding the configuration provided in the constructor
update test asset name
2016-04-18 13:47:50 -07:00
Eric Erhardt
c9bee8a64f
Merge pull request #2550 from eerhardt/UpdateDependencies20160418052316
...
Updating CoreFx to rc2-24018
2016-04-18 15:12:57 -05:00
Jonathan Miller
a71e4a5128
Fixing #2480 to produce an InvalidProjectException when attempting to publish a
...
project folder that does not contain a project.json file
2016-04-18 11:25:54 -07:00
eerhardt
eb4952df27
Updating CoreFx to rc2-24018
2016-04-18 05:23:16 +00:00
Eric Erhardt
6afc2ca813
Invoke compile-csc in-proc
...
Since processes are expensive, suppress spawning a new process when dotnet-compile is invoking dotnet-compile-csc.
2016-04-16 00:28:57 -05: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
Joel Verhagen
fbe5a23318
Take the latest NuGet build
2016-04-15 12:37:45 -07:00
eerhardt
070650ebac
Updating CoreFx to rc2-24015
2016-04-15 05:25:53 +00:00
Eric Erhardt
880dcf2fc8
Merge pull request #2345 from dotnet/anurse/update-nuget
...
update nuget to 1160
2016-04-13 21:47:26 -05:00
Andrew Stanton-Nurse
71d5738fff
re-restore test projects at their destination
...
since NuGet now stores the relative path to dependent projects in the lock file, projects need to be restored when they are moved
2016-04-13 17:56:51 -07:00
Andrew Stanton-Nurse
2956446864
update nuget to 1160
2016-04-13 17:56:50 -07:00
Eric Erhardt
deef7f867f
Fix PublishTestAppWithContentPackage test to work on all platforms.
2016-04-13 18:38:15 -05:00
Eric Erhardt
f6f1a52ec4
Add publish test for an app with a dependency with contents.
2016-04-13 17:25:34 -05:00
Pavel Krymets
bde7d72b8f
Merge pull request #2401 from dotnet/pakrym/lib-runtime-config
...
Do not generate and pack runtime config for libraries
2016-04-12 21:01:03 -07:00
Pavel Krymets
f4b1a400f6
Do not generate and pack runtime config for libraries
2016-04-12 19:18:58 -07:00
Pavel Krymets
482f36d26b
Merge pull request #2371 from dotnet/pakrym/low-fat
...
Make desktop publishing "half-portable" by default
2016-04-12 19:13:34 -07:00
Troy Dai
065e8352fc
Merge pull request #2441 from dotnet/troy/2420
...
Send DependencyDiagnostics after Dependencies message
2016-04-12 16:30:27 -07: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
Pavel Krymets
af53b02c13
Fix project.json merge issue
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
Pavel Krymets
6184943910
Merge pull request #2437 from dotnet/pakrym/publish-base-path
...
Fix publish when build was ran using build-base-path
2016-04-12 15:42:58 -07:00
Troy Dai
20c24a0b36
Send DependencyDiagnostics after Dependencies message
2016-04-12 14:32:45 -07:00
Pavel Krymets
cf0673333d
Fix publish when build was ran using build-base-path
2016-04-12 13:30:18 -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
Bryan Thornbury
d3d64a4033
fix the race condition when generating deps.json, and add some coverage of this scenario
...
update reporter to verbose
fix
fix usings for test
update the test
2016-04-08 18:16:49 -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
3d157d0ec8
Merge pull request #2363 from dotnet/troy/2344
...
Stop adding default desktop assembly reference repeatedly.
2016-04-08 15:25:39 -07:00
Sridhar Periyasamy
3af38bf0fe
Merge pull request #2378 from Sridhar-MS/kestrel-fix
...
Increasing timeout to check Kestrel Server is up.
2016-04-08 14:30:08 -07:00
Pawel Kadluczka
44be0cb3c0
Merge pull request #2358 from dotnet/pawelka/outname_pack
...
Enabling creating packages with different names than target libraries
2016-04-08 14:24:29 -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