Tag: offline

Visual Studio 2017无法脱机安装“无法下载安装文件”

所以我使用以下命令在笔记本电脑上创建了VS 2017社区的离线安装: vs_community.exe –layout“D:\ Downloads \ VS Community 2017”–lang en-US –add Microsoft.VisualStudio.Component.CoreEditor Component.WebSocket Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCrossPlat Microsoft .VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.Node Microsoft.VisualStudio.Component.TypeScript.2.0 当我将安装文件传输到我的公司PC(位于防火墙后面)并运行“vs_community.exe”安装文件时,我得到的就是这个错误。 没有办法绕过公司防火墙或做出例外。 如何离线安装VS 2017? 我在这里错过了什么吗? 编辑:我在我的笔记本电脑上安装了VS 2017,保持互联网连接有效。 然后,当我在笔记本电脑上断开互联网并再次尝试安装时,安装程​​序启动! 那么,我公司的PC上可能还有一些依赖项现在安装在我的笔记本电脑上? 编辑:上面的命令安装.NET,.NET核心,Xamarin,Node.js,TypeScript和C ++ for Mobile。 总下载大小为13.2 GB。

.NET自动生成的Web服务客户端:如何避免从w3.org请求架构?

我有一个.NET Web服务客户端,它使用wsdl.exe工具从wsdl文件自动生成。 当我第一次实例化生成的类时,它开始从w3.org和其他人那里请求一堆文档。 第一个是http://www.w3.org/2001/XMLSchema.dtd 除了不想给w3.org带来不必要的流量之外,我还需要能够在没有连接到Internet的情况下运行应用程序(Web服务是“Intra-web-service”)。 有人知道解决方案吗? 如果它有帮助,这是我没有互联网时得到的堆栈跟踪: “An error has occurred while opening external DTD ‘http://www.w3.org/2001/XMLSchema.dtd’: The remote name could not be resolved: ‘www.w3.org'” at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri) at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) at System.Xml.XmlTextReaderImpl.Throw(Exception e) at […]