projects-and-solutions

How do you Setup your Unit Test Project(s) in .Net?

不羁的心 提交于 2019-12-04 03:16:17
Can you share the way you setup your unit test projects within your .net solutions? I can imagine several possible methodologies. For example: Having a separate solution for unit tests, perfectly mirroring the structure of the original code solution being tested. Inside the original code solution, have a solution folder in which you're perfectly mirroring... Have a unit test project for each code project and residing alongside it inside the solution's tree structure. Have a unit test project covering several code projects residing alongside them in the tree structure. Would love to hear how

Custom common target to build a solution

↘锁芯ラ 提交于 2019-12-04 03:07:38
I created a custom common target "RealClean" which remove every files in the output and "intermediate output" directory. I put it in the Microsoft.Common.targets file. When I run MsBuild on my csproj everything is fine. But when I run MsBuild on my sln (which just references a list of csproj) I have the following error error MSB4057: The target "RealClean" does not exist in the project. Here is the command line I enter to run MsBuild C:\Windows\Microsoft .NET\Framework\v3.5\MsBuild.exe /p:Configuration="Release";OutputPath="..\..\MSBuild.Referentiel.net35";nowarn="1591,1573" /t:RealClean

Mark or highlight files in Visual Studios Solution Explorer

无人久伴 提交于 2019-12-04 02:17:58
is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ? I searched the Visual Studio Gallery but didn't find anything. Thanks! I found the extension Visual Studio Tags on codeplex that can do what we need, but there's not (yet) visual support (ie, diferent colors in solution explorer). To highlight only the active (open and viewed) item in the solution explorer (without any add-ins): Go to Tools -> Options -> Projects And Solutions Then Check the Track Active Item in Solution Explorer option. But if

Suggestions for maintaining Visual Studio vcproj project files in version control

烈酒焚心 提交于 2019-12-04 00:27:06
Microsoft Visual Studio uses XML to save its .vcproj project files. So diffing XML project files should be easily. Unfortunately, if you change any of the project file's properties, Visual Studio insists on randomly shuffling the XML nodes of the project file! This makes textual diffing and merging of project file changes basically impossible. Changing one compiler setting can make my visual diff tool think I've changed 50% of the lines in the file! I've even tried some XML diff tools, but they just show a more structured view of the same mess. Does anyone have any suggestions for maintaining

How to change name of project in Android Studio

百般思念 提交于 2019-12-04 00:23:56
Imported an eclipse project into Android Studio and saved it in a new folder. Changed the package name and everything to new names but the Project's name is still the one from the old project. How do I change the pointed name into something else? Try changing the contents of this file: C:\Path\To\Project\.idea\.name Change the name in manifest file. android:label="@string/app_name" There's a build.gradle file inside your app folder. Change the package name from there. Make sure you edit the build.gradle file inside your app folder, not the one in the root of your project. When you want to

Visual Studio: How to make one solution depend on another?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 22:11:38
Is it possible to make a solution in VS depend on (i.e. include) an entire other solution? I've seen some stuff about "Solution Folders", but these don't seem to be the same thing....? Thanks! (BTW, I'm using VS 2008) This post is old, but these days you can easily reuse dependencies in other solutions by building nuget packages for all of them. VS 2015 has nuget package building built in but is currently a Release Candidate. In Visual Studio 2013 you can use the Nuget.Packaging nuget package to allow your project to build as a Nuget Package. Then you can just publish new versions of your

How to handle shared projects in team foundation server source control structure

孤街醉人 提交于 2019-12-03 19:42:31
问题 After having read Team Foundation Server Source Control Structure which I have followed a few questions come to mind that I am wondering if anyone can comment on. I have a few components that make up a project I am working on. I have a smartclient, a webservice, a proxy for the webservice that the smartclient uses, a daemon and a common utilities library that is used in both the smartclient and the webservice. Each of the components are related to the same work project. I have structured my

asp.net MVC Solution/Project layouts [closed]

断了今生、忘了曾经 提交于 2019-12-03 14:19:44
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 months ago . This is more of an open question rather than looking for one specific answer. As we all know there is no one answer that fits all solutions but I am curious to find out how you structure you asp.net MVC solutions and any pitfalls you may have come across in your design or

Does the number of projects in a Visual Studio 9 solution impact the solution load and build times?

半世苍凉 提交于 2019-12-03 12:53:30
问题 I'm specifically interested in solution load times & build times - does fewer solutions mean better performance? Note that I'm not referring to the performance of the built application. Are load times and build times more efficient when working with a smaller number of projects? As a guide, we have 50-60 projects in our Visual Studio solution. 回答1: I depends on your project, most of the time I work with 10-15. The less projects the shorter the build time. Projects I typically have are: base

“Add existing item” in Visual Studio: is it possible to make “Add as link” default?

馋奶兔 提交于 2019-12-03 12:49:27
问题 As pointed out in this SO answer, the Add > Existing item dialog in Visual Studio by default displays the Add button (meaning that the selected items will be physically copied to the new location), whereas the desirable action is often (always?) to Add as Link . Is it possible to configure Visual Studio so that Add as link is selected by default when opening the Add > Existing item dialog? I have thoroughly searched the Options dialog in Visual Studio and examined the MSDN documentation for