在 Visual Studio 中编译单个类/文件 [英] compile a single class/file in visual studio

查看:151
本文介绍了在 Visual Studio 中编译单个类/文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想知道我们是否可以在 Visual Studio 中编译单个文件/类.我经常只更改一个文件,但最终编译了整个项目.这可能是一个微不足道的案例,但会非常有帮助:)我正在使用 Visual Studio 2005 在 .net 2.0 中处理 C# 项目

I just want to know if we can compile a single file/class in visual studio.I often change just a single file but end up compiling the entire project.THis might be a trivial case but will be very helpful:) I am using visual studio 2005 working on C# project in .net 2.0

推荐答案

Ctrl+F7只编译活动源文件.

构建菜单底部寻找编译项.

当然,在测试之前您仍然需要进行构建,但如果您只想在修改源文件后进行快速的完整性检查,这会很方便.

Of course, you'll still have to do a build before you can test, but if you just want a quick sanity check after modifying a source file, this can be handy.

这篇关于在 Visual Studio 中编译单个类/文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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