projects-and-solutions

Visual Studio open files question

一世执手 提交于 2019-11-27 19:40:30
Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may not even need open. I have searched through the settings and cannot find anything to stop this behavior. Simply delete the .suo file. It contains the list of open files. A bit of research turns up the fact that you can do it with a macro: Create a new macro (or use an existing one).

Easy way to add multiple existing .csproj to a Visual Studio Solution?

两盒软妹~` 提交于 2019-11-27 17:50:46
I've checked out a branch of C# code from source control. It contains maybe 50 projects in various folders. There's no existing .sln file to be found. I intended to create a blank solution to add existing solutions. The UI only lets me do this one project at a time. Is there something I'm missing? I'd like to specify a list of *.csproj files and somehow come up with a .sln file that contains all the projects. Here is a PowerShell version of Bertrand's script which assumes a Src and Test directory next to the solution file. function GetGuidFromProject([string]$fileName) { $content = Get-Content

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

这一生的挚爱 提交于 2019-11-27 17:29:53
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 C++ Team Fantastic. So how do I restore VCTargetsPath so my projects will work again? "VCTargetsPath

F#, namespaces, modules, fs and fsx

我们两清 提交于 2019-11-27 17:11:53
问题 I'm aware of other questions about modules and namespaces in F#, but they're not helping me right now. I've got a project with Utilities.fs namespace Company.Project.Namespace module Utilities = //stuff here Functions.fs namespace Company.Project.Namespace open Utilities module Functions = //stuff here And I'm trying to test them in an fsx: #load "Utilities.fs" #load "Functions.fs" which gives me error FS0039: The namespace or module 'Utilities' is not defined when I try to send it to FSI

Visual Studio Solutions / Multiple project : How to effectively propagate project properties amongst several C++ projects

微笑、不失礼 提交于 2019-11-27 17:10:30
I am working with a Visual Studio 2005 C++ solution that includes multiple projects (about 30). Based upon my experience, it often becomes annoying to maintain all the properties of the projects (i.e include path, lib path, linked libs, code generation options, ...), as you often have to click each and every project in order to modify them. The situation becomes even worse when you have multiple configurations (Debug, Release, Release 64 bits, ...). Real life examples: Assume you want to use a new library, and you need to add the include path to this library to all projects. How will you avoid

Best practices for large solutions in Visual Studio (2008) [closed]

主宰稳场 提交于 2019-11-27 16:40:28
We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking for best practices for such beasts. Along the lines of questions I am hoping to get answers to, are: how do you best handle references between projects should "copy local" be on or off? should every project build to its own folder, or should they all build to the same output folder(they are all part of the same application) Are solutions' folders a good way of organizing stuff? I know that splitting the solution up into multiple smaller solutions is an option,

Cannot add reference to project because of a circular dependency error

旧街凉风 提交于 2019-11-27 15:30:51
问题 I created 2 dummy projects in my application and named them BAL and DAL . When I build them, they build successfully. If I add a reference to BAL to the DAL project, it added nicely. But while adding the DAL reference to the BAL project, I get the following error: A reference to DAL could not be added. Adding this project as a reference would cause a circular dependency. Can anyone help me to solve this error? 回答1: Here's what you need to do: Right click on the DAL Project in the solution

ASP.NET MVC project “not supported by this installation”

不打扰是莪最后的温柔 提交于 2019-11-27 13:35:13
问题 I can create new MVC projects and they work and run however trying to open an existing project is not working at all I tried the following changing the project type to: <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> (this worked on migrating a project from Asp.Net MVC preview 1 to preview 2 BTW) Changed the Reference to: <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture

Visual Studio 2012 doesn't convert vs2010 solution?

大憨熊 提交于 2019-11-27 13:23:45
I opened my vs2010 solution with vs2012 but it didn't make any conversion as from 2008 to 2010 was happening. So my solution still remains the same as 10 label on it. when I make a new solution of course it has 11 label on it. I haven't got any problem running like that but I am curious. Is there any difference? if yes, how to convert into vs2012 solution? There are some exceptions , but mostly you'll be able to open the same project and solution files files in both VS2012 and VS2010 SP1. VS2012 may convert projects when you first open them, but the changes are (except noted in the document

Merges on IntelliJ IDEA .IPR and .IWS files

主宰稳场 提交于 2019-11-27 13:03:48
问题 We keep our IntelliJ .IPR and .IWS files in our source control, but they keep getting modified by IntelliJ just by opening them, even without any work being done on the project. What are we doing wrong? 回答1: "We keep our IntelliJ .IPR and .IWS files in our source control, but they keep getting modified by IntelliJ just by opening them, even without any work being done on the project." The .IWS file is definitely a per developer file so it shouldn't be under source control. As for the .IPR