Commit graph

3075 commits

Author SHA1 Message Date
Eric Erhardt
a4cef6d367 Updating NuGet to beta2-1484 2016-06-14 03:19:04 -05:00
Eric Erhardt
1a9b16a1ad Adding dotnet-core feed to the NuGet.config since that has the stable versions of the .NET runtime. 2016-06-14 03:17:12 -05:00
Eric Erhardt
f25f047376 Updating CoreFX, CoreCLR, Roslyn, CoreSetup to stable versions. 2016-06-14 03:14:53 -05:00
Eric Erhardt
dfe99ca45d Port https://github.com/dotnet/core-setup/pull/159 to CLI 2016-06-14 03:03:55 -05:00
Bryan Thornbury
18c8a2724a Merge pull request #3535 from brthor/brthor/reenabledeb
reenable deb publishing
2016-06-13 18:12:28 -07:00
Eric StJohn
8e67d483b7 Merge pull request #3541 from ericstj/fixAVInterference
Remove File.Copy optimization during expansion
2016-06-13 16:57:16 -07: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
Bryan Thornbury
42e890db79 reenable deb 2016-06-13 10:49:24 -07:00
Livar
9f2bb66198 Merge pull request #3485 from livarcocc/offline
Offline feature work
2016-06-12 00:58:26 -07:00
Eric Erhardt
b201b8d97f Merge pull request #3524 from dotnet/eerhardt-patch-1
System.Private.CoreLib.dll IL binary is getting crossgen'd mistakenly.
2016-06-11 19:59:17 -05:00
Eric Erhardt
d386ca2c23 Merge pull request #3516 from brthor/brthor/fix-msi-reg
fix reg key in cli msi
2016-06-11 15:47:33 -05:00
Eric Erhardt
cc3d19463d Merge pull request #3523 from eerhardt/NewNuGet
Update NuGet to 3.5.0-beta2-1480
2016-06-11 13:06:17 -05:00
Eric Erhardt
3c5e51adb2 System.Private.CoreLib.dll IL binary is getting crossgen'd mistakenly.
This causes both the IL ".dll" and the native image "ni.dll" to be the same size in the Shared Framework. This is incorrect, as the IL binary is much smaller.

The fix is to add ".dll" to the excludedLibraries list in the Crossgen util.

Fix #3522
2016-06-11 12:36:00 -05: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
686e09d5e9 Removed the CompileCliSdkAndGenerateNuGetPackagesArchive method from CompileTargets and replaced with CompileCliSDk. Also used stage1 to generate the archive for stage2. 2016-06-10 19:52:37 -07: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
Eric Erhardt
ec02de828e Merge pull request #3514 from eerhardt/PortUri
Porting @svick's fix to change a hard-coded URL to a redirect link.
2016-06-10 19:01:14 -05: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
Bryan Thornbury
19c905d223 fix reg key in cli msi 2016-06-10 16:37:09 -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
Bryan Thornbury
a3447617f9 Merge pull request #3464 from brthor/brthor/3400
update product monikers from rc2
2016-06-10 14:33:36 -07: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
Josh Free
fa3c8bc8a4 Merge pull request #3493 from eerhardt/UpdateDependencies20160610030530
Updating CoreFx, CoreClr, CoreSetup to rc3-24210-06, rc3-24210-01, rc3-3004449-00 respectively
2016-06-10 09:27:44 -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
3550b04f2e Merge pull request #3491 from eerhardt/FixVersionRepoUpdater
Fix the VersionRepoUpdater to handle symbols.nupkg files correctly.
2016-06-10 10:01:17 -05: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
dc8f59e29b Fix the VersionRepoUpdater to handle symbols.nupkg files correctly. 2016-06-10 03:16:25 -05:00