Информация об изменениях

Сообщение Сборка roslyn от 07.05.2018 21:09

Изменено 08.05.2018 16:28 VladD2

Сборка roslyn
Попытался скачать Roslyn и собрать. Но при запуске Restore.cmd летят исключения и т.п.

Это Роскомнадзор и https://dotnetcli.azureedge.net на всякий пожарный забанил?

Кто нибудь знает, как собрать Розлин в данных условиях?

C:\roslyn>Restore.cmd
Repo Dir C:\roslyn
Binaries Dir C:\roslyn\Binaries
Downloading CLI 2.1.300-preview2-008324
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-sdk-2.1.300-preview2-008324-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-sdk-2.1.300-preview2-008324-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip
Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip."
System.Management.Automation.MethodInvocationException: Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip." ---> System.Management.Automation.RuntimeException: Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip. ---> System.Management.Automation.RuntimeException: Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip.
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.<>c__DisplayClass57_0.<InvokeWithPipe>b__0()
   at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.DoInvoke(Object dollarUnder, Object input, Object[] args)
   at CallSite.Target(Closure , CallSite , ScriptBlock )
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at Invoke-With-Retry, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 110
at GetHTTPResponse, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 166
at DownloadFile, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 430
at <ScriptBlock>, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 499
at <ScriptBlock>, C:\roslyn\build\scripts\build-utils.ps1: line 153
at Exec-Block, C:\roslyn\build\scripts\build-utils.ps1: line 20
at Ensure-DotnetSdk, C:\roslyn\build\scripts\build-utils.ps1: line 153
at Ensure-MSBuild, C:\roslyn\build\scripts\build-utils.ps1: line 196
at <ScriptBlock>, C:\roslyn\build\scripts\build.ps1: line 717
Сборка roslyn
Попытался скачать Roslyn и собрать. Но при запуске Restore.cmd летят исключения и т.п.

Это Роскомнадзор и https://dotnetcli.azureedge.net на всякий пожарный забанил?

Кто нибудь знает, как собрать Розлин в данных условиях?

Добавлено. VPN запрещен политикой безопасности. Так что этот путь не катит. Еще идеи есть?

C:\roslyn>Restore.cmd
Repo Dir C:\roslyn
Binaries Dir C:\roslyn\Binaries
Downloading CLI 2.1.300-preview2-008324
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-sdk-2.1.300-preview2-008324-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-sdk-2.1.300-preview2-008324-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip
Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip."
System.Management.Automation.MethodInvocationException: Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip." ---> System.Management.Automation.RuntimeException: Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip. ---> System.Management.Automation.RuntimeException: Failed to download https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-preview2-008324/dotnet-dev-win-x64.2.1.300-preview2-008324.zip.
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.<>c__DisplayClass57_0.<InvokeWithPipe>b__0()
   at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.DoInvoke(Object dollarUnder, Object input, Object[] args)
   at CallSite.Target(Closure , CallSite , ScriptBlock )
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at Invoke-With-Retry, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 110
at GetHTTPResponse, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 166
at DownloadFile, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 430
at <ScriptBlock>, C:\roslyn\Binaries\Tools\dotnet-install.ps1: line 499
at <ScriptBlock>, C:\roslyn\build\scripts\build-utils.ps1: line 153
at Exec-Block, C:\roslyn\build\scripts\build-utils.ps1: line 20
at Ensure-DotnetSdk, C:\roslyn\build\scripts\build-utils.ps1: line 153
at Ensure-MSBuild, C:\roslyn\build\scripts\build-utils.ps1: line 196
at <ScriptBlock>, C:\roslyn\build\scripts\build.ps1: line 717