projects-and-solutions

How do I reference one VC++ project from another in the same project?

江枫思渺然 提交于 2019-12-31 03:50:13
问题 I am new to Visual Studio. Need your help with the following. Visual Studio 2005, VC++ 1 solution has 2 projects. Lets call the solution as 'solution' Project 1 is named 'p1' and project 2 is called 'p2' Do I need to export functions and classes from 'p1' so that I can use them by importing in 'p2'? What if I simply include the header files and then use the functions by calling them straight away? Thanks, viren 回答1: If I remember correctly (haven't used C++ for a while), there were two

What do you do about references when unloading a project in Visual Studio?

笑着哭i 提交于 2019-12-29 07:03:08
问题 When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I've written myself a macro to do clever stuff (detect add/remove of project and transform any references from-to file/project dependency), but I can't believe that I'm not missing something much simpler. How can the unload function be any use if I have to go around manually changing references (and it breaks the 'personal solutions/shared projects' team

What do you do about references when unloading a project in Visual Studio?

时间秒杀一切 提交于 2019-12-29 07:03:05
问题 When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I've written myself a macro to do clever stuff (detect add/remove of project and transform any references from-to file/project dependency), but I can't believe that I'm not missing something much simpler. How can the unload function be any use if I have to go around manually changing references (and it breaks the 'personal solutions/shared projects' team

How do you share external dependencies between Visual Studio solutions?

天涯浪子 提交于 2019-12-29 04:24:05
问题 I have a Java background so I’m used to having Maven handle all problem around downloading and keeping dependencies up to date. But in the .NET environment I have not yet found a good way to manage all these external dependencies. The main problem here is that I mass produce solutions and they all tend to depend on the same third party dll’s. But I don’t want to maintain separate copies of each component under each solution. So I need a way of linking all the different solutions to the same

visual c++: #include files from other projects in the same solution

拥有回忆 提交于 2019-12-27 16:32:49
问题 I am working on a game using Visual C++. I have some components in separate projects, and have set the project dependencies. How do I #include a header file from a different project? I have no idea how to use classes from one project in another. 回答1: Settings for compiler In the project where you want to #include the header file from another project, you will need to add the path of the header file into the Additional Include Directories section in the project configuration. To access the

Adding reference to windows phone class library via project will build; adding the dlls directly fails

試著忘記壹切 提交于 2019-12-25 03:32:30
问题 I wasn't quite sure how to word the title as I'm very confused about this problem, edits or suggestions to clarify are welcome... Anyway, the problem is that I have a Windows Phone 8.1 (RT) application, and I'm attempting to use add a reference to a class library so that I can make use of code and XAML views in that project. If I add the entire class library project to my visual studio solution, and then add a reference to that project in my app, everything works fine. However, if I remove

All MS VS References broken after project moved

放肆的年华 提交于 2019-12-24 19:17:53
问题 Exactly as asked in Moved project, now references are broken -- having moved a project to another folder, now all of my references are broken , however, the answer there is incorrect, as we can see that it is not only the NuGet Packages are broken, but all of them, even including System , Microsoft.CSharp , etc: How to properly fix it? This is Microsoft Visual Studio Enterprise 2017 Version 15.3.5 VisualStudio.15.Release/15.3.5+26730.16 Microsoft .NET Framework Version 4.6.01038 UPDATE: Find

Some projects' dependencies contain unexplained code analyzers

萝らか妹 提交于 2019-12-24 17:26:06
问题 I have a couple of projects where under Dependencies there are one or two branches of code analyzers like this: I tried the right mouse click on every branch as explaind here but there is no option to configure them and I also searched for *.ruleset files insinde the solution, I also check the packages as shown in the docs but there is nothing like that anywhere. There is also nothing suspicious in the .csproj files, just some nuget packages that I've installed but nothing analyzer related.

Place for Test-projects in projects structure

别来无恙 提交于 2019-12-24 16:05:00
问题 Below you can see my current project structure. But I am not fully happy with it. The main problem is that I don't know where to put Test projects. According to the title, it would be logically to put YML.Tests inside YML folder. But in this case I will mix YML project structure and YML.Tests project folder (it is not critical but I don't like it). Another way is to rename YML.Tests to YMLTests and then there will be less reasons to put YMLTests inside YML. But then I will want to combine YML

How to have the same VS project with multiple .csproj files depending on the VS version?

≡放荡痞女 提交于 2019-12-24 09:27:53
问题 Sometimes I've seen a solution that includes up to three .csproj files for each project in the solution. Something like this: Project.UI.2005.csproj Project.UI.2008.csproj Project.UI.2010.csproj and the same with .sln files: ProjectSolution.2005.sln ProjectSolution.2008.sln ProjectSolution.2010.sln So if you copy the solution and want to open it using VS2005 , you just need to open Project.UI.2005.csproj or ProjectSolution.2005.sln . What is the best way of creating those 3 (or 2) files, in