projects-and-solutions

Custom Common Library Classes in Visual Studio .NET

I wrote some classes that I use with many different projects. For example, I use Library.Controls.FlatButton.cs almost in every project. The problem is when I add this as an "existing item"; the class gets created/copied in my soultion folder everytime. And each time I edit/update the contents of that class, I have to update all the Libr...

Production quality WPF examples

Hi, As I'm learning WPF I came across quite a few examples, but mostly all of them have a disclamer like 'this is not production quality code', as they refer to a specific issue they're addressing. What I would like is to see how is WPF used in reallife, the application as a whole, so that in one example I can see all of the best pract...

How to share properties between multiple Visual Studio projects? (especially C# projects)

Keeping properties of multiple Visual Studio projects manually in sync is annoying. So, how can you share properties between multiple projects? Edit: I refer to properties like conditional compilation symbols, treatment of warnings and errors etc., i.e., things you can configure in Project->Properties tabs or by editing the project XML...

Why does Visual Studio create a website Solution in the Project directory and the website in the Websites directory?

When creating a website in Visual Studio 2010 (I think 2008 had the same behavior): File > New Website, VS creates the solution files in the Projects directory and the website in the Websites directory. What is the purpose? Why not just create the solution files under the Websites directory? ...

Why does Visual Studio Premium 2010 not show all of the available project templates?

I'm trying to create an ASP.NET Web Application, but this is all I see: I have confirmed that I have the full Visual Studio installed, not just Visual C#. Why can't I see ASP.NET Web Application in the "new project" list? ...

Splitting up a .NET solution/Git repo for multiple apps

I currently have a single solution that contains both the one application developed so far and projects for all of the homegrown libraries. This entire solution is also kept in a single Git repo. I am now going to be developing a second application that will make use of those same libraries. That application will have different releas...

Changing Visual Studio default path for .cpp, .h file

Hi, I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/include and my src file in /ProjectPath/src. That way, if I use the "Create class wizard" for instance, it would put the good path by default without me having to change the folder. Anyone know what setting I should change to get this behaviour when...

How to organize business logic (domain model)

Let's say you have good separation of concerns for a given application such that you have all of your business logic in a single project (let's call it MyApp.Core) and that project has no explicit dependencies on other projects. The repository implementations are in MyApp.Infrastructure and the presentation is in MyApp.UI. Unit tests a...

VS 2010: automatic declaration of controls in code-behind (*.designer.cs) files, when those are in a separate project - how?

In a simple web application project, when adding new controls to an *.aspx file, Visual Studio generates a corresponding declaration of that same control in the *.designer.cs file. This works well (at least most of the time, as some might know) ;-) Now, we have a more complex setup where we've decided to move all code-behind files to a ...

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

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 fo...

C# solution referencing a pre-built .exe

I have a project which is the core of our application. We build several DLLs and an EXE. We then have custom projects which use pre-built core DLLs and EXE and add customisations/extra bits as required. These customisations are always DLLs, the core EXE is always used. The core DLLs/EXE are referenced by the custom solution. I'm hav...

Sharing projects in multiple solutions fails because of project references in VS2010

We have a lot of native C++ static libs and DLL's that make up our application. In VS2010 it is possible to use references for native C++ projects between the dependend projects to force the correct build order. We used to do this with project dependencies but they were stored at the solution level. We do not share solutions, only the p...

How do I start a CUDA app in Visual Studio 2010??

Direct Question: How do I create a simple hello world CUDA project within visual studio 2010? Background: I've written CUDA kernels. I'm intimately familiar with the .vcproj files from Visual Studio 2005 -- tweaked several by hand. In VS 2005, if I want to build a CUDA kernel, I add a custom build rule and then explicitly define the...

N Layered MVC Project Question

Hello, I am getting a bit confused about how an N Layered MVC application should look. I am thinking as standard there should be: ASP .NET MVC Project Service Layer Data Access Layer (containing repositories) I am confused as to where the entity framework model should sit (.edmx). Should it be in the Data Access Layer? Should any par...

Best Solution Architecture

Hi, folks. this time i'm dealing with this issues, we are currently starting a new project in which there are several requirements that we need to accomplish. Solutions must run on Mac,Windows and Linux. Can be configured to use a embedded database engine such as SQLite or Apache Derby, and can also be configurated to connect to a rem...

Reading the list of References from All csproj project of solution sln (programmatically)

I have solution sln, that has many csproj projects. anyone know a way to programmatically read the list of References of all csproj projects in a VS2008 of sln file? ...

Good Mobile and Desktop Architecture

Hi there, this question is a extension of one made in http://stackoverflow.com/questions/3782849/best-solution-architecture, basically i want to know what is the best architecture to deal with a solutions where both desktop and mobile applications are involved. in this time i would like to know, what if we decided to go over java technol...

Reading the list of All csproj projects of solution sln (programmatically)

I have solution sln, that has many csproj projects (P1.csproj, P2.csproj, P3.csproj...). anyone know a way to programmatically (using scripting-commandline, APIs, or SDKs) read the list of all csproj projects in a VS2008 of sln file? ...

Multiple WCF Projects vs Single Project in Solution

Currently we have 12 WCF projects in our solution. Each project is essentially it's own endpoint. For example the "Order" WCF project is the Order.svc endpoint. These 12 endpoints are exposed by a single WebHost project. The WebHost project has 12 .svc files pointing to each corresponding assembly/namespace. My question revolves aro...

Anyone else notice that $(SolutionDir) resolves to ProjectDir when loading Wix projects into Vs2010?

I'm using Vs2010 and Wix 3.6.0917.0, for the record. I use the $(SolutionDir) property quite a bit in my .wixproj file, since I only ever build the installer as part of a solution build or as part of a team build, and never by itself. However, while building from the command line works just fine (both from cmd on the desktop and when bui...