问题标签 [devenv]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
1412 浏览

visual-studio - Visual Studio 2008 无法从 svn 打开项目

我在 Visual Studio 2008 中使用 ankhsvn,当我尝试打开 .sln 文件时出现以下错误:

无法打开项目文件“blah blah blah” 此安装不支持项目类型

为什么是这样???

0 投票
2 回答
2971 浏览

msbuild - msbuild 比 devenv 慢

从命令行使用 devenv 或 msbuild 构建 VS2008 解决方案文件时,我在构建持续时间方面遇到性能不一致。

我的解决方案包含 C# 和 C++ 项目,我有以下结果:

devenv.exe(命令行或 ide 中):7 分钟 msbuild.exe:14 分钟

我尝试通过 /maxcpucount 和 /p:VCBuildAdditionalOptions=m# 调整 msbuild 开关,但到目前为止没有运气。

任何想法?

0 投票
2 回答
277 浏览

c++ - 带有 /I 和空格的 Devenv.exe

我试图用 Directx 编译一个应用程序。但这会导致 $() 出现 PRJ0030 错误。如何转义 (,) 或空格等关键字符。参考我使用过的cmd ^ 但它没有帮助。

0 投票
0 回答
302 浏览

windows-installer - 错误:一般打包失败 -- 使用 devenv.com 打包 MSI 时

我有一个用于部署回归测试设置的 Visual Studio C# 解决方案。该解决方案包含类库、控制台应用程序和部署 (.vdproj) 项目。类库和控制台应用程序项目的输出被添加为要打包到部署项目中的文件。解决方案中有一个项目(我们称之为 content.csproj),其中包含所有“内容”文件(测试脚本、测试输入文件、测试配置文件等)。内容文件是在构建解决方案时未编译的文件。相反,这些文件只是复制到输出目录。content.csproj 的内容也被添加为要打包的文件列表。作为 content.csproj 一部分的文件数量已经增长到非常大的水平,大约 10,000 个文件甚至更多。

错误:一般包装失败

错误:不可恢复的构建错误

我想这是由于 content.csproj 中有大量文件,有人可以解释看到此类错误的确切原因吗?如果有人能指导我如何创建和配置部署项目以再次避免这种情况,我将不胜感激。

当要打包的文件非常多时,创建 MSI 包的最佳方法是什么?

细节:

我正在使用 Microsoft Visual Studio 9.0 安装附带的 devenv.com

谢谢,

巴拉吉

0 投票
3 回答
1942 浏览

c++ - 如何在命令行上构建 Visual Studio 2008 C++ 项目的所有配置?

我想在命令行上构建一个 VS 2008 C++ 项目的所有配置。就像是:

devenv TheProject.vcproj /build /nologo

但这不起作用,因为 /build 命令坚持在它后面有一个配置,如下所示:

devenv TheProject.vcproj /build "Release|Win32" /nologo

有没有办法在 vcproj 文件中获取所有配置的命令行构建?

0 投票
2 回答
123 浏览

sql-server - Visual Studio 重绘失败

我正在使用 Visual Studio 2008 开发 SQL Server 2008 R2 SSIS 包。每当我在应用程序之间切换时,包中的组件都会失去它们的轮廓、断点视觉标记——它看起来很丑。

替代文字 http://a.imageshack.us/img72/5696/visualstudioredrawfail.jpg

这是除了名称和背景颜色之外的所有内容都丢失的地方

替代文字 http://img828.imageshack.us/img828/9826/visualstudioredrawfail2.jpg

到目前为止,我已经多次卸载重新安装的 Visual Studio,但没有运气。

我该如何解决?

0 投票
2 回答
2676 浏览

visual-studio-2008 - 可以使用 Visual Studio IDE 构建,但不能使用 devenv.com 构建

我正在使用 VS 2008。我可以使用 IDE 成功编译我的解决方案。但是,当我尝试使用 devenv.com 构建它时,它会说“错误:找不到项目输出组的输出(无法确定名称)”。该组、它的配置或它的项目可能已被删除从解决方案中。” 在构建 .vdproj 安装项目时。

类似的问题是here

有什么想法可以解决这个问题吗?谢谢

编辑:实际上 Cruisecontrol.net 尝试使用 devenv.com 构建解决方案。这是我在 ccnet.config 中使用的 devenv 部分:

0 投票
2 回答
1794 浏览

c# - 通过 devenv 为 C# 解决方案指定其他条件编译符号

我正在尝试通过命令行上的 devenv (vs2010) 将额外的条件编译符号传递给 C# 编译器。

我知道它可以通过CL 环境变量为 C++ 编译器完成。C# 是否有类似的可能?

由于这个构建过程需要运行代码分析,据我所知,我一直坚持使用 devenv 来启动构建。

0 投票
2 回答
870 浏览

msbuild - devenv VS aspnet_compiler

如果我使用aspnet_compiler发布一个 ASP.NET MVC 网站,它会执行与devenv相同的任务吗?还是只是预编译以最大程度地减少启动延迟?

IE 我的要求是能够编译和发布一个 ASP.NET 网站。在这种情况下,我是否应该先使用 devenv 构建网站,然后使用 aspnet_compiler 预编译和复制文件(发布)?

或者,如果我只使用 aspnet_compiler,那是否也会构建(编译)源和引用项目以关联 dll?

非常感谢您的回复。非常感谢。

0 投票
1 回答
2767 浏览

visual-studio-2008 - Microsoft Visual Studio 2008: devenv.exe ignores /useenv option

in Microsoft Visual Studio 2008, I want to set C++ directories (includes, libraries, etc.) for a solution (*.sln) from command line. Until Visual Studio 2003, I've successfully relied upon /useenv option of devenv.exe, started from command line. This does not seem to work on Visual Studio 2008 Professional Edition. Directories set by environment variables INCLUDE and LIB are being ignored.

Only reference I've found for this issue is here. It mentions an "External Dependencies" section in: Tools -> Options -> Projects & Solutions -> VC++ Directories. I cannot find such section. I've found what I think is an "External Dependencies" (I'm not sure because I'm running a VS2008 translated to Italian) section in: right click on solution ! Properties ! Shared Properties? ! External Dependencies?, but such section is empty.

I'm running Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM and here's the batch

"BuildLog.htm" shows this instead:

Any help? Thanks.