Problems: Setting up MSTest2012 on a jenkins server without installing VS2012 - visual-studio-2012

I trying to setup MSTest2012 on a jenkins server without installing Visual Studio 2012 on it. I made it so far that I don't receive any "Assembly not found" error messages.
I was going to do some functional tests, so I copied a vs2012 project from my local machine to my jenkins server and tried something like that in cmd:
C:\VS2011Stub\Common7\IDE>MSTest.exe /testcontainer:D:\Users\Jenkins\Documents\V
isualStudio2012\Projects\HelloWorld\UnitTestProject4\bin\Debug\UnitTestProject4.
dll
Microsoft (R) Test Execution Command Line Tool Version 11.0.50727.1
Copyright (c) Microsoft Corporation. All rights reserved.
Loading D:\Users\Jenkins\Documents\VisualStudio2012\Projects\HelloWorld\UnitTest
Project4\bin\Debug\UnitTestProject4.dll...
D:\Users\Jenkins\Documents\VisualStudio2012\Projects\HelloWorld\UnitTestProject4
\bin\Debug\UnitTestProject4.dll
Ein Aufrufziel hat einen Ausnahmefehler verursacht.
This error message (Ein Aufrufziel hat einen Ausnahmefehler verursacht -> in english: Exception has been thrown by the target of an invocation.) is pretty... unhelpfully.
On my local machine the same cmd-code looks like that:
I dont know what to do... any suggestions, solutions??? Maybe someone have the same problem :/ Maybe mstest2012 still need other files to run correctly??
Im happy about every help!
edit:
I followed these steps to build MSTest.exe (VS2012) as standalone program on my jenkins server
edit2:
!!!Problem solved!!!
A few Microsoft.VisualStudio.QualityTools.#.dll's in GAC folders i copied didnt contain a version=11.0.0.0, so i openend C:\Windows\Assembly an took a look at the Microsoft.VisualStudio.QualityTools.# and checked the aviable versions and added the missing latest 11.0.0.0 Microsoft.VisualStudio.QualityTools.#.dll files on my jenkins server and registered them via gacutil(ver 4.0.30319.17929).
MSTest works now as stand alone program without installing MS Visual Studio 2012.
If anybody needs an instruction file just ask and i will upload it =)

Related

vscode crashes on Arch linux when opening file/folder

