TFVC SCM integration in SonarQube 6.0 is failing - sonarqube

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.

Related

DTS.runtime.Application Error With Visual Studio 2019

Visual Studio 2019 Enterprise v16.11.15 SS Integration services 3.16
I try to Load my DTSX Package as File with Framework C# class. I add
reference to Microsoft.SqlServer.Dts.Runtime to my project with browse
dll within : C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\Common7\IDE\PublicAssemblies\SSIS\150 When
running reach the instruction :
Microsoft.SqlServer.Dts.Runtime.Application a = new
Microsoft.SqlServer.Dts.Runtime.Application(); I get the following
output Error : System.IO.FileNotFoundException: 'Could not load file
or assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=15.0.0.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its
dependencies. The specified file can not be found.'
the same Script.Main is working perfect when i downgrade the DTS.Runtime reference to the ManagedDTS version 14 or older. The problem that the TargetServerVersion of SQL Server 2019 is only able in Version 15.
If someone has a solution i would be grateful.
Finally i find solution to workaround this bug ; i have changed the visual studio project Template from Console App (.Net Framework ) to SSIS Project and then i put my code on Task Script Component. Naturally i add reference to new ManagedDTS dll for VS 2019 to my project .
Now solution is running well and i can call the function
App.SaveAndUpdateVersionToXml sucessfully to upgrade automatically all packages DTSX by Framework .Net Script.
I share with you this blog which very supported me to make solution.
https://blog.bartekr.net/2018/02/28/upgrading-ssis-projects-part-iii/
Thank you for you all

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.

Exception deserializing the package error when executing SSIS package

I've just installed Visual studio Professional 2015 on a Microsoft 2019 Server with the following tools:
VS update 3
Sql Server Data Tools
BI Developer Extensions for Visual Studio 2015
Apex tools
ZappySys SSIS tools
When I go to run an SSIS package that works on other machines I get the following error message:
TITLE: Microsoft Visual Studio
------------------------------
Exception deserializing the package "The type initializer for 'Microsoft.SqlServer.Dts.Runtime.XMLSerializationHelper' threw an exception.".
------------------------------
ADDITIONAL INFORMATION:
The type initializer for 'Microsoft.SqlServer.Dts.Runtime.XMLSerializationHelper' threw an exception. (Microsoft.SqlServer.ManagedDTS)
------------------------------
Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=14.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. (Microsoft.SqlServer.ManagedDTS)
------------------------------
Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
I've repaired SQL Server Data tools and Visual studio itself with no luck. Any suggestions?
I had created a new SSIS project and facing same problem while executing it.
Generally this type of issue occurred when you have not selected the right SQL Server Version.
You have to first check the SQL Server version installed in your or remote machine and verify it with the SSIS Project. You have choose the same SQL Server version in Visual studio for your SSIS project.
SSIS Project>>Right Click (properties)>>Configuration Properties>>General>>Target Server Version
After setting this if still you are facing the same issue then please check the below settings.
SSIS Project>>Right Click (properties)>>Common Properties>>project>>Security>>Select the appropriate protection level.
Solution-1
Solution-2

Visual studio 2015 Update 1 migration error

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

Error when running unit tests in automated build since VS upgrade to 2013 on TFS2012

I started creating automated builds in TFS 2012 using a build server with VS2012 on it. Everything was running fine, but then we updated the build server to VS2013(still with TFS 2012). Now no units execute. I get the error:
Handle Test Run Exception
Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.Utilities,
Version=11.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file specified.
I can find that file on the build server but only version 12 under vs2013.
Im lost as to what to do as I dont know what is forcing the Test Runner to use version 11 or how to change it.
Is it possible that since the build controller is tfs 2012, it is somehow forcing the Test Runner in the build to use version 11 instead of version 12 on the build server? Any ideas how to resolve this?
You need to have VS Professional or later on your build server to run automated tests as a part of your build process.
Here since TFS is still at 2012 the test activities are referring the 11.0 dlls and installing VS2012 should help resolve this issue.
This is a known bug being tracked.
From http://msdn.microsoft.com/en-us/library/ms253138.aspx
To run unit tests, or coded UI tests, you must install Visual Studio
Professional or later

Resources