English 中文(简体)
如何将大的三党平衡与个别道路混为一谈,使之易于移植?
原标题:How to configure big 3rd-party lib with individual paths and make it easy to transplant?

When we use big third-party library, considering each computer may have its individual lib path, we set the absolute path in the Visual-Studio Option. So it is not under version control.

日复一日,建立了许多绝对的图书馆。 当出现新情况时,有许多工作要做,很容易犯错。

如何适当建立大型第三方图书馆。

感谢。

问题回答

我们通常采取的一些选择:

  1. Use Environment variables, to avoid absolute path. In this case, each user have some freedom to set the location. Visual studio have some pre-defined variables that you can use, please refer to: msdn Aside from that, you can define your own Environment variables to use, this is quite common in some "big" libraries, for example Boost library.

  2. Use "common" settings that all users must adhere. For example, we can set the rule that the project must be put on specific directory.

  3. Define Pre/Post-Build Events. You can set this events to define some "common grounds" for all users. The common operations that we usually do is to set registry value, copy header file, and copy binary





相关问题
Visual studio tag highlighting feature is missing!

I need a little assistance with regards to my visual studio IDE. There is this feature in aspx markup pages to highlight the matching tags when you click on them. <td ...

How to split a Crystal Reports subreport across a page break?

I m using Visual Studio 2005 and writing in VB.NET. I have a subreport in a Crystal Reports report consisting of a list of log entries. Sometimes the list of log entries is long enough that it would ...

Reset Function in Visual C#

Finally I made a game using Visual C# ... (With Help Of Stackoverflow members ,,, Thanx). I Have three more questions. 1- How can I add a reset function to the application form I mean I want it to ...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

SOAP and WSDL in webservice

I am a beginner to webservice concepts. Now I know how to deploy webservice in IIS. I checked the webservice URL There I can see SOAP protocol contents and WSDL (after url type ?WSDL). My questions ...

Unable to generate PDB files in Visual Studio 2005

For most assemblies, I m able to generate their respective .pdb files. However, I ve got one project that isn t generating their .pdb files. I ve made sure that it on debug mode and that the project ...

热门标签