【发布时间】:2019-01-20 20:35:28
【问题描述】:
我们最近升级到 Visual Studio Pro 2015,我在编译时开始看到这样的事情:
2>--- Build started: Project: MyProject, Configuration: Release Win32 ---
2> MyFile.cpp
2> Generating code
2> 0 of 631 functions ( 0.0%) were compiled, the rest were copied
from previous compilation.
2> 0 functions were new in current compilation
2> 0 functions had inline decision re-evaluated but remain unchanged
2> Finished generating code
2> MyProject.vcxproj -> Bin\Release\MyProject.exe
2> MyProject.vcxproj -> Bin\Release\MyProject.pdb (Full PDB)
========== Build: 2 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========
具体来说,它表明它不必编译我的 631 个函数中的任何。即使我真的更改代码也会出现这种情况,这看起来有点奇怪。
无论我在保存后编译多快都会发生这种情况,事实上,即使我在未保存的情况下编译也会发生这种情况,让 IDE 自动保存它。
为什么 Visual Studio 似乎声明它已经编译了我的代码并且不需要再次编译?
对于它的价值,进一步的调查表明可执行文件正在在我更改代码时被更新,所以现在归结为:为什么 VS 告诉我不需要编译?
【问题讨论】:
-
iLTGC 我认为是 VS2015 中的新功能。 blogs.msdn.microsoft.com/vcblog/2014/11/12/…
标签: visual-c++ visual-studio-2015