How to link multiple visual studio solutions together?

This question has popped up in different, but related, forms. There is actually an MSDN page that covers this. What you’re looking for is a multi-solution approach akin to the Partitioned Single Solution Model for Larger Systems. Have one “everything” solution that builds everything and maintains your inter-component dependencies. This is what you build when … Read more

Spring MVC – Project structure – best practices [closed]

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 … Read more

The Ultimate Visual Studio Solution Structure

Nice Wiki. I’m starting a new project, and this is structure i have begun with. It follows the Microsoft Best Practices (Business, Data, Services, Presentation). In my solution: Business: domain/project-specific logic, and most notably POCO’s. Data: repositories. self explanatory. Services: logic on top of repositories. i can add caching here, filtering, etc. My UI communicates … Read more

Cannot add reference to project because of a circular dependency error

Here’s what you need to do: Right click on the DAL Project in the solution explorer and select Project dependencies in the context menu. You will now see a window that shows the project dependencies of the DAL Project. Make sure that BAL isn’t checked. Now you should be able to add your reference… I … Read more

Is there any guidance on converting existing .NET class libraries to portable libraries?

We also converted existing libraries to portable libraries and it works fine. You have to modify the project file. Replace the following line: <Import Project=”…” /> with <Import Project=”$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets” /> Add following line inside a PropertyGroup tag <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> And remove following lines from the AssemblyInfo.cs file [assembly: ComVisible(false)] [assembly: Guid(“…”)] After that, Visual Studio should … Read more

How do I programmatically list all projects in a solution?

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] } }

How to force Visual Studio not to add GlobalSection(Performance) section?

Open the PerformanceExplorer in Visual Studio by using the Menu Analyze -> Windows -> PerformanceExplorer and check if it lists any session entries. If so delete them by doing a right-click on an entry to open the ContextMenu. Then select “Remove” from the menu. You should also check the folder of your solution if it … Read more

Project Order in Visual Studio Solution

There is a feedback Request already placed at Connect.Microsoft.com so, you will have to wait for the permanent solution. http://connect.microsoft.com/VisualStudio/feedback/details/468874/solution-explorer-project-sort-order (replaced with Wayback Machine link as original was removed) Temporary workarounds are available but not good enough I feel. One of them is: Press F2 to rename a project, then press Enter without changing the … Read more

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

It seems reasonable that the solution Gavin Pugh gave would fix the problem, though I didn’t try it. I too ran into this problem after uninstalling the Developer Preview of VS11. I think I know what is really wrong though. Mladen Jankovic was on the right track. One of the follow two (necessary) registry keys … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)