为什么我在Visual Studio“ 2013” SDK示例中遇到问题?

安德烈·布什曼

Visual Studio 2013高级更新4; 已安装Visual Studio 2013 SDK。

在此处输入图片说明

我看到代码源是针对较旧的Visual Stuido版本的。它具有指向Visual Studio 2010(而不是2013)SDK Samples.zip文件的链接。我尝试编译其一些项目,但出现异常...例如:

在此处输入图片说明

其他项目已成功编译,但我阅读了它们的运行说明:

运行样本

To run this sample, copy both the AlphaBlendToolbar.Addin file and the newly-built AlphaBlendToolbar.dll file into your Visual Studio Addins directory (My Documents\Visual Studio 2010\Addins) and then open a new instance of Visual Studio 2010. Next, run the Tools | Add-in Manager menu command. Check the checkbox next to AlphaBlendToolbar and hit OK. You should see a new toolbar with two command buttons on it. The interesting thing about this sample is that the command button icons have alpha-transparency.

But VS 2013 has not the Addins directory... Ok, I create it:

在此处输入图片说明

I compiled the sample of SDK:

在此处输入图片说明

but I don't see here the compiled DLL:

在此处输入图片说明

在此处输入图片说明

Why I have such problems?

Carlos Quintero
  • The AddIns folder under the Documents folder is not created by default by VS when installed, so you need to create it by hand, as you have done
  • Remove the folder C:\Users\developer\Documents\Visual Studio 2013\AddIns from the Options window, it is not required, the %VSMYDOCUMENTS%\AddIns folder takes care.
  • .AddIn files can contain several values to describe the target VS versions. The AlphaBlendToolbar.AddIn file of the sample only contains the VS 2010 target, you need to edit it and add the VS 2013 ("12.0") target:

<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>12.0</Version>
</HostApplication>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

为什么Visual Studio 2013在此类成员decltype上遇到问题?

在Visual Studio 2013中,为什么我的断点有时会“分离”?

为什么我不能在Visual Studio 2013中调用CTime :: GetAsDBTIMESTAMP?

在Visual Studio Code中运行代码时遇到问题

我在Android Studio中运行抖动时遇到问题

Visual Studio 2013中的OpenGL

Visual Studio 2013中RestSharp安装的问题

Imagination PowerVR SDK示例无法在Visual Studio 2013上执行

为什么在Visual Studio 2012/2013中增量搜索速度缓慢?

为什么Visual Studio 2013不允许我创建新的C ++ CLR类库?

我在调试下面的代码时遇到问题。我在Visual Studio中得到正确的输出,

我可以使用什么代替MS Visual Studio 2013中的std :: aligned_alloc?

我们在使用Visual Studio 2013 Update 3和Team Foundation 2013 RTM时遇到合并问题

如何选择SDK版本Visual Studio 2013

Windows 10上的Visual Studio 2013 SDK

Visual Studio 2013中的boost :: asio示例代码分段错误

Visual Studio 2013套件问题

OpenCV生成问题Visual Studio 2013

为什么我的代码无法在Visual Studio Code中运行?

为什么在Visual Studio中我= i ++使其增加

如何在Visual Studio 2013中记录我的SQL调用?

什么是Visual Studio 2013中的假冒程序集?

Visual Studio 2013中的设计视图发生了什么?

Visual Studio 2013中的这个符号是什么?[内部图片]

为什么C4996上的Visual Studio 2013错误?

为什么允许此代码在Visual Studio 2013下编译?

使用Visual Studio 2013在Sharepoint 2013中创建母版页

无法在Visual Studio 2013中删除引用

在TFS Visual Studio 2013中取消更改