Skip to content

Commit a89847f

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents a68f2c1 + 7613b7e commit a89847f

File tree

8 files changed

+68
-40
lines changed

8 files changed

+68
-40
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Please log a new issue in the appropriate GitHub repo. Here are some of the most
1717
* [MVC](https://github.com/aspnet/Mvc)
1818
* [SignalR-Server](https://github.com/aspnet/SignalR-Server)
1919

20-
A description of all the repos is [here](https://github.com/aspnet/Home/wiki/Repo-List).
20+
Or browse the full list of repos in the [aspnet](https://github.com/aspnet/) organization.
2121

2222

2323
## Other discussions
2424
Our team members also monitor several other discussion forums:
2525

26-
* [ASP.NET vNext forum](http://forums.asp.net/1255.aspx/1?ASP+NET+vNext)
27-
* [StackOverflow](http://stackoverflow.com/questions/tagged/asp.net-vnext) with the `asp.net-vnext` or `entity-framework-7` tag
26+
* [ASP.NET 5 forum](http://forums.asp.net/1255.aspx/1?ASP+NET+5)
27+
* [StackOverflow](http://stackoverflow.com/questions/tagged/asp.net-5) with the `asp.net-5` or `entity-framework-7` tag
2828
* [JabbR chat room](https://jabbr.net/#/rooms/aspnetvnext) for real-time discussions with the community and the people who work on the project
2929

3030

@@ -45,7 +45,7 @@ GitHub supports [markdown](http://github.github.com/github-flavored-markdown/),
4545

4646

4747
## Contributing code and content
48-
You will need to sign a [Contributor License Agreement](https://cla.msopentech.com) before submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to submit a request via the form and then electronically sign the Contributor License Agreement when you receive the email containing the link to the document. This needs to only be done once for any Microsoft Open Technologies OSS project.
48+
You will need to sign a [Contributor License Agreement](https://cla2.dotnetfoundation.org/) before submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to submit a request via the form and then electronically sign the Contributor License Agreement when you receive the email containing the link to the document. This needs to only be done once for any .NET Foundation OSS project.
4949

5050
Make sure you can build the code. Familiarize yourself with the project workflow and our coding conventions. If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests.
5151

GettingStartedDeb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To get these builds you need to run:
6969
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
7070
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
7171
sudo apt-get update
72-
sudo apt-get install Mono-Complete
72+
sudo apt-get install mono-complete
7373
```
7474

7575
### Get libuv

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,21 @@ brew tap aspnet/dnx
4747
brew update
4848
brew install dnvm
4949
```
50+
51+
Add dnvm to your bash profile (./bash_profile)
52+
```bash
53+
source dnvm
54+
```
55+
56+
5057
Note that on Windows the .NET Framework is already installed, whereas on OS X the brew formula uses a particular version of [Mono](http://www.mono-project.com/) that we know works with ASP.NET 5.
5158

59+
To verify that everything works run the `dnvm` command.
60+
61+
Should that fail, for example with `-bash: dnvm: command not found`, run the command `source dnvm.sh`. This means that `dnvm` will be available in this session.
62+
63+
To make sure `dnvm` is available for *every* session, add the command to your `~/.bashrc` with the following command `echo "source dnvm.sh" >> ~/.bashrc`.
64+
5265
## Linux
5366

5467
* [Debian, Ubuntu and derivatives see here](GettingStartedDeb.md)
@@ -74,7 +87,7 @@ You should also be able to run `dnx` and see the help text of the `dnx` command.
7487
2. Change directory to the folder of the sample you want to run
7588
3. Run ```dnu restore``` to restore the packages required by that sample.
7689
4. You should see a bunch of output as all the dependencies of the app are downloaded from MyGet.
77-
5. Run the sample using the appropriate K command:
90+
5. Run the sample using the appropriate DNX command:
7891
- For the console app run `dnx . run`.
7992
- For the web apps run `dnx . web` on Windows or `dnx . kestrel` on OS X/Linux.
8093
6. You should see the output of the console app or a message that says the site is now started.
@@ -110,5 +123,5 @@ A description of all the repos is [here](https://github.com/aspnet/Home/wiki/Rep
110123

111124
# Feedback
112125

113-
Check out the [contributing](https://github.com/aspnet/Home/blob/release/CONTRIBUTING.md) page to see the best places to log issues and start discussions.
126+
Check out the [contributing](CONTRIBUTING.md) page to see the best places to log issues and start discussions.
114127

dnvm.ps1

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 3
1+
#Requires -Version 2
22

33
if (Test-Path env:WEBSITE_SITE_NAME)
44
{
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="beta5-10374"
70+
$BuildVersion="beta6-10383"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -86,7 +86,7 @@ Set-Variable -Option Constant "OldUserDirectoryNames" @(".kre", ".k")
8686
Set-Variable -Option Constant "RuntimePackageName" "dnx"
8787
Set-Variable -Option Constant "DefaultFeed" "https://www.nuget.org/api/v2"
8888
Set-Variable -Option Constant "DefaultUnstableFeed" "https://www.myget.org/F/aspnetvnext/api/v2"
89-
Set-Variable -Option Constant "CrossGenCommand" "k-crossgen"
89+
Set-Variable -Option Constant "CrossGenCommand" "dnx-crossgen"
9090
Set-Variable -Option Constant "CommandPrefix" "dnvm-"
9191
Set-Variable -Option Constant "DefaultArchitecture" "x86"
9292
Set-Variable -Option Constant "DefaultRuntime" "clr"
@@ -252,7 +252,7 @@ function Safe-Filecopy {
252252
}
253253

254254
function GetArch($Architecture, $FallBackArch = $DefaultArchitecture) {
255-
if(![String]::IsNullOrWhiteSpace($Architecture)) {
255+
if(![String]::IsNullOrEmpty($Architecture)) {
256256
$Architecture
257257
} elseif($CompatArch) {
258258
$CompatArch
@@ -262,7 +262,7 @@ function GetArch($Architecture, $FallBackArch = $DefaultArchitecture) {
262262
}
263263

264264
function GetRuntime($Runtime) {
265-
if(![String]::IsNullOrWhiteSpace($Runtime)) {
265+
if(![String]::IsNullOrEmpty($Runtime)) {
266266
$Runtime
267267
} else {
268268
$DefaultRuntime
@@ -560,7 +560,7 @@ function Download-Package(
560560
}
561561
}
562562

563-
Write-Progress -Activity ("Downloading $RuntimeShortFriendlyName from $url") -Id 2 -ParentId 1 -Completed
563+
Write-Progress -Status "Done" -Activity ("Downloading $RuntimeShortFriendlyName from $url") -Id 2 -ParentId 1 -Completed
564564
}
565565
finally {
566566
Remove-Variable downloadData -Scope "Global"
@@ -632,10 +632,10 @@ function Change-Path() {
632632

633633
$newPath = $prependPath
634634
foreach($portion in $existingPaths.Split(';')) {
635-
if(![string]::IsNullOrWhiteSpace($portion)) {
635+
if(![string]::IsNullOrEmpty($portion)) {
636636
$skip = $portion -eq ""
637637
foreach($removePath in $removePaths) {
638-
if(![string]::IsNullOrWhiteSpace($removePath)) {
638+
if(![string]::IsNullOrEmpty($removePath)) {
639639
$removePrefix = if($removePath.EndsWith("\")) { $removePath } else { "$removePath\" }
640640

641641
if ($removePath -and (($portion -eq $removePath) -or ($portion.StartsWith($removePrefix)))) {
@@ -645,7 +645,7 @@ function Change-Path() {
645645
}
646646
}
647647
if (!$skip) {
648-
if(![String]::IsNullOrWhiteSpace($newPath)) {
648+
if(![String]::IsNullOrEmpty($newPath)) {
649649
$newPath += ";"
650650
}
651651
$newPath += $portion
@@ -751,8 +751,8 @@ function dnvm-help {
751751
$Script:ExitCodes = $ExitCodes.UnknownCommand
752752
return
753753
}
754-
$help = Get-Help "dnvm-$Command"
755-
if($PassThru) {
754+
$help = Get-Help "dnvm-$Command" -ShowWindow:$false
755+
if($PassThru -Or $Host.Version.Major -lt 3) {
756756
$help
757757
} else {
758758
_WriteOut -ForegroundColor $ColorScheme.Help_Header "$CommandName $Command"
@@ -833,7 +833,7 @@ function dnvm-help {
833833
_WriteOut -ForegroundColor $ColorScheme.Help_Header "commands: "
834834
Get-Command "$CommandPrefix*" |
835835
ForEach-Object {
836-
$h = Get-Help $_.Name
836+
$h = Get-Help $_.Name -ShowWindow:$false
837837
$name = $_.Name.Substring($CommandPrefix.Length)
838838
if($DeprecatedCommands -notcontains $name) {
839839
_WriteOut -NoNewLine " "
@@ -1084,7 +1084,7 @@ function dnvm-install {
10841084
}
10851085

10861086
if ($VersionNuPkgOrAlias -eq "latest") {
1087-
Write-Progress -Activity "Installing runtime" "Determining latest runtime" -Id 1
1087+
Write-Progress -Status "Determining Latest Runtime" -Activity "Installing runtime" -Id 1
10881088
$VersionNuPkgOrAlias = Find-Latest $Runtime $Architecture -Feed:$selectedFeed
10891089
}
10901090

@@ -1094,7 +1094,7 @@ function dnvm-install {
10941094
if(!(Test-Path $VersionNuPkgOrAlias)) {
10951095
throw "Unable to locate package file: '$VersionNuPkgOrAlias'"
10961096
}
1097-
Write-Progress -Activity "Installing runtime" "Parsing package file name" -Id 1
1097+
Write-Progress -Activity "Installing runtime" -Status "Parsing package file name" -Id 1
10981098
$runtimeFullName = [System.IO.Path]::GetFileNameWithoutExtension($VersionNuPkgOrAlias)
10991099
$Architecture = Get-PackageArch $runtimeFullName
11001100
$Runtime = Get-PackageRuntime $runtimeFullName
@@ -1134,34 +1134,37 @@ function dnvm-install {
11341134
New-Item -Type Directory $UnpackFolder | Out-Null
11351135

11361136
if($IsNuPkg) {
1137-
Write-Progress -Activity "Installing runtime" "Copying package" -Id 1
1137+
Write-Progress -Activity "Installing runtime" -Status "Copying package" -Id 1
11381138
_WriteDebug "Copying local nupkg $VersionNuPkgOrAlias to $DownloadFile"
11391139
Copy-Item $VersionNuPkgOrAlias $DownloadFile
11401140
} else {
11411141
# Download the package
1142-
Write-Progress -Activity "Installing runtime" "Downloading runtime" -Id 1
1142+
Write-Progress -Activity "Installing runtime" -Status "Downloading runtime" -Id 1
11431143
_WriteDebug "Downloading version $VersionNuPkgOrAlias to $DownloadFile"
11441144

11451145
Download-Package $PackageVersion $Architecture $Runtime $DownloadFile -Proxy:$Proxy -Feed:$selectedFeed
11461146
}
11471147

1148-
Write-Progress -Activity "Installing runtime" "Unpacking runtime" -Id 1
1148+
Write-Progress -Activity "Installing runtime" -Status "Unpacking runtime" -Id 1
11491149
Unpack-Package $DownloadFile $UnpackFolder
11501150

1151-
New-Item -Type Directory $RuntimeFolder -Force | Out-Null
1152-
_WriteOut "Installing to $RuntimeFolder"
1153-
_WriteDebug "Moving package contents to $RuntimeFolder"
1154-
Move-Item "$UnpackFolder\*" $RuntimeFolder
1155-
_WriteDebug "Cleaning temporary directory $UnpackFolder"
1156-
Remove-Item $UnpackFolder -Force | Out-Null
1151+
if(Test-Path $RuntimeFolder) {
1152+
# Ensure the runtime hasn't been installed in the time it took to download the package.
1153+
_WriteOut "'$runtimeFullName' is already installed."
1154+
}
1155+
else {
1156+
_WriteOut "Installing to $RuntimeFolder"
1157+
_WriteDebug "Moving package contents to $RuntimeFolder"
1158+
Move-Item $UnpackFolder $RuntimeFolder
1159+
}
11571160

11581161
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
11591162

11601163
if ($Runtime -eq "clr") {
11611164
if (-not $NoNative) {
11621165
if ((Is-Elevated) -or $Ngen) {
11631166
$runtimeBin = Get-RuntimePath $runtimeFullName
1164-
Write-Progress -Activity "Installing runtime" "Generating runtime native images" -Id 1
1167+
Write-Progress -Activity "Installing runtime" -Status "Generating runtime native images" -Id 1
11651168
Ngen-Library $runtimeBin $Architecture
11661169
}
11671170
else {
@@ -1175,7 +1178,7 @@ function dnvm-install {
11751178
}
11761179
else {
11771180
_WriteOut "Compiling native images for $runtimeFullName to improve startup performance..."
1178-
Write-Progress -Activity "Installing runtime" "Generating runtime native images" -Id 1
1181+
Write-Progress -Activity "Installing runtime" -Status "Generating runtime native images" -Id 1
11791182
if ($DebugPreference -eq 'SilentlyContinue') {
11801183
Start-Process $CrossGenCommand -Wait -WindowStyle Hidden
11811184
}
@@ -1195,7 +1198,7 @@ function dnvm-install {
11951198
dnvm-alias $Alias $PackageVersion -Architecture:$Architecture -Runtime:$Runtime
11961199
}
11971200

1198-
Write-Progress -Activity "Install complete" -Id 1 -Complete
1201+
Write-Progress -Status "Done" -Activity "Install complete" -Id 1 -Complete
11991202
}
12001203

12011204

@@ -1428,7 +1431,11 @@ if(!$cmd) {
14281431
try {
14291432
if(Get-Command -Name "$CommandPrefix$cmd" -ErrorAction SilentlyContinue) {
14301433
_WriteDebug "& dnvm-$cmd $cmdargs"
1431-
& "dnvm-$cmd" @cmdargs
1434+
if($host.Version.Major -lt 3) {
1435+
Invoke-Command ([ScriptBlock]::Create("dnvm-$cmd $cmdargs"))
1436+
} else {
1437+
& "dnvm-$cmd" @cmdargs
1438+
}
14321439
}
14331440
else {
14341441
_WriteOut "Unknown command: '$cmd'"

dnvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Source this file from your .bash-profile or script to use
33

44
# "Constants"
5-
_DNVM_BUILDNUMBER="beta5-10374"
5+
_DNVM_BUILDNUMBER="beta6-10383"
66
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
77
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
88
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"

dnvminstall.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
$tempPath = Join-Path $env:TEMP "dnvminstall"
2-
$kvmPs1Path = Join-Path $tempPath "dnvm.ps1"
3-
$kvmCmdPath = Join-Path $tempPath "dnvm.cmd"
2+
$dnvmPs1Path = Join-Path $tempPath "dnvm.ps1"
3+
$dnvmCmdPath = Join-Path $tempPath "dnvm.cmd"
44

55
Write-Host "Using temporary directory: $tempPath"
66
if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
77

88

99
$webClient = New-Object System.Net.WebClient
1010
Write-Host "Downloading DNVM.ps1 to $dnvmPs1Path"
11-
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1', $kvmPs1Path)
11+
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1', $dnvmPs1Path)
1212
Write-Host "Downloading DNVM.cmd to $dnvmCmdPath"
13-
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.cmd', $kvmCmdPath)
13+
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.cmd', $dnvmCmdPath)
1414
Write-Host "Installing DNVM"
15-
& $kvmCmdPath setup
15+
& $dnvmCmdPath setup

samples/1.0.0-beta4/global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "1.0.0-beta4"
4+
}
5+
}

samples/latest/global.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

0 commit comments

Comments
 (0)