Installation vscode
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
It seems like the official Microsoft build should be obtained via the snap store:
sudo snap install code --classic
And the program looks normal. I can install plug-ins, create a new file et cetera.
Problem
However, I cannot open any files or projects. Doing so results in vscode crashing. I read that code --disable-gpu could solve this problem, but doesn't do so for me.
Any ideas
what may cause this crash?
or how to get the pacman vscode working?
Logs
$ code --verbose
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
(code:33833): GdkPixbuf-WARNING **: 22:59:19.817: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
[33863:1104/225919.911481:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
[main 2020-11-04T21:59:19.960Z] Sending env to running instance...
[main 2020-11-04T21:59:20.041Z] Sent env to running instance. Terminating...
[main 2020-11-04T21:59:20.041Z] Lifecycle#kill()
where the recommended gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache results in bash: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache: No such file or directory
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
I had the same issue trying to get the debugger to work and I spent hours on finding the reason for this. What I found out is that the debugger only works with officially signed Microsoft binaries of VSCode. So you have to make a distinction here:
The package code contains the open source version of visual studio code, a build wich anyone can make using the provided sources by Microsoft. The program which you get here is therefore not signed by MS!
The package visual-studio-code-bin provided by the AUR contains a officially signed version by MS. If you use this package, the debugger works as expected.
I do not know wether snap - which I personally never used at all - provides this kind of package, so I can not tell anything about that, but using the said package from the user repository solved the problem for me reliably.
Try this one (which I installed just yesterday under the recent manjaro distribution and it worked fine) and see if this solves your problem with opening files and folders.

Installation of Azure Machine Learning Workbench fails on Windows 10

I tried to install the azure machine learning workbench from here. Once I double click on the downloaded MSI file, it shows the first screen about licensing terms. Once I click on Continue, it shows dependencies. When I click Install, it starts installation. It downloads Miniconda with Python 3.5.2. While trying to install asn1crypto 0.23.0, it suddenly stops and displays 'Installation fails'. I tried running the MSI file with log option but no error is reported in the log.
Here are my machine details:
Windows 10
Version 1709 (OS Build 17017.1000)
How can I troubleshoot this?
you can have a look at the installer log (%TEMP%\AmlInstaller\Logs). See if there is any obvious error... What version of windows are you running, is it a preview?

SqlSrv driver isn't loading with IIS 10 & PHP 5.6

I've installed a fresh IIS 10 server on a fresh Windows 10 machine with PHP 5.6.31 VC11 x64 Non Thread Safe (can't use PHP7 just yet). PHP is now working well and phpinfo() is displaying everything correctly.
I just installed the PHP SQL driver but it isn't being loaded. It's not showing up in phpinfo() and when I try to use it in code I get the following PHP error:
PHP Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in test.php:3
Stack trace:
#0 test.php(3): PDO->__construct('sqlsrv:server=...', '', '')
To install the PHP SQL driver, I did the following:
Downloaded and installed the Microsoft ODBC Driver 11 for SQL Server (x64)
Downloaded and installed the Microsoft Driver for PHP for SQL Server (SQLSRV32.EXE)
Enabled the extensions in PHP manager (php_sqlsrv_56_nts.dll and php_sqlsrv_56_nts.dll)
Restarted the IIS server
[PHP_XDEBUG-2.5.5-5.6-VC11-NTS-X86_64]
extension=php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll
[PHP_PDO_ODBC]
extension=php_pdo_odbc.dll
[PHP_PDO_SQLSRV_56_NTS]
extension=php_sqlsrv_56_nts.dll
[PHP_SQLSRV_56_NTS]
extension=php_sqlsrv_56_nts.dll
It all looks correct to me and I've done this successfully on other machines before. I feel like I'm missing something simple.
A few other notes:
The PHP error log is empty.
I've tried loading all other dll files that I downloaded (such as the ones aimed at 5.5, 5.4 etc) but it doesn't change anything.
It's worth noting that I installed Xdebug just fine and it is showing up in phpinfo().
I have resolved this problem by using PHP for x86 and not x64. I'm guessing that the SQL drivers are not designed for x64 (although I couldn't see this anywhere).
As soon as I changed to PHP 5.6 VC11 x86 Non Thread Safe everything worked much better.
Note that you need Visual C++ Redistributable for Visual Studio 2012 x86 for this to work. If you already installed the x64 redistributable you will need to install the version that is designed for x86.
or use this library : php_pdo_sqlsrv_73_nts.dll

Error with wxWidgets minimal app

I recently began learning wxWidgets. As all learners do, I first wrote and tested the Minimal App (on my Ubuntu 12.04 LTS). It worked like a charm.
I then decided to test the application on my Windows 7 PC. I built wxWidgets (Debug and Release builds) using Visual C++ 2008 Express following instructions from here. I also built the Minimal App (Build and Release configurations) following the same instructions. The application worked perfectly on my computer. To check whether there were any problems, I sent the executable to a friend of mine. He tested it on his XP PC and it gave him the following error:
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more details.
I have checked that I am using the Multithreaded setting in the build options for both the Debug and Release versions of my application. However, neither of the generated executables works on my friend's machine.
What am I missing out here?
You are missing the C/C++ runtime libraries.
The simplest solution is to build both the wxwidgets libraries and the application with the /MT switch rather than the /MD switch in Project | Properties | C++ | Code generation | runtime libraries

Problem in creating package through "Package for Linux" in Mono 2.8

I am using mono 2.8 with Visual Studio 2008. I have installed "mono-2.8-gtksharp-2.12.10-win32-9".
I am creating a windows application and its setup solution is working fine on Windows OS. But when I am creating package for Linux and follow the instruction from http://mono-tools.com/Package.aspx
Step-1 to Step-5 are done but after Step-5, I am clicking on Create Package and its do nothing even its not create any file into selected folder.
Please help..
When you choose the host for it to build the package on, make sure you are choosing a SUSE or RHEL server, or the process will silently fail.

Resources