我正在将视觉工作室项目从vs2008转换为vs2017并使用win10最新SDK(10.0.15063.0)。 [英] I am converting visual studio projects from vs2008 to vs2017 and using win10 latest SDK(10.0.15063.0).

查看:75
本文介绍了我正在将视觉工作室项目从vs2008转换为vs2017并使用win10最新SDK(10.0.15063.0)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在vs2008和vs2017中构建项目时,visual studio中生成的exe(或)dll文件的大小会增加。任何人都知道它为什么会增加?有没有任何方法可以减少最终的可执行文件/ dll的大小?



我尝试了什么:



i尝试不生成pdb和大小减少,但我需要pdb。

when i build project in vs2008 and in vs2017,the generated exe (or) dll files in visual studio are increased in size.can anyone tell why it is increasing?Are there any methods to decrease the size of final executable/dll?

What I have tried:

i tried by not generating pdb and size get reduced but i need pdb.

推荐答案

你正在使用一个非常不同的编译器:所以它的gode生成将是不同的。此外,EXE大小将根据您的构建选项而有所不同。例如,您是在比较Release版本还是Debug?后者我希望会有所不同,但前者应该更相似,只要代码本身没有改变。



但是......你会有所不同每次编译时都有EXE文件,并且很可能大小也可能不同: c# - 为什么再次编译时二进制输出不相等? - 堆栈溢出 [ ^ ]
You are using a very different compiler: so it's gode generation will be different. In addition, the EXE size is going to be different depending on your build options. For example, are you comparing Release builds, or Debug? The latter I would expect to be different, but the former should be more similar, provided the code itself hasn't changed.

But ... you will get different EXE files each time you compile, and it's quite probable that the size may be different as well: c# - Why is the binary output not equal when compiling again? - Stack Overflow[^]


这篇关于我正在将视觉工作室项目从vs2008转换为vs2017并使用win10最新SDK(10.0.15063.0)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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