我已经在我的一台机器上使用Windows 7,SP 1下载了Visual Studio 2017,并且在某些时候安装失败了.安装Windows 10 SDK时出错.据微软网站称,这是一个错误,解决方案是单独下载Windows 10 SDK并安装它.
现在当我这样做时,在第一次运行VS时,我得到了下一个错误:
'ExtensionManagerPackage'包未正确加载...重新启动Visual Studio可以帮助解决此问题.
建议重新启动并没有改变任何东西.
在启动时出现了这样的错误(包相关的错误).现在我正在重新安装,并将尝试选择不同的工作负载,看看是否每个工作负载都会发生这种情况......
如果重要的话,我已经安装了通用Windows平台开发,.NET桌面开发和带有C++工作负载的Windows桌面开发.
这是我从ActivityLog.xml文件(位于VisualStudio\15.0_0b1e9ecf \文件夹中)获得的:
包的SetSite失败[ExtensionManagerPackage]源:'Microsoft.VisualStudio.ExtensionManager.Implementation'描述:无法从程序集'Microsoft.VisualStudio.Shell.Interop.8.0,Version = 8.0加载类型'Microsoft.VisualStudio.Shell.IOleMenuCommand'. 0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'.System.TypeLoadException:无法从程序集"Microsoft.VisualStudio.Shell.Interop.8.0,Version = 8.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a"加载类型"Microsoft.VisualStudio.Shell.IOleMenuCommand".在Microsoft.VisualStudio.ExtensionManager.VSPackage.ExtensionManagerPackage.d__27.MoveNext()在System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start [TStateMachine](TStateMachine&的statemachine)在Microsoft.VisualStudio.ExtensionManager.VSPackage.ExtensionManagerPackage.InitializeAsync(的CancellationToken的CancellationToken,IProgress Microsoft升级.SisualStudio.Shell.AsyncPackage.<> c__DisplayClass16_0.<b__1> d.MoveNext()---从抛出异常的上一个位置开始的堆栈跟踪结束---在System.Runtime.ExceptionServices.ExceptionDispatchInfo .Throw()在Microsoft.VisualStudio.Services.VsTask.GetResult()的Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)的Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)中.
随着:
结束包装[ExtensionManagerPackage]
这也是一个已知的bug吗?有谁经历过这个?
ide winapi visual-studio visual-studio-community visual-studio-2017
当我想输入类似的东西时
Type* name;
Run Code Online (Sandbox Code Playgroud)
在键入行的某个时刻(一旦我键入分号),VS2017决定自动空格到
Type * name;
Run Code Online (Sandbox Code Playgroud)
在我第一次删除空间后,IDE在一段时间内没有再次尝试.当我输入一个类型指针变量时,由于某种原因再次启动该行为,但是立即键入另一行就没有重复自动间距......
经过一些更多的测试后,自动间隔似乎只发生在一个类中,如果匹配,访问说明符之后的第一行代码就成了受害者Type* name;
.
class Foo {
private:
Type* name; //Becomes Type * name; after typing the ';'
public:
Type2* name2; //Here as well
};
Run Code Online (Sandbox Code Playgroud)
我不喜欢它.我该如何结束这种亵渎?
我已经检查过早期vs .net版本发生了同样的错误,但是在尝试从VS Community 15.3.5升级到15.4时,我在VS 2017中遇到了这个问题.
视觉工作室正在工作和编译项目,除了这有问题'目标'GatherAllFilesToPublish"在项目中不存在'.
然后我尝试使用"vs_community.exe --layout"C:\ MyFolder"--lang en-US"下载整个设置,这又花了9个多小时才完成下载.重新选择修复设置,再次出现同样的问题.
是否有人知道更快的方法来解决上述问题?
我需要此软件包才能访问中的设置Web.config
:
Restoring packages for D:\ ... path ... \dozor-backend.csproj...
Package System.Configuration.ConfigurationManager 4.4.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package System.Configuration.ConfigurationManager 4.4.0 supports:
- net461 (.NETFramework,Version=v4.6.1)
- netstandard2.0 (.NETStandard,Version=v2.0)
Package restore failed. Rolling back package changes for 'dozor-backend'.
Time Elapsed: 00:00:01.0720066
========== Finished ==========
Run Code Online (Sandbox Code Playgroud)
我看到其他人在net core应用程序中使用了此软件包,那么这是什么问题呢?如何在.NET Core应用中使用它?
我最近安装了VS 2015(Windows 10),但是有一些软件包故障(稍后详细介绍)。
尝试启动新项目时,出现错误消息:“无法创建编译器”。因此,我卸载了该产品,修复了Microsoft可再发行产品,然后重试。从那时起,我根本无法安装VS。
我收到以下消息:
Roslyn语言服务-x86:安装期间发生致命错误。
Visual C ++ IDE调试器程序包:程序包失败。
Microsoft VisualStudio JavaScript项目系统:程序包失败。
Microsoft Visual Studio 2015更新3诊断工具-x86:软件包失败。
Microsoft Visual Studio 2015更新3诊断工具-ENU:包失败。
我已经尝试过:
没有任何效果,我将非常感谢您的帮助。谢谢
installation visual-studio visual-studio-2015 visual-studio-community
我目前正在https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch/WEB-103
使用Mac上的Visual Studio设置Spa应用程序(macOS Sierra,Visual Studio Community 2017)。
我已经成功安装了角核,目前正在尝试根据已安装的模板之一创建一个新项目。
运行时,我可以看到两个角度模板sudo dotnet new -l
:
MVC ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
运行时sudo dotnet new angular
,我不断收到以下错误:
Unable to determine the desired template from the input template name: angular.
The following templates partially match the input. Be more specific with the template name and/or language.
Templates Short Name Language Tags
----------------------------------------------------------------------------
MVC ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core …
Run Code Online (Sandbox Code Playgroud) 我有一个具有属性的类:
class MyClass {
constructor() {
this.property = null;
}
}
Run Code Online (Sandbox Code Playgroud)
该属性可以是null
一个Array
实例。我试过这个:
/**
* @property property {Array}
*/
class MyClass ...
Run Code Online (Sandbox Code Playgroud)
这:
/**
* @property MyClass.property {Array}
*/
class MyClass ...
Run Code Online (Sandbox Code Playgroud)
和这个:
class MyClass {
/**
* @property property {Array}
*/
constructor() ...
Run Code Online (Sandbox Code Playgroud)
我仍然在智能感知中看到这一点:
那么谁能告诉我如何正确地做到这一点?
javascript javascript-intellisense visual-studio-community visual-studio-2017
我只想询问视觉工作室社区的一些事情.我用c#制作了一个软件,一家小公司想购买我的软件,我正在使用visual studio community 2015和ms sql express.只想问我是否需要获得专门用于Microsoft软件许可证或.net许可证的软件许可证?还有任何法律行动?谢谢
我正在尝试在代理后面使用 Visual Studio 社区,但我不断收到错误。
我已将以下内容添加到D:\myVisualStudioInstall\Common7\IDE\devenv.exe.config
<system.net>
<settings>
<ipv6 enabled="false"/>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy bypassonlocal="true" proxyaddress="http://myProxy.com:8080" />
</defaultProxy>
</settings>
</system.net>
Run Code Online (Sandbox Code Playgroud)
我在启动时收到错误:
无法识别的元素“defaultProxy”。(C:\ Users \ me \ AppData \ Local \ Microsoft \ VisualStudio \ 14.0 \ devenv.exe.config第1304行)
我这里哪里出错了?我在网上找到的所有内容都告诉我 defaultProxy 应该是该元素的名称,但也许对于社区版来说存在一些差异?我已经在 Windows 凭据管理器中检查了我的凭据,它似乎可以正常工作,因为 IE 不再提示我输入这些凭据。
谢谢
在Visual Studio社区2015 Update 3中,当您的项目中不存在类型时,VS将搜索包源并提供"add package xxx"建议,如下所示:
但是在VS2017社区,这个功能已经消失了.有没有选择打开它?还是完全删除了?为什么?
.net c# visual-studio visual-studio-community visual-studio-2017
我想用一个简单的 shell 脚本覆盖默认的 Visual Studio C++ 编译器。我想要的是捕获参数,例如文件名,并创建一些统计信息。但是我想完全覆盖编译过程 - 也就是说,我想从我的 shell 脚本调用原始编译。
我用谷歌搜索,但我发现的只是如何在项目中执行预构建和后构建脚本。那不是我想要的。
我想在全球范围内改变这一点。我该怎么做?
编辑:我没有包括我正在利用 MySql.Data 包通过 LINQ 连接到 MySql 的事实,因为它似乎并不相关。问完问题,我切换到LinqToDb.MySql包,问题好像已经消失了,所以我认为是MySql.Data中的一个bug。
虽然我很高兴,但我将这个问题作为我的解决方案留下来,原始问题的答案可能会帮助其他人。
原帖:
我正在 Visual Studio Community for Mac (7.1.3) 中构建 C# 解决方案。我已经更改了对数据库表名的一些引用,但不断收到如下错误:
Table 'database.exampleTable1' doesn't exist.`
Run Code Online (Sandbox Code Playgroud)
即使我已经在整个代码中将“exampleTable1”的引用更改为“table1”以匹配实时数据库。
我不认为问题出在我的代码中,而是在 Visual Studio 中无法识别更改。我尝试清空 Debug 文件夹并重建,从我的 git 存储库克隆项目并给它一个不同的名称(诅咒跟着我!),以及其他一些牵强附会的想法。
这个答案好像有吧。它建议清除 Visual Studio 缓存文件,但仅显示 PC 的这些文件夹的路径。我在我的 Mac 文件系统上找不到任何类似的东西。
在我的 Mac 上,在哪里可以找到与以下内容等效的缓存文件?
C:\Documents and Settings\Administrator\Local Settings\Temp\VWDWebCache
or
C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\WebsiteCache
Run Code Online (Sandbox Code Playgroud) c# ×5
.net ×2
c++ ×2
macos ×2
angular ×1
asp.net-core ×1
compilation ×1
ide ×1
installation ×1
javascript ×1
proxy ×1
winapi ×1
windows ×1