Visual studio 2015 Update 1 migration error - visual-studio

My projects cannot be loaded anymore. Solution explorer says it is
(Incompatible)
**Unsupported
This version of Visual Studio is unable to open the following
projects. The project types may not be installed or this version of
Visual Studio may not support them. For more information on enabling
these project types or otherwise migrating your assets, please see the
details in the "Migration Report" displayed after clicking OK.**
**Non-functional changes required
Visual Studio will automatically make non-functional changes to the
following projects in order to enable them to open in Visual Studio
2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010
SP1. Project behavior will not be impacted.**
The generated HTML in the project directory says
The application which this project type is based on was not found. Please try this link for further information:
http://go.microsoft.com/fwlink/?LinkId=628321&projecttype=8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942
and the link is extremely unuseful. The log in appdata says
2219 ERROR SetSite failed for package [Visual C++ Project System Package][Object reference not set to an instance of an object.]:{ at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1
method) at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr
instResources, Object sp, Object browser, IVCBuildPackageInternal
bldPkg)} {F1C25864-3097-11D2-A5C5-00C04F7968B4} 80004003 - E_POINTER
VisualStudio 2015/12/03 04:10:01.316 2220 ERROR End package load
[Visual C++ Project System Package]
and
616 ERROR SetSite failed for package [Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage,
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost,
Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a][Expected 1 export(s) with contract
name
"Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.Bridge.IWebKitDiagnosticsProvider"
but found 0 after applying applicable constraints.]:{ at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition
importDefinition) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String
contractName, ImportCardinality cardinality) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String
contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String
contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportT at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at
Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.OnCreateService(IServiceContainer
container, Type serviceType) at
Microsoft.VisualStudio.Shell.Package.GetService(Type serviceType) at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.GetServiceT
at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.Initialize()
at
Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider
sp)} {B66F381B-48DE-4C10-B71B-EF9A2A808D85} 80131500 VisualStudio
2015/12/03 03:57:12.693 617 ERROR End package load
[Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage,
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]

Download and reinstall Office Tools from http://aka.ms/getlatestofficedevtools and after restart it should work again.

It's possible that this is caused by a problem with deploying Visual Studio's config file during the Update 1 install process. To learn more about that, please see https://social.msdn.microsoft.com/Forums/vstudio/en-US/e011bc08-8b1d-4a2a-99d6-a167da922145/visual-studio-2015-update-1-fails-to-update-devenvexeconfig-plus-fix?forum=vssetup. If you're hitting that problem, please be aware that my team is working on deploying a fix for future installs.
If your machine is not impacted by that problem, then I'm afraid I don't know what the specific problem is. If you're willing to share your setup logs with me, I can do some analysis to see if something failed to install properly. If you want to go that route, please contact me directly at eric.knox#microsoft.com so I can send instructions.
Eric Knox, Visual Studio engineering manager

Related

Could not load file or assembly 'Microsoft.VisualStudio.VisualC.Utilities' creating/loading any C++ project in VS 2019

Trying to open/create C++ projects in VS 2019 (v16.9.6) gives me errors like this:
---------------------------
Microsoft Visual Studio
---------------------------
Could not load file or assembly 'Microsoft.VisualStudio.VisualC.Utilities, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
---------------------------
OK
---------------------------
I still get it after updating to latest VS 2019, rebooting, cleaning up %APPDATA%\Local\Microsoft\VisualStudio, and disabling all the extensions.
Actually I don't even get that much detail trying to create a simple empty or console C++ app, I get a messagebox with "Exception has been thrown by the target of an invocation".
Google gives me 0 hits for that exact Microsoft.VisualStudio.VisualC.Utilities error, some similar ones suggest it might be a problem with Lightweight solution load mode, but I think that's only an option in 2017?
Any help much appreciated!
Solved it by using the "Repair" function in the Visual Studio Installer.

The “GetDeploymentPathFromVsixManifest” task failed unexpectedly

What to do to solve "The “GetDeploymentPathFromVsixManifest” task failed unexpectedly" when trying to debug a VS extension project??
Same question was already asked multiple times with different source reasons, all for VS2017 usually for upgrading VS extensions from VS2015, and it should have been solved with VS 2019. Yet, it just popped up.
The "GetDeploymentPathFromVsixManifest" task failed unexpectedly.
System.TypeLoadException: Method 'get_JoinableTaskFactory' in type 'Microsoft.VisualStudio.Sdk.BuildTasks.ExtensionEngineHost' from assembly 'Microsoft.VisualStudio.Sdk.BuildTasks.16.0, Version=16.9.2017.12405, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
at Microsoft.VisualStudio.Sdk.BuildTasks.ExtensionManagerUtilities.GetExtensionEngine(ISettingsManager manager, Boolean deletePendingUninstalls)
at Microsoft.VisualStudio.Sdk.BuildTasks.GetDeploymentPathFromVsixManifest.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
I have tried all the solution for the same error found on SO, so far to no avail. I am using VS 2019 Community 16.9.2, updated all packages, downgraded some to try, nothing really changes this error.
This is my first attempt on VSIX and I just downloaded an existing project from github and compiled it.
The github project is working (probably) since the extension is available on the marketplace.
Any other suggestions? Searches on this error in combination with the JoinableTaskFactory dont return exactly many results.
For me the solution was to do at least one of the following steps:
Delete the obj-folder in the project
Execute Reset the Visual Studio 2019 Experimental Instance. You can find this tool when you search it in the windows search bar.
Clean and Rebuild the project
Sometimes it helped if I did only one step and sometimes it only worked after doing all the steps.
I couldn't find out if there is a specific pattern behind, but doing all of the above steps always fixed the error for me.
Another issue where I got the same error was if there was the wrong external program selected under Project Properties -> Debug -> Start external Program. For VS2019 I need to select C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe
If I switched between Visual Studio Versions, then sometimes a different Visual Studio version was selected.
Uncheck: "Deploy VSIX content to experimental instance for debugging"
in solution properties->VSIX
Also Update installed NuGet packages.

