projects-and-solutions

Visual Studio 2010 & 2008 can't handle source files with identical names in different folders?

风格不统一 提交于 2019-11-27 06:35:55
Direct Question: If I have two files with the same name (but in different directories), it appears that only Visual Studio 2005 can handle this transparently?? VS 2008 & 2010 require a bunch of tweaking? Aside from my naming convention, am I doing something wrong? Background: I'm developing C++ statistical libraries... I have two folders: / Univariate Normal.cpp Normal.h Beta.cpp Beta.h Adaptive.cpp Adaptive.h / Multivariate Normal.cpp Normal.h Beta.cpp Beta.h Adaptive.cpp Adaptive.h I need to support cross compilation -- I'm using g++/make to compile these same files into a library in Linux.

Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code)

折月煮酒 提交于 2019-11-27 06:33:39
问题 Visual Studio 2017 breaks in debug mode and displays the message: Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code). The message is in the Break Mode Window . What to do? 回答1: Click on "Continue execution" Then you will have the stacktrace in the output tab 回答2: First check all your common exception setting run time in your visual studio so that you can get the actual error. During loading you

The Ultimate Visual Studio Solution Structure

时光怂恿深爱的人放手 提交于 2019-11-27 04:57:53
问题 Realizing that this could be subjective based on the project at hand, I'm looking for the "best practice" method of structuring a VS (Visual Studio) Solution. Please feel free to edit this, comment on what you think might be incorrect, suggest alternatives, etc. I'd love to see this Community Wiki grow into a great resource for people just starting with VS Solutions. Below is what I have working for me now (on my current project), however I know for a fact that there is some stuff in the

Tool to view the contents of the Solution User Options file (.suo)

情到浓时终转凉″ 提交于 2019-11-27 04:23:56
Are there any free tools available to view the contents of the solution user options file (the .suo file that accompanies solution files)? I know it's basically formatted as a file system within the file, but I'd like to be able to view the contents so that I can figure out which aspects of my solution and customizations are causing it grow very large over time. The .SUO file is effectively disposable. If it's getting too large, just delete it. Visual Studio will create a fresh one. If you do want to go poking around in it, it looks like an OLE Compound Document File. You should be able to use

MSBuild does not contain a value for the “VCTargetsPath” property

孤者浪人 提交于 2019-11-27 04:12:26
问题 I recently installed the Visual Studio 11 Developer Preview to try it out, and now my VS 2010 projects won't open. Instead, I get the following error message: MSBuild does not contain a value for the "VCTargetsPath" property I found someone that had reported the issue here on Connect, and the response from Microsoft was: Posted by Microsoft on 12/2/2011 at 5:25 PM Hi Afshin, Thanks for the feedback. The issue you ran into is fixed for the next public release Visual Studio. Jim Griesmer Visual

How do I programmatically list all projects in a solution?

那年仲夏 提交于 2019-11-27 03:53:49
How do I programmatically list all of the projects in a solution? I'll take a script, command-line, or API calls. Here's a PowerShell script that retrieves project details from a .sln file: Get-Content 'Foo.sln' | Select-String 'Project\(' | ForEach-Object { $projectParts = $_ -Split '[,=]' | ForEach-Object { $_.Trim('[ "{}]') }; New-Object PSObject -Property @{ Name = $projectParts[1]; File = $projectParts[2]; Guid = $projectParts[3] } } watbywbarif var Content = File.ReadAllText(SlnPath); Regex projReg = new Regex( "Project\\(\"\\{[\\w-]*\\}\"\\) = \"([\\w _]*.*)\", \"(.*\\.(cs|vcx|vb)proj)\

Solution-wide pre-build event?

匆匆过客 提交于 2019-11-27 03:35:43
I have a solution in Visual Studio which contains several projects. I'd like to run a command at the very beginning of every build - no matter which projects are involved and whether or not they are up-to-date. Essentially I need something similar to a solution-wide pre-build event, but unfortunately VS does not appear to support these. Does anyone know an alternative way of achieving what I need? Hans Passant Unusual requirement. But it can be done. Add a new project to your solution, use the Visual C++ > General > Makefile Project template. Set its NMake > Build Command Line setting to the

Android - copy existing project with a new name

时间秒杀一切 提交于 2019-11-27 02:49:36
Using Eclipse. Say I have a project 'ProjectA' in the eclipseworkspace (in a folder ProjectA). I want to copy the project but with a new name (ProjectB) and have all the references in the new project adjusted. I can't find much help for what I thought would be a vary basic operation. I want to try out variations on the original design/code and creating a copy seemed the obvious way to go about it. Any suggestions please. I need it also today and i got the answer from my co-worker. you just copy your project into new one (ctrl+c & ctrl+v). you change package-name in your manifest After that you

Modify .csproj files programmatically

风格不统一 提交于 2019-11-27 01:59:11
问题 I have source code of Entlib 5.0 and I need sign all assemblies using my own key (snk file). The easiest way would be to open the EnterpriseLibrary.2010 solution file in Visual Studio 2010 and for each project, select Properties->Signing then select Sign the Assembly and finally select your key file. But I don't want to manually do that then I could write a script to manually edit the project files and insert the following at the end of the current list of PropertyGroups : <PropertyGroup>

Opening non-express VS projects with Visual Studio 2010 Express

房东的猫 提交于 2019-11-26 23:10:34
问题 Is it possible to open / edit a normal Visual Studio Solution with Visual Studio Express Edition ? 回答1: Yes this is possible with restrictions (not all project types are supported). You must edit the second line of sln-File. For example change " # Visual Studio 2010 " to " # Visual C# Express 2010 " This works for example for class libs or Windows Forms applications. 回答2: It depends. If this normal solution includes a unit testing project for example or a load tests or a modeling project