mstest failing to start - mstest

The run.mstest command is inititated but the following error message displays. No logs are generated nor are any tests run, but the build is reported as successful.
[exec] 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe' failed to start.
What does this mean?

You'll need to find more information. Can you open up a Visual Studio Command Prompt and run your 'mstest' against your test assembly to see what output you get?

Related

Dotfuscator command exited with code -1073741571

While trying to build the Android project, part of a Xamarin.Forms project, using Dotfuscator Community I get the following error: The command ""C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorUI.exe" /p:InDir="obj\Release\120\DotfuscatorXamarin\dfin",OutDir="obj\Release\120\DotfuscatorXamarin\dfout",ReportDir="DotfuscatorReports\Release" "DotfuscatorConfig.xml"" exited with code -1073741571.
Note that I have changed dotfuscator.exe to dotfuscatorUI.exe in the <DotfuscatorXamarinCliPath> tag, based on this answer, because initially I was getting a code 1 error.
Any suggestions?

VisualStudio crash on startup - Error:"streamjsonrps.remoteinvocationException: could not load file or Assembly System.Linq"

I'm getting error message when start Visual Studio 2017 Community version.
At crash with below error message:
Could not start visual studio due to an error.StreamJsonRpc.RemotelnvocationException
Could not load file or assembly System.Linq, Version=4.O,O.O,
Culture= neutral, PublicKeyToken= bO3f5f7f1 1 d5Oa3a or one
of its dependencies. The module was expected to contain an
assembly manifest.
I re-install visual studio, but still getting same error message.
Any help will be appreciate.
I had a similar issue workaround. try this command in the in run window "devenv /ResetSettings"
Please follow the following
1- Stope any antivirus
2- Open Developer Command Prompt for VS 2017
2- run "devenv /nosplash"
I hope this can fix the issue

How to fix build error when running `react-native run-windows`?

After running react-native windows in a freshly initialized React Native app, if you immediately run react-native run-windows this error happens:
Build failed with message Error: Command failed: "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe"
"C:/<path_to_project>/windows/<project_name>.sln" /clp:NoSummary;NoItemAndProperty;Verbosity=minimal /nologo
/p:Configuration=debug /p:Platform=x86
. Check your build configuration.
This can happen when you have installed Visual Studio, but never started it as "devenv.exe" before trying to use some commandline tools. There is some additional setup that happens on first launch of Visual Studio before the commandline tools can be invoked by the react-native run-windows command.
See the React Native Windows troubleshooting section for more information:
https://github.com/microsoft/react-native-windows/blob/0.60-stable/current/docs/SetupTroubleshooting.md

Unit Test failed when using Visual Studio Command Prompt

I have class library project which reads word document files. and I have created 30 unit cases scenarios for it. When I run the unit test using visual studio IDE it runs perfectly and all the test cases get "Success", However when I use Visual Studio Command Prompt and test it, some of the test cases get failed. I would appreciate if you guys can provide me some hint in this regard.
To test my solution in Command Prompts I type: "MSTest /testcontainer:mysolutiontest.dll"
If you are running VS2012 or later, use vstest.console.exe:
"C:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\ide\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
PathToYour.dll /logger:trx
You'll also probably want to use a .runsettings file to specify the TargetPlatform and ResultsDirectory, which would then use a command line like this:
"C:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\ide\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
PathToYour.dll /logger:trx
/settings:PathToYour.runsettings

Error when running unit tests from MSBuild

I have an MS Build script that runs on the build server and then runs unit tests (have runtests set to true).
I am getting the following errors when calling MSTest. Some people suggested installing Visual Studio 2010 Test Edition and Team Explorer 2010. After doing that am still getting the same errors. Seems I need a specific version of MSTest to be able to publish to TFS.
Any ideas?
===========================================================
The "TestToolsTask" task is using "MSTest.exe" from "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe".
Invalid switch "/publish".
Invalid switch "/publishbuild".
Invalid switch "/teamproject".
Invalid switch "/platform".
Invalid switch "/flavor".
For switch syntax, type "MSTest /help"
MSBUILD : warning MSB6006: "MSTest.exe" exited with code 1.
===========================================================
Try installing VS2010 Premium or Ultimate, these include a version of MSTest that supports the switches for publishing test results. See also Running VS2012 unit tests or Running VS2010 unit tests.

Resources