BizTalk project template in Visual Studio 2019 give UpdateVersionTask error

I have a working VS2019, I added the Extensions "BizTalk ESB Toolkit Initerary Designer" and "BizTalk Server" via "Manage Extensions" in VS2019
I have restarted VS and also my computer
I do not have BizTalk server 2020 installed on my computer
I do run VS2020 as admin
I can now add a BizTalk projects via "Add a new project" because there is a template named "BizTalk Server Application Project"
When I do this, I get a new BT project
But when I try to add new items, all I get is the "BizTalkServerInventory" option, no other items like schemas or orchestrations
In the New
Also, when I try to build I get the following error:
Error MSB4018 The "UpdateVersionTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. Det går inte att hitta filen.
File name: 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
at Microsoft.BizTalk.ALM.JsonSchema.UpdateVersionTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
When I try to add Newtonsoft.Json I get
"Operation failed, The project ProjectName is unsuported"
And after this the "Manage NuGet Packages" i grey...
You need to have BizTalk (usually Developer edition) installed on the machine where you have Visual Studio, otherwise the DLLs that are needed for BizTalk solutions will not be there. And as per you question you also need to install the BizTalk extensions from the Visual Studio Market.
You can get away without configuring BizTalk in a Development environment, but usually it is more practical to also have it configured, so you can deploy locally using Visual Studio and quickly test changes. Otherwise you would have to have some sort build Server (that usually again requires BizTalk installed) or DevOps pipeline to compile and deploy to a BizTalk Server.

TFVC SCM integration in SonarQube 6.0 is failing

I am trying to get TFVC SCM plugin work with TFS 2015.
Version of SonarQube - 6.0
I am running an analysis using MSBuild Sonar Scanner with TFVC SCM plugin enabled.
However , while running the job I am encountering the following errors
ERROR: IOException thrown in the TFVC annotate command : The pipe is being closed
ERROR:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at SonarSource.TfsAnnotate.Program.Main(String[] args)
Nov 25, 2016 6:04:08 AM com.google.common.io.Closeables close
WARNING: IOException thrown while closing Closeable.
java.io.IOException: The pipe is being closed
While searching for any probable resolution , I found out that it requires Team Explorer for VS 2013.
https://social.msdn.microsoft.com/Forums/windows/en-US/d8b704ad-ffa7-44ca-a54f-1291af63358f/could-not-load-file-or-assembly-microsoftteamfoundationclient-version12000-cultureneutral?forum=vstest
My Question is, that is there any way that we can make it work using Team Explorer 2015 as for me using Team Explorer 2013 is not possible.
Any suggestion/pointers will be really helpful here.
Thank you
You don't need the Team Explorer but the TFVC plugin needs the TFS 2013 Object Model. You can download it here: https://marketplace.visualstudio.com/items?itemName=VSCSReleases.TeamFoundationServer2013Update5ObjectModelInstalle
I had the same issue in a setup with TFS 2017 and a build agent that only had Visual Studio 2015 installed. After I installed the TFS 2013 Object Model on the build agent my build works fine.

Visual Studio 2013 Update 4 has broken web templates

After installing Update 4 on my Desktop workstation and laptop computers, both of them have lost the web templates.
When I try to create a new C# web project I only can see this:
And If I select it, then I can see this error:
I write the error message here to future search:
Error: this template attempted to load component assembly
'Microsoft.VisualStudio.Web.Project, Version=2.3.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'. For more information on this
problem and how to enable this template, please see documentation
on Customizing Project Templates.
Any idea how can I recover this templates?
I had this issue! Did a 'Repair' and it's now fixed!
To repair, go to Control Panel/Uninstall a program/View installed updates/Uninstall/Repair.
Check if All the templates are present in the given directories
"Visual Studio installation path"\Common7\IDE\ProjectTemplates\
"Visual Studio installation path"\Common7\IDE\ItemTemplates\
then Open command with administrator navigate to "Visual Studio installation path"\Common7\IDE\" and Type devenv.exe /InstallVSTemplates
If this doesn't Help Reinstalling definitely will

Resources