如何将 VS 测试处理器架构默认为 x64? [英] How can I default VS Test Processor Architecture to x64?

查看:20
本文介绍了如何将 VS 测试处理器架构默认为 x64?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我依赖于为 x64 编译的混合模式程序集.因为我不想在我的构建中出现警告,所以我的解决方案中的所有项目都直接针对 x64——它们不是任何 CPU.

I depend on a mixed-mode assembly which is compiled for x64. Because I do not want warnings in my build, all of the projects in my solution target x64 directly--they are not Any CPU.

为了让我的 x64 单元测试正常工作,我发现每次启动 Visual Studio 时都必须手动将 Visual Studio 单元测试默认处理器架构更改为 x64.这很容易但很乏味.

To get my x64 unit tests to work properly, I find that I must manually change the Visual Studio unit test Default Processor Architecture to x64 every time I start Visual Studio. This is easy enough but tedious.

有没有办法让 VS 保留这个设置,这样我就不必每次都这样做?

Is there a way to get VS to persist this setting so that I don't have to do it every time?

推荐答案

在 Visual Studio 2013 上,我发现将默认流程架构"设置为 X64 后,我将打开选项..."并用关闭"OK",那么默认流程架构"将保留,至少对于这个解决方案.

On Visual Studio 2013 I found that after setting "Default Process Architecture" to X64 I'll go and open "Options..." and close it with "OK", then the "Default Process Architecture" will preserved, at least for this one solution.

这篇关于如何将 VS 测试处理器架构默认为 x64?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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