MSTest copy file to test run folder

use a DeploymentItem attribute using System; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using CarMaker; namespace DeploymentTest { [TestClass] public class UnitTest1 { [TestMethod()] [DeploymentItem(“testFile1.xml”)] public void ConstructorTest() { string file = “testFile1.xml”; Assert.IsTrue(File.Exists(file), “deployment failed: ” + file + ” did not get deployed”); } } }

How to Enable WiX Projects in Visual Studio 2015

Update 2015-09-08: WiX Toolset 3.10 is released with official support for Visual Studio 2015 editions. It is available for download from wixtoolset.org. You can manually enable Visual Studio 2015 compatibility with WiX 3.9 or earlier: Copy C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\WiX to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\WiX Then execute as Administrator: “C:\Program Files … Read more

Can I use mstest.exe without installing Visual Studio?

It is possible to run mstest.exe without visual studio. Download one of the Agents for Visual Studio ISO’s below and install the Test Agent on the server: Visual Studio 2019 Visual Studio 2017 (127MB disk space, less than that for download) Visual Studio 2015 and older: visit https://www.visualstudio.com/vs/older-downloads/ and follow the instructions This installs everything … Read more

How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress – Error 502 (Cannot debug from Visual Studio)?

Try changing the port number in your project? Project Properties → Web → Servers → Project Url: Don’t forget to click Create Virtual Directory, or reply “Yes” to the prompt for creating virtual directory after you change your port number! (Thanks Connor) Note: I’m a little reluctant to post this as an answer, as I … Read more

Edit and Continue: “Changes are not allowed when…”

Other Applicable Solutions: Below is an incomplete, unordered list of possible solutions to try if you* are trying to fix Edit & Continue quickly. Make sure you are in Debug Mode Make sure you’re not launching a mixed mode process Try to set the CPU target to x86 rather than AnyCPU (on x64 machines) Uncheck … Read more

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