Commit graph

1464 commits

Author SHA1 Message Date
Eric Erhardt
f25f047376 Updating CoreFX, CoreCLR, Roslyn, CoreSetup to stable versions. 2016-06-14 03:14:53 -05:00
Eric St. John
5790182727 Remove File.Copy optimization during expansion
Previously we'd keep track of any file that we extracted once and try
to reuse that file (by copying it) if we needed the same file later at a
different destination.  The reason was that it's theoretically faster to
a file copy than a createfile and write, since the copy can happen
entirely in the kernel.  In practice we were foiled by AV scanners.

This happens to be the only time during extraction where we let a file
close after writing it and then try and use it again.  Sure enough on
fast machines we were seeing that as soon as we closed it MsMpEng would
map the file for exclusive access causing our copy to fail with a
sharing violation.

To fix this, I've removed the copy optimization and will just copy the
file from the in-memory archive every time.
2016-06-13 14:06:05 -07: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
Eric Erhardt
99c32422b8 Update Microsoft.DiaSymReader to 1.0.8-rc2-60610-01 2016-06-10 23:33:34 -05: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
Livar Cunha
d8c590e4ce When creating the handle to the in progress sentinel, it was failing because the nuget cache folder did not exist yet. Which translated to us understanding that a first time experience was already running. Now, before creating the handle, we check if the nuget folder exists, if it doesn't, we create it, instead of waiting for nuget to do that during restore. 2016-06-10 18:17:32 -07: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
Eric St. John
2b427bf7db Add copyright headers and cleanup
Added copyright headers to all the 'dotnet' code and cleaned up to match
repo style guidelines.
2016-06-10 17:07:25 -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
Eric St. John
4d631cc1b1 Update dest path & fix race reporting progress
Renaming destinationPath to destinationRelativePath for clarity.  This
string represents the path relative to the extract directory to which
files will be written.

We were missing an Interlocked.Increment during a parallel operation.
2016-06-10 16:54:34 -07:00
Livar Cunha
bcadd6ff01 Fixing identation and spaces in a few files. 2016-06-10 16:54:31 -07:00
Bryan Thornbury
f27330a09b Revert "move all version suffixes to preview3 and rc4"
This reverts commit 35432bcb4a32ddd6b672f86b206e2b1933eff035.
2016-06-10 16:54:19 -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
5f220a1677 Generating the archive in the sdk folder of stage2. 2016-06-10 16:54:14 -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
Eric St. John
8db7c1c4fb Add dotnet-archive application 2016-06-10 16:54:05 -07:00
Eric St. John
4949cedcc2 Fix progress for decompression 2016-06-10 16:54:04 -07:00
Eric St. John
e34d988f54 Clean up usings 2016-06-10 16:54:01 -07:00
Eric St. John
40bf17900a Add IndexedArchive
This type will archive multiple files de-duplicated in a zip with a
central manifest that describes how to recreate the actual layout.
In addition, any other zip file will be expanded and deduplicated
so that we can further reduce the size of those zips/nupkgs.
All of these are placed in a zip with no-compression, essentially
using the zip as only a container.  We then LZMA compress that
container to achieve maximum compression.
2016-06-10 16:54:00 -07:00
Eric St. John
e8a65dd546 Port LZMA SDK to .NETStandard1.0 as library
We're builiding a library and don't need the application-related source
so I've removed this in addition to fixing the source to compile as
NETStandard1.0.
2016-06-10 16:53:59 -07:00
Eric St. John
1cfdb41cef Initial commit of LZMA SDK
This is a direct copy of the CS folder from the 16.02 SDK package.

I've added a README to indicate where this code came from.
2016-06-10 16:53:58 -07:00
Bryan Thornbury
32962a14e2 move all version suffixes to preview3 and rc4 2016-06-10 16:53:57 -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
Eric Erhardt
4293d05571 Porting @svick's fix to change a hard-coded URL to a redirect link. 2016-06-10 17:51:50 -05:00
Rob Relyea
c39fbd37d3 Merge pull request #3492 from dotnet/toddmosc/serviceable-p2
Removing the nuspec schema change used for adding the serviceable tag.
2016-06-10 10:04:16 -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
Todd Moscinski
013fa1b8c0 Removing the nuspec schema change used for adding the serviceable tag. 2016-06-10 07:51:10 -07: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
Ajay Bhargav Baaskaran
1d44105b4b [Fixes #3421] Made dotnet new templates generate portable pdbs 2016-06-09 12:05:54 -07:00
Lee Coward
cbf5f1ef65 Merge pull request #3458 from blackdwarf/prev2templates
Add new templates for C# to dotnet new
2016-06-09 10:17:26 -07:00
Zlatko Knezevic
4b1735bdaf Fixing F# template project.json
Two changes:
1. Moving from netstandard1.5 to netcoreapp1.0
2. Fixing the version of F# netcore package
2016-06-09 08:17:45 -07:00
Zlatko Knezevic
85e4ed2b74 Responding to PR feedback 2016-06-09 08:06:38 -07:00
Zlatko Knezevic
c066ef1540 Add C# Lib and xunittest templates
Adding the C# lib and xunittest templates to `dotnet new`. These need
to be invoked with the `dotnet new -t lib` and `dotnet new -t
xunittest` keywords respectively.
2016-06-09 08:06:03 -07: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
Ajay Bhargav Baaskaran
3c9f8dd99b Merge pull request #3426 from dotnet/ajbaaska/dotnet-new-web2
Added a web template to dotnet new
2016-06-08 12:45:49 -07:00
Ajay Bhargav Baaskaran
4a88cff185 [Fixes #3255] Added a web template to dotnet new 2016-06-08 11:31:08 -07:00
Eric Erhardt
71d39a4a19 Update Microsoft.DiaSymReader.Native to 1.4.0-rc2 2016-06-08 12:01:35 -05: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