projects-and-solutions

Delphi: How to set the default project in a project group?

我是研究僧i 提交于 2019-12-11 03:41:53
问题 i have two projects in a project group: ProjectA ProjectB Whenever i open the ProjectGroup.bpg in Delphi, it always starts with the 2nd project as the active one: ProjectA ProjectB And every time i have to flip it to the the "real" project: ProjectA ProjectB How can i make ProjectA the default project that opens with the project group? ProjectGroup.bpg #------------------------------------------------------------------------------ VERSION = BWS.01 #--------------------------------------------

Visual Studio 2017 C++ Project Copy Text Files to Output Directory

不打扰是莪最后的温柔 提交于 2019-12-11 02:44:35
问题 I have a number of *.txt files included in my Visual Studio 2017 C++ project ( *.vcxproj ). Does anyone know how to get Visual Studio to copy these files to the output directory? I found a similar question for VS 2010, but that answer doesn't work in Visual Studio 2017. 回答1: In the *.vcxproj file, change: <Text Include="Filename.txt" /> to: <Content Include="Filename.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> Then in the *.vcxproj.filters file, change:

CMake: How to add .def file to Visual Studio project filters?

若如初见. 提交于 2019-12-11 02:13:00
问题 How to add .def file to Visual Studio project filters ( *.filters file)? Visual Studio consumes .def file. CMake code: set(a_src a.cpp a.def) add_library(a SHARED ${a_src}) In solution and then in project there is no a.def file in filters, only a.cpp. But CMake generates a rule for .def file (/DEF:a.def option to linker). Is there any way to show .def files in the project filters ( a.filters file near the project)? 回答1: This is a CMake bug. It is reported in their tracker at http://www.cmake

How to change WCF project Platform Target to x86?

99封情书 提交于 2019-12-11 01:34:48
问题 I wrote a project that uses third party project and I can only run it if the "Platform target" under "Build" under "Project Properties" is set to "X86" and NOT "Any CPU" in My project. However when I'm trying to use this third party project with My WCF project, the "Platform Target" feature does not appear under the WCF Project properties and therefore it fails to run. Does anyone know how to set the "Platform Target" of a WCF project or how can I make the third party project run on "Any CPU"

asp.net web application with c# & vb.net both in codebehind

怎甘沉沦 提交于 2019-12-11 00:24:14
问题 We currently have a asp.net website with some modules developed in VB.Net & some in C# (not just classes but also individual aspx pages and code behind). We figured we wanted to move to web application model as we need to implement CI with TFS. The problem : When we create a C# web application, copy the files from website & say convert to web application it gives Could not Parse errors (probably because files are vb.net files) When we create a VB.NET web application, copy the files & say

Cannot open xaml pages in Blend after installing Visual Studio 2012 Update 2 (CTP)

青春壹個敷衍的年華 提交于 2019-12-10 23:42:42
问题 I am experiencing something weird at the moment. After I installed Visual Studio 2012 Update 2 (CTP), I can no longer open xaml pages properly in Blend designer view. Looks like everything from other namespaces just cannot be found (see screenshot below)... Please also note that the whole solution compiles ok if I close up all the xaml pages, and runs well too. But as soon as I open any of the xaml pages, it will throw me those errors... UPDATE 13 MAY 2013 Just an update, a couple of days ago

In a Visual Studio 2010 C/C++, what does the “Rescan Solution” operation do?

孤街醉人 提交于 2019-12-10 23:36:51
问题 I'm trying to compile a third-party project and I'm getting a few linking issues. I'm not having much trouble fixing the minor issues but I noticed their was a "Rescan Solution" option in the context menu of the project or solution. I clicked it but it didn't seem to do anything. What, exactly, does it do? 回答1: This command updates out-of-date files in the project browsing database. Nothing to do with compilation/linking problems. 来源: https://stackoverflow.com/questions/7259010/in-a-visual

VS2010 project dependencies

假装没事ソ 提交于 2019-12-10 20:22:17
问题 I have a c++ project in VS2010 and a c# project that is to consume this c++ project output (it uses it for p/invoke). I was thinking that I could ensure that the c++ project was build before the c# project by editing the "Project dependencies..." in the solution but this does not seem to have any effect, the build on my buildserver does not respect this setting (I'm using TeamCity to bootstrap an MSBuild file that builds the entire solution file) I think this used to work, has anything

How to create a Visual Studio 2008 C++ project template?

这一生的挚爱 提交于 2019-12-10 19:53:40
问题 I've used the "Export Template" feature numerous times for C#, ASP.NET, WinForms, etc. projects. Today I tried to do it for a C++ project and noticed "Export Template" was grayed out in the File-menu. Is it not possible to create C++ template projects in VS 2008 ? 回答1: yes it is: the ones you see already when creating a new project are in $VsInstallDir)/vcprojects. To create one yourself, you basically create a .vsz and a.vsdir file in which you describe your project template, a bunch of

Add context menu to VS 2010 solution explorer (display item on solution only)

我的未来我决定 提交于 2019-12-10 18:59:31
问题 It is fairly easy to add a context menu item to the solution explorer in VS 2010. But how to display the menu item ONLY on solution items? Not on project items or something else? Best regards, D.R. 回答1: Use <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_SOLNNODE"/> and reset the experimental instance before restarting VSX (you can find the reset script in the VS start menu folder) 来源: https://stackoverflow.com/questions/7418038/add-context-menu-to-vs-2010-solution-explorer-display-item-on