I using VS2013. Test Framework is NUnit 2.6.4, NUnitTestAdapter is 1.2 Version. I local using ReSharper and all test successfully. But,this exception.
TF900546: An unexpected error occurred while running the RunTests
activity: 'Could not load type
'Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestExecutorLauncher2'
from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'.
Visual studio 2013 dll's have version number 12.0 and you are loading Microsoft.VisualStudio.TestPlatform.ObjectModel version 11.0.0. This is the version that ships with VS2012.
The 2013 version of this dll can be found in the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
Related
I reinstalled my machine and installed Visual Studio 2017, Visual Studio 2019 (Preview) and the Intel Compiler 18. Due to unknown reasons, my projects do not work anymore, and I can't figure out what's causing it. Did anyone ever experience the following error message?
My project uses the Intel C++ Compiler 18.0 toolset.
Visual Studio 2017 error message:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xmemory0(178):
error : identifier "__STDCPP_DEFAULT_NEW_ALIGNMENT__" is undefined
1> enable_if_t<(!_HAS_ALIGNED_NEW || _Align <=
__STDCPP_DEFAULT_NEW_ALIGNMENT__), int> = 0> inline
Visual Studio 2019 (Preview) error message:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\Intel C++ Compiler 18.0\Toolset.targets(150,5):
error MSB4062: The "ICMessage" task could not be loaded from the assembly C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll.
Could not load file or assembly 'file:///C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll' or one of its dependencies.
The system cannot find the file specified.
Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Before the reinstallation, my project worked fine. Does anyone have an idea what's going on here?
The system cannot find the file specified.
1.Check whether the Intel.Build.ICLTasks.v150.dll exists in the path C:\Program Files (x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE\VC\VCTargets. According to the error message it's not there, so i guess the Intel Compiler 18 was not successfully installed.
Note that recommended order to do the installation is: Install VS successfully and then install Intel Compiler. If you install the Intel Compiler before installing the VS2017, it will cause issues.
e.g: After installing VS, when I install the Intel Parallel Studio, it will download several files and assemblies to folder C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets for future development. So if I install Intel compiler before installing VS, I can't find Intel.Build.ICLTasks.v150.dll there.
2.And for your original error message in VS2017, I suggest you update your Intel Compiler to 2019 Update3 and higher, see versions. When you reinstall VS, the installer will download latest 15.9.16 version(newer than your old version), so you also need to upgrade your Intel compiler version to resolve some conflicts.
I am creating an android app in visual studio 2015. While building the solution I am getting this error :
The specified task executable "csc.exe" could not be run. Could not load file or assembly 'Microsoft.CodeAnalysis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I have update my visual studio as well. but nothing is working for me.
Here is snapshot of error:
try to run visual studio as administrator or repair your visual studio from programs
see this post:
Visual Studio 2012 csc.exe Error. Executable not valid for OS
I get several errors when trying to edit my build definition. This has worked fine before, but I suspect that installing Visual Studio 2015 has messed things up.
History:
First I had Visual Studio 2013 Ultimate. At this time there were no problems
Recently I installed Visual Studio 2015 Professional.
For licensing reasons, I had to remove VS 2013 Ultimate and install VS 2013 Professional instead.
In VS 2013 Professional-> Team Explorer->Builds I now get an error when I edit my build definition. I suspect that the installation/reinstallation is the cause.
Under Process->Items to build I click the add button and get this error message:
[A]Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings cannot be cast to [B]Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings. Type A originates from 'Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.TeamFoundation.Build.Workflow\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.TeamFoundation.Build.Workflow.dll'. Type B originates from 'Microsoft.TeamFoundation.Build.Workflow, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Workflow.dll'.
You can also try to:
Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache. (x is the TFS version)
Clean the Cache folder on Server machine. The folder path is: C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v10.0
Try resetting settings and add-in settings (devenv /ResetSettings) and (devenv /ResetSkipPkgs), try rebuilding all templates (devenv /setup).
When the installer reaches the point of trying to "tie in" to Visual Studio 2010, ends up generating an error.
Error running C:\Program Files\PlasticSCM5/client/tools/regpkg.exe
/root:Software\Micosoft\VisualStudio\10.0 /codebase "C:\Program
Files\PlasticSCM5/client/plasticVSextensibility.dll": regpkgL error:
Could not load file or assembly 'file:///C:\Program
Files\PlasticSCM5\client\plasticVSextensibility.dll' or one of its
dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded.
Machine:
Windows 7 SP1, 64bit
Visual Studio 2010 Professional SP1Rel
Microsoft .NET Framework 4.5.50709 SP1 (and 3.5 and 4.0 installed)
Anyway, this prevents me from getting the "Source Control" option for Plastic SCM in VS.
Anybody got a solution for this ?
Thanks in advance!
I have a program that was built in Visual Studio 2005. However, this program does not run on Windows 7 machine. I converted the project from Visual Studio 2005 to Visual Studio 2010. I then copied the published files to a Windows 7 laptop and ran the executable from there. When doing so, I got the following error:
Unable to install or run the application. The application requires that assembly Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 be installed in the GAC first
Most of the solutions that I have found are for Visual Studio 8. Anybody have an answer?
I was able to resolve this by removing the Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 from the assembly and adding 10.0.0.0 instead.