projects-and-solutions

VS2008: Where is the Startup Project setting stored for a solution?

拜拜、爱过 提交于 2019-12-20 17:30:02
问题 When I right-click my solution in the Solution Explorer and choose Properties I get a dialog where I can select the Startup Project. I sometimes select Current selection (If it is an experimental solution with lots of projects I jump between), but most often it is a Single startup project selected, which would usually be the main WinForms applications or or Console application. My problem is that whenever I do a treeclean with the tfpt command (Team Foundation Power Tools 2008) this setting

msbuild SLN and still get separate project outputs?

自作多情 提交于 2019-12-20 14:09:02
问题 I have a normal SLN file, and I'm compiling it fine with msbuild from the command line. I do this: C:\slndir> msbuild /p:OutDir=C:\slnbin\ And it dumps everything into C:\slnbin, except for websites, which get deployed to C:\slnbin_PublishedWebsites\. What I would like is to not only have all the binaries dropped in the bin dir, but also have each executeable program have it's own "deployed" folder, similar to what each website gets. So, for example, If I have the following projects: - Common

How to fix visual studio 'projects out of date' message each time I run it

天涯浪子 提交于 2019-12-20 13:26:56
问题 I have a visual studio (2005) solution file with 70 projects. Each time I press F5 to run it, it tells me that 4 of the projects are out of date, and asks me if I want to rebuild them. It does this even though I have just done a full build. I understand (in principle) that one of the other projects must update something that these projects depend on, but how do I go about finding out what? Are there any tools to help, or what procedure should I follow to figure out what is causing VS to flag

.NET solution - many projects vs one project

≯℡__Kan透↙ 提交于 2019-12-20 08:44:59
问题 We currently have a rapidly growing C# codebase. Currently we have about 10 projects, split up in the usual categories, common/util stuff, network layer, database, ui components/controls etc. We run into the occasional circular dependency where project x depends on something in y and vice-versa. We are looking at maybe collapsing the projects down to one and just managing using structure folders/namespaces. We have a Java project which of course organises just using folders/packages so we're

How to diff/merge changes to a deployment project file

我是研究僧i 提交于 2019-12-20 03:49:05
问题 I am currently using CVS (not my choice) and have several branches. I'm trying to merge two branches, but a deployment project file has conflicts that I can't resolve without spending a LOT of time. A trivial change to a project file results in drastic changes to that project file - thanks to GUID changes I guess (making a project file change, getting a clean copy and making the same change seems to yield two fairly different project files) So I need to determine all the actual changes that

Separate projects or multiple class files … namespace best practice in C#

这一生的挚爱 提交于 2019-12-19 19:44:25
问题 I'm creating a library for use with an application that I am building. I am building a name space structure similar to below. MyNamespace.Validation MyNamespace.Reports MyNamespace.Transactions MyNamespace.DataImport etc... Would it be best practice to create a solution with multiple projects for each sub namespace or one project with multiple class files for each sub namespace? Thanks. 回答1: There are pros and cons to both approaches, which you need to personally decide between for your own

How to open a Visual Studio Code Folder (Project) in Visual Studio IDE

大兔子大兔子 提交于 2019-12-18 12:49:57
问题 How do I open I a Visual Studio Code folder in Visual Studio 2015? If I open it as a "Web Site", it tries to treat the node_modules directory as part of the project's normal JavaScript files and hits an error when the path exceed the maximum path length. But I can't open it as any other project type unless I first create a project of that type and then move all the VS Code files into that folder. Should I be trying to open it as a web site? Or should I create a new project and then copy the

Display solution/file path in Visual Studio IDE

こ雲淡風輕ζ 提交于 2019-12-18 10:21:32
问题 I frequently work with multiple instances of Visual Studio, often working on different branches of the same solution. VC6 used to display the full path of the current source file in its title bar, but Visual Studio 2005 doesn't appear to do this. This makes it slightly more awkward than it should be to work out which branch of the solution I'm currently looking at (the quickest way I know of is to hover over a tab so you get the source file's path as a tooltip). Is there any way to get the

VS2012: Property Pages isn't opening: Object reference not set to an instance of an object

雨燕双飞 提交于 2019-12-18 04:30:16
问题 I'm on Visual Studio Premium 2012, Version 11.0.50727.1 RTMREL, Windows 7 Enterprise (SP1). When I right click on the Solution, and click Properties, I get a popup window showing the the null reference exception (Object reference not set to an instance of an object). When I try the same in 2010, it works fine, opening up the normal solution properties pages, allowing me to set the startup order etc. Also, in 2012, View -> Property Pages, gives the same result. Please advise how to solve this,

What is “src” directory created by Eclipse?

梦想与她 提交于 2019-12-17 19:41:46
问题 I just installed Eclipse. The Eclipse created the "workspace" folder. In this folder I created a "game" sub-folder (for my class called "game"). I have already .java files for that project (I wrote them in a text editor before I started to use Eclipse). I put all my .java file into the "game" directory. In Eclipse I created a "New Java Project" from existing code. What wanders me is that the Eclipse create a "src" sub-folder into my "game" folder. As far as I understand "src" stands for