projects-and-solutions

Spring MVC - Project structure - best practices [closed]

我是研究僧i 提交于 2019-11-29 20:51:41
What's the best approach? 1- Create multiple projects: 2- Create a single project: I'd suggest you take a look at Spring's Project Sagan. It's the source code for their current website ( http://spring.io ). While they used a multi-module approach, it wasn't divided as you are suggesting. They really just pulled out some client work and kept the rest in a single module. This site was written by the Spring team the way they would use their own tools and released as a reference application to answer questions just like this. I encourage you to take a look here: https://github.com/spring-io/sagan

Working with different versions/branches of the same Visual Studio 2005 solution

▼魔方 西西 提交于 2019-11-29 18:43:36
问题 This is kind of a usability question for using VS2005: I have different branches of the same Visual Studio 2005 solution checked out from version control. The solution and project files are also under version control. On my development workstation, I sometimes have multiple instances of Visual Studio opened on a different version or branch each. They all show up under the same name in the window title and the taskbar, which makes it hard to switch to the correct one etc. (The same goes for

Open a VS 2005 Solution File (.sln) into memory

旧时模样 提交于 2019-11-29 15:43:54
I would like to open into memory an existing .sln file. Example of a non-working method: private Solution2 OpenSolution(string filePath) { Solution2 sln; sln.Open(filePath); return sln; } If I have an instance of Solution2 then i can call the method Open; but how can i get an instance of Solution2 ? My goal is then to get the adequate project and read some of its settings... but that's easy having access to the solution. Thanks in advance, Luís You can programmatically create a hidden instance of Visual Studio, and then use it to manipulate your solution. This example will list out all the

Linker errors between multiple projects in Visual C++

余生颓废 提交于 2019-11-29 09:29:19
I have a solution with multiple projects. I have a "main" project, which acts as a menu and from there, the user can access any of the other projects. On this main project, I get linker errors for every function called. How do I avoid these linker errors? I set the project dependencies already in the "Project Dependencies..." dialog. Thanks EDIT -- I did as suggested and added the output folder to the linker's additional directories. Now, however, I get a million errors as follows: 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ios >::setstate(int,bool)" (

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

本小妞迷上赌 提交于 2019-11-29 07:11:50
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 development paradigm). (This question is related to answers to this question about structuring large

How do you organise open-source Visual Studio projects with open-source dependencies?

余生长醉 提交于 2019-11-29 06:11:09
I've started an open source MVC4 project that is using some other open source project as a dependency. I've forked the other project and will be modifying it according to my needs. The problem I'm facing is how to keep these projects depending on each other, but maintained separately. Yet people who git pull my project, would get the dependency project as well? I can slam all the related code from other project into my repository, but this way I won't be able to contribute to a fork of dependent project. I'll just become a part of my repository. Not really want to do that. I can maintain other

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

懵懂的女人 提交于 2019-11-29 05:31:10
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, is this a known bug? UPDATE 1: Tried running devenv /resetsettings as well as devenv /safemode but the

F#, namespaces, modules, fs and fsx

随声附和 提交于 2019-11-29 02:54:40
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 with Alt-Enter . I've tried adding same namespace at the top of the script file, but it doesn't like that.

How can I hide files from Solution Explorer by name in VS2015?

天涯浪子 提交于 2019-11-29 02:19:02
问题 I am writing a website in VS2015 using the ASP.NET Preview template. Unfortunately, Dropbox has added a bunch of .dropbox.attr files in each folder of my project, which the Solution Explorer is displaying: Note that I have not added them to the project manually, (they are not referenced in my Web.xproj ,) and I do not have "Show All Files" selected. I have already added them to my .gitignore . There is no "Remove" option when selecting the file: Lastly, I have tried adding them to my project

How to handle same class name in different namespaces?

梦想的初衷 提交于 2019-11-29 01:12:37
I am trying to create a common library structure. I am doing this by creating separate projects for every common lib i want I have the following 2 namespaces: MyCompany.ERP and MyCompany.Barcode I need both of them to have a class named "Utilities" and be static. If i do that i will then need to specify the full namespace name before my static class in order to access it. Is there any other preferred way to do it? Or i should go for different names in classes like BarcodeUtils and ERPUtils ? If i do that i will then need to specify the full namespace name before my static class in order to