[Tutorial] Share and reuse project properties in visual studio
- os:windows 10
- IDE: visual studio 2015
When developing a project under visual studio, the properties of the project are usually configured, such as importing external header files, importing external libraries, etc.
Especially the different development modes,
release, different development platforms,
x86, etc., the configured items are not shared.This means that every time you switch to a different development mode and platform, or every time you start a new project (but the project properties are the same), you have to manually configure these properties, which is obviously unreasonable.
In fact, visual studio provides a way to share and reuse project properties, let's take a look.
This setting is relatively simple, we only need to set both
All ..., as shown below
so that when you set project properties, debug and release, x64 and x86 etc all share the same configuration properties.
Many times, when developing projects in a company, everyone will use a unified configuration environment for project properties, including the same development platform, the same toolset, the same external header files, import libraries, etc.It is configured from scratch during development.
Visual studio uses the Property Manager to create new project properties, or to import external project properties.Let's take a look at the specific steps below.
Click [View]-[Other Windows]-[Property Manager] in the following order, and then the column ④ will appear, we can see that it lists different development modes and different platforms one by one
Select the project configuration properties of the corresponding development mode and platform you need to import, for example, here I give an example
"Debug | x64"
Right-click as shown in the figure, you can choose to create a new project property, or you can import an existing project property. If you are importing an existing project property, you can click to find the corresponding project property sheet, which starts with
code>.props end.You can also create new project property sheets for use by other projects.
After introducing the new project properties, you can view it againCorresponding to the project properties of the development mode and platform, it is found that it has been applied.
The use of project property sheets is very flexible. A project can set multiple project property sheets. Visual studio determines the coverage of the same property in different property sheets according to the arrangement order. The principle is that later properties will override previous properties.
Introducing a common project property sheet does not affect your setting of the current project's independent project properties. In fact, if you set your own project properties in the property configuration page, its priority is the highest.
[Note] The property configuration page is the page displayed at the beginning of the article
云原生爱好者周刊：使用 eBPF 实现 PostgreSQL 的可观测性
利用 Kubernetes 内置 PodTemplate 管理 Jenkins 构建节点
KubeSphere 社区双周报 | 功能亮点抢“鲜”看 | 2022-09-16
Difference Between Router and Switch
Common higher-order functions of filter, find, any, map, flatMap, takeWhile, reduce, groupBy in Kotlin series
Approaches to promoting the cultivation of digital skills of rural residents in response to a rapidly changing environment
The use of RAII of unique_ptr smart pointer in exception handling
- Detailed explanation of nvm
- tkinter minimize to tray
- System plugin problem when installing sql
- Briefly describe the functions and application scenarios of mux vlan _vlan principle
- QinQ VLAN, the Mapping principle and configuration of collection "advice"
- Cookies and Sessions and their related issues
- Research and Application of Transport Network Based on OXC Technology
- Vlan in network applications have any practical significance _ network engineering can't find a job
- vulfocus - twonkyserver (cve_2018_7171)
- vulfocus - apache (cve_2021_41773)
- 剑指 offer 面试题精选图解 03 . 数组中重复的数字
- Spark common errors and problem solving methods
- LeetCode 图解 | 229.求众数Ⅱ，要求线性时间复杂度？
- 【蓝桥杯国赛真题25】Scratch数字与图形 第十三届蓝桥杯 图形化编程scratch国赛真题和答案讲解
- Detailed explanation of apifox
- 【教程】在 visual studio 共享和重用项目属性
- Redis Cluster为什么选哈希槽不选一致性哈希？
- How about the sheep brand domain name?
- [Cloud native] MySQL on k8s environment deployment
- pointer of go language
- Solidity lesson nine - events and inheritance
- Why does Redis Cluster choose hash slots instead of consistent hashing?