开发者

C# build in VS - separate API references?

Here's the scenario in VS 2008: I have App1 and App2 and both of them contain references to custom Library1. Library1 has references to API1 which is only used by App1 and API2 which is only used by App2. However, when I build App1 it contains all of the libraries/files required by both API1 and API2 (and vice-versa). Is there a way to ensure that a build of App1 will only contain the references needed by Library1 for that build开发者_如何学Python?


No, since the library is built without any knowledge about who is going to use which references inside it. So all references are linked when building the library, no matter how many applications (this could be zero) you've got referencing the library.

You can access API1 from Library1 and create a new library Library2 to access API2 if it's that important that the implementation is separated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