如何将基于 Visual Studio 2010 构建的项目从动态切换为静态? [英] How to switch a project built on Visual studio 2010 from dynamic to static?

查看:28
本文介绍了如何将基于 Visual Studio 2010 构建的项目从动态切换为静态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用 Visual Studio 2010,所以我不知道它的各种选项.我已经创建了一个项目,并在开始时在应用程序向导中选中了显示动态库的框.

I have recently started using Visual studio 2010 ,so I'm unaware of its various options. I have created a project and in the application wizard at the beginning,I had checked the box that said Dynamic Libraries.

现在我需要静态链接同一个项目以使其可移植.请帮帮我.

Now I need to Statically link the same project to make it portable.Please help me out.

谢谢.

推荐答案

  1. 在解决方案资源管理器中,找到相关项目,右键单击它并选择属性.
  2. 左侧边栏中的默认选择应为配置属性 -> 常规;如果不是,请选择那个.
  3. 在主要部分的项目默认值下,将配置类型下拉列表设置为静态库 (.lib).
  1. In the solution explorer, find the project in question, right click it and select Properties.
  2. The default selection in the left sidebar should be Configuration Property -> General; if it's not, select that.
  3. In the main section, under Project Defaults, set the Configuration Type dropdown to Static Library (.lib).

这篇关于如何将基于 Visual Studio 2010 构建的项目从动态切换为静态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