visual-studio-project

How to not copy app.config file to output directory

穿精又带淫゛_ 提交于 2019-12-18 05:07:14
问题 I have a WPF application I am building. I am using Visual Studio Community 2015. In an effort to create a "true" release build, I am changing up some build settings so it only generates necessary files that will be installed on the user's computer. So no vshost exe, no generated XML files, etc. etc. etc. (I am retaining PDB file generation, however). I have everything exactly how I want it, except for one file. I have an App.config file in each project. I don't mind this getting copied to the

Where the data-tier application version number is stored in a Visual Studio project?

↘锁芯ラ 提交于 2019-12-12 11:22:42
问题 I have an utility which fills version numbers in AssemblyInfo.cs files. Now I need to implement a functionality to adjust version numbers for Visual Studio Data-Tier applications (DACPAC). I see that I can adjust the number manually if I open project properties and click the Data-Tier application Properties button. But I cannot find where this number is stored in project files, so I have no idea how to update it automatically from my utility. Do you know, where is the version number stored?

What are Visual Studio project references?

那年仲夏 提交于 2019-12-05 12:05:53
问题 I came across the Framework and References tab of my project and noticed that I can "Add New Reference..." to my project, what is this functionality? 回答1: References are used to pull additional libraries into your project. For example, when you're creating a Windows project, you'll be using Windows forms, XML parsers, socket libraries, and lots of other useful stuff. Now, you could create all these from scratch, but that would be an insane undertaking. Instead, you can use libraries which

How do I change the startup project of a Visual Studio solution via CMake?

此生再无相见时 提交于 2019-12-03 18:55:06
问题 I am using CMake to generate Visual Studio projects. Everything works fine except one thing. The startup project in the solution is always ALL_BUILD . How do I change the startup project to the real project I want via CMake? 回答1: You can't. The startup-project is stored in a binary file, which is NOT generated by CMake. Without that binary file, visual studio will default to the first project in the solution file and the ALL_BUILD project is always first... Update: this answer is "out-of-date

How do I change the startup project of a Visual Studio solution via CMake?

試著忘記壹切 提交于 2019-11-30 04:10:06
I am using CMake to generate Visual Studio projects. Everything works fine except one thing. The startup project in the solution is always ALL_BUILD . How do I change the startup project to the real project I want via CMake? André You can't. The startup-project is stored in a binary file, which is NOT generated by CMake. Without that binary file, visual studio will default to the first project in the solution file and the ALL_BUILD project is always first... Update: this answer is "out-of-date" since it is now feasible with CMake 3.6. See the answer by ComicSansMS . CMake now supports this

Visual Studio Project vs. Solution

半世苍凉 提交于 2019-11-28 16:46:37
Being new to VS, how may I think of these two concepts, what is the difference? A solution is a container for projects, and tracks dependencies between projects. I find some missing information in the other answers (at least for people who come from other IDEs like, say, Eclipse) . To say that a solution is a container for projects is only part of the thing. The conceptual feature of a VS project (what determines its 'granularity') is that one project produces one output : typically an executable or a library (dll). So, if you are going to code three executables that uses related code, you'll

Visual Studio Project vs. Solution

↘锁芯ラ 提交于 2019-11-27 19:56:43
问题 Being new to VS, how may I think of these two concepts, what is the difference? 回答1: A solution is a container for projects, and tracks dependencies between projects. 回答2: I find some missing information in the other answers (at least for people who come from other IDEs like, say, Eclipse) . To say that a solution is a container for projects is only part of the thing. The conceptual feature of a VS project (what determines its 'granularity') is that one project produces one output : typically

Setting up a build dependency without using a reference?

青春壹個敷衍的年華 提交于 2019-11-27 09:34:44
All: I am working on a solution where one of the projects is actually plug-in to the main exe that the solution builds. Since this one project is a plug in, it's wrong to reference the plug-in from the main exe (that assembly isn't guaranteed to be present in a deployment, it's optional). So here's my problem: If I modify code in my plug-in project, and then hit F-5 to run, Visual Studio will not alwyas build my plug-in (since based upon the reference tree, the main exe does not appear to depend upon it). Is there a solution or project-level setting that I could change to cause this plug-in

Setting up a build dependency without using a reference?

邮差的信 提交于 2019-11-26 14:46:24
问题 All: I am working on a solution where one of the projects is actually plug-in to the main exe that the solution builds. Since this one project is a plug in, it's wrong to reference the plug-in from the main exe (that assembly isn't guaranteed to be present in a deployment, it's optional). So here's my problem: If I modify code in my plug-in project, and then hit F-5 to run, Visual Studio will not alwyas build my plug-in (since based upon the reference tree, the main exe does not appear to