Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 default .testsettings

I have solution containing a Local.testsettings file. In Visual Studio 2012 we must select manually in each development machine the active .testsettings file to use.

enter image description here

I can not understand how to tell to Visual Studio 2012 that the solution default .testsettings file is the Local.testsettings and to be able to setup that information in some versionned file (.sln or other) so that other users does not need to setup manualy the active settings file.

like image 771
enenkey Avatar asked Nov 02 '22 12:11

enenkey


1 Answers

Edit solution file and add following

 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9BEFB796-EFAA-45DD-810E-8785A8F88FB0}"
        ProjectSection(SolutionItems) = preProject
            CommonAssemblyInfo.cs = CommonAssemblyInfo.cs
            DevBuild.testsettings = DevBuild.testsettings
            Local.testsettings = Local.testsettings
            TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
        EndProjectSection
    EndProject

and check in this file and test setting files

like image 159
vishal mane Avatar answered Dec 18 '22 12:12

vishal mane