How to debug non-test project in visual studio code with Xunit - asp.net-core

How can i debug the project wen i am running the test class.I did in this in visual studio 2017 but i do not know how to do this in visual studio code. I am using XUnit for testing. How to do this. Any one try to help me.
Thank you...

Related

How to take code snapshot in Visual Studio?

In Visual Studio Code there is an extension called "Codesnap",
I want to know if there is something similar in Visual Studio as well?

Cannot run Excel Add-In from Visual Studio 2019

I have Visual Studio 2019 16.8.2 and I have installed the Office Development tools from Visual Studio Installer. I then created an Excel Web Add-In project and when I try to run the project, I get this error:
In the output window, there isn't much useful info:
Excel is of course installed, I have the following version:
Could there be some form of Compatibility issue? or maybe something in the Visual Studio Version?
I tried to check online but couldn't find anything related to this.
The problem is that you should not Visual Studio as administrator. When running as Admin it results in the error. Running as not admin works correctly.

TFS 2015 visual studio build task does not support VS 2017

We have a build definition in TFS 2015 that have worked fine with Visual Studio 2015 projects and solutions. We have now decided to upgrade to Visual Studio 2017 and thus we would like to target Visual Studio 2017 in the Visual Studio build task. We have installed Visual Studio 2017 on the build agent. Unfortunately the only options available int the Visual Studio build task are 2012, 2013, 2015 and Latest. We have tried latest but it does not find Visual Studio 2017 on the build agent. It won't work with the msbuild task either.
I have a similiar issue and resolved by installing VS2017 in my build agent server and configuring MSBuild to point to my MSBuild 15.0 folder:
Add MSBuild to your build steps
On the Advanced options, expand and fill the 'Path to MSBuild' like the image below:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin
VS2017 RTM is released recently while TFS2015 was released before. That's why there is no VS2017 option in VS Build Task in TFS2015 Server. If you upgrade your server to the latest TFS2017, you would see "Visual Studio "15" (preview)" option listed in VS Build Task which is the version for VS2017 preview. And in the feature, the option will be updated to VS2017 which is the same as VSTS.
we are facing a similar issue and it is not possible for us to update ourselves as it is maintained on a company level where we cannot take that much influence.
However our team wanted to switch to VS2017 and make use of the C# 7 features. That's why we tried it as well with replacing the build steps from Visual Studio Build to MSBuild. Sadly this did not work as expected (we got some errors during the build).
As our main objective is to use the C# 7 features we looked for a way how to still achieve that at the time with Visual Studio 2015 remaining on the Build Server. We ended up using the nuget package Microsoft.Net.Compilers that, when used in a project, will use that compiler instead of the installed one.
More on this can be found in this Thread.
It seems the updates to the build tools are installed via the command line of the VS2017 installer.
See the docs for details.
Just adding another thing: if you're using custom build template make sure to edit it and modify the ToolPath attribute value to:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin

Replace FxCop with Code Analysis in Visual Studio 2015

Currently we are using FxCop for code analysis in our project.
But we need to replace FxCop with Code Analysis in Visual Studio 2015.
Is there a way we can do so?
Thanks.

Modifying and running VB.net project in Visual Studio Code?

Is it possible to modify and run existing VB Visual Studio 2010 projects in Visual Studio Code? I have some VB.NET projects that I would like to open in visual studio code and I haven't found anything online that says whether or not this is possible. Drag and drop functionality isn't necessary for me, I only care about being able to run the source code.
I'm running Ubuntu 14.04 if that makes any difference.
Thanks in advance!
You can use Visual Studio Code to edit any text file you want.