Updated the dotnet CLI workaround for enabling standalone or portable apps to run in Nano

This commit is contained in:
Kiran Challa 2016-06-13 12:37:24 -07:00
parent 0f79bff98b
commit c72f8ac8bb
1 changed files with 4 additions and 3 deletions

View File

@ -28,14 +28,15 @@ param(
Write-Host "Executing the start server script on machine '$serverName'" Write-Host "Executing the start server script on machine '$serverName'"
Write-Host "Copying shell32.dll as a temporary workaround for issue https://github.com/dotnet/cli/issues/2967" $forwarders="C:\Windows\System32\forwarders"
Write-Host "Copying all content under '$forwarders' as a temporary workaround for issue https://github.com/dotnet/cli/issues/2967"
if ($executablePath -eq "dotnet.exe") if ($executablePath -eq "dotnet.exe")
{ {
Copy-Item C:\Windows\System32\forwarders\shell32.dll $dotnetRuntimePath Copy-Item $forwarders\* $dotnetRuntimePath
} }
else else
{ {
Copy-Item C:\Windows\System32\forwarders\shell32.dll $deployedFolderPath Copy-Item $forwarders\* $deployedFolderPath
} }
if ($serverType -eq "IIS") if ($serverType -eq "IIS")