Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在构建期间使用自定义构建步骤从 .wsdl 文件生成 gSoap 代码。如果自创建 Soap 存根以来尚未修改 .wsdl 文件,是否有任何方法可以让 Visual Studio 跳过此步骤?
我指的是 VS2005 但我认为这与 VS2008 相同
定义自定义构建步骤时,您需要将源文件输入到“附加依赖项”中,将生成的文件输入到“输出”中。这有助于 VS 决定是否需要重建输出。如果任何输入文件的 timstamp 比输出文件新,则始终执行此操作。
如果没有定义依赖项或输出,则 VS 无法判断构建是否是最新的,因此 VS 将始终运行此构建步骤。