Command line equivalent of TFS Merge? - asp.net

What would be the command line equivalent of a TFS* Merge action from within Visual Studio 2013? There seem to be various switches for the tf merge command so I'd like to know what the entire command would look like for the default behavior within Visual Studio 2013.
*TFS 2012
I'm expecting the result after running the command to be check-outs in TFS with merges to address within Visual Studio 2013.

I think you'll find that the very basic
tf merge folder1 folder2 /recursive
is what you're after.
Also, if you add preview to the command you'll be able to experiment with the various options until you get the result you're after. It's a great way to see how the merge works without worrying about damaging anything.

Related

How to convert from VS web deploy to command line MS deploy

Within Visual Studio, I use Web Deploy.
Within the settings, it asks for 4 fields to be filled one (and 1 optional)
I am guessing, behind the scenes, it is calling msdeploy.exe and passing them as command line arguments
I'm struggling to map these across as I want to use
shell: cmd
run: '"C:/Program Files (x86)/IIS/Microsoft Web Deploy V3/msdeploy.exe"
-verb:sync
-allowUntrusted
-source:contentPath="%CD%\myDomain.Ui\bin\Release\netcoreapp3.1\"
-dest:contentPath=domain,computerName="<server>:443/msdeploy.axd?site=<site name>",username="<user name>",password="<password>",authtype="Basic"'
As you can see, source:contentPath uses the actual path and this works fine in GitHub actions. I'm having issues with the dest: part. In the example above, I've used the titles (so instead of myUserName, I've used as it shows in the screenshot)
I have 2 questions.
When I click "publish" within Visual Studio, if it really is just calling msdeploy.exe, then is it possible to show this in the output. If I knew how to do that, I may be able to answer my own question
Have I mapped them correctly
As for how to see more details, this KIND OF works:
Visual studio 2017 Verbose publish
The relevant part is
To change the amount of information included in the build log On the menu bar, choose Tools, Options.
On the Projects and Solutions page, choose the Build and Run page.
In the MSBuild project build output verbosity list, choose one of the following values, and then choose the OK button.
And then, at the very end of the build, search for MsDeploySourceProviderSetting
You can then see the details! This gives some of the values, but not all!! It doesn't really answer the question! However, it got me part way there
It needed to be
-dest:contentPath=<site name>,computerName="<server>:443/msdeploy.axd?site=<site name>",username="<user name>",password="<password>",authtype="Basic"'
EG, my website ULR is https://example.com and in IIS, it is set up as MyWebsite
-dest:contentPath=<MyWebsite>,computerName="https://examplecom:443/msdeploy.axd?site=MyWebsite",username="<user name>",password="<password>",authtype="Basic"'
Also, if you do use VS as I did, it may give you a different port, so be aware that 443 may not be right!!

Autocompletion in Visual Studio Code: column names in R

I've been using R in Visual Studio Code and at the moment it seems fantastic to me.
However, there is a function that I do not know if there is any extension or not, which is the autocompletion of column names for dataframes.
Currently, I have
I have tried with the extension of R of VSCode and LSP server, somebody knows if it is possible that VSCode generates the following (like RStudio):

R Code Runs Fine in RStudio but not in Visual Studio

I just ran this in RStudio and it works fine.
Gender <- c("Female","Female","Male","Male")
Restaurant <- c("Yes","No","Yes","No")
Count <- c(220, 780, 400, 600)
DiningSurvey <- data.frame(Gender, Restaurant, Count)
DiningSurvey
Then I try to run it in Visual Studio and it does nothing at all.
If I go to Test > Run > All Tests, I get this: 'There were successful build errors. Would you like to continue and run tests from the last successful build?' There is no last build and no matter what I try, this doesn't work. IF I hit any function key, including F5, F11, or whatever, this doesn't work!! How can I run R code in Visual Studio? It seems like this should be super-simple, but it is very, very, very difficult.
Thanks.
In general, R in VS works same a R in RStudio. In other words, F5 does not work since R is not a compiled language and does not have predefined entry point. For example, for debugging you set a breakpoint, then attach debugger, then source file and then call the desired function from R interactive window.
To run R in Visual Studio, you need the R Tools for Visual Studio (RTVS) plugin.
You can download this at http://microsoft.github.io/RTVS-docs/
This will turn Visual Studio into a capable client that knows how to deal with R.
Once you've installed RTVS, the easiest way to get started is to create a new R project:
\File\New\Project...\New R Project
This will create a new project with templates for R and Rmd files.
You can send code from an R file to the "R Interactive" window by pressing Ctrl+Enter.
You can see this in action by watching the video at https://youtu.be/KPS0ytrt9SA

OpenCover - measuring coverage against running ASP.NET application

I'd like to measure the coverage from UI integration tests, so I need to apply OpenCover to the running ASP.NET application, not the test execution. (I already got coverage for unit tests by running OpenCover on VSTest.Console.Exe.)
When I launch the app from Visual Studio 2013, it looks like it's running iisexpress.exe. How could I figure out what command line VS is running so I could pass the same command line to OpenCover?
OK, I figured it out.
The right command line to use is iisexpress.exe /site:[sitename] where sitename matches whatever your web project is called in Visual Studio. Specifying just the path to the project will not provide the desired results.
And to get test coverage with OpenCover, you would run
OpenCover.console.exe -target:iisexpress.exe -targetargs:"/site:sitename" -register:user
assuming you're in the same directory as your web project build with the PDB files, otherwise you may need to use -targetdir argument to OpenCover

Visual Studio 2012: run executable (or addon) on save

so I've just begun using Visual Studio 2012 as a new programmer, and I'd like to find a way to have VS2012 automatically save (or at least automatically convert) files to UNIX line endings.
I found this page as a means of creating an executable that could be integrated with VS2010 as a macro. Since VS2012 no longer uses macros, how can I set this up so that this is executed on my files at save? I don't want to have to go to Advanced Save everytime I save a file (I tend to save every 30 seconds or so out of paranoia).
I began trying to construct an add in to handle this for me, but as a beginner I'm afraid that's a bit beyond me.
Thank you in advance for the help.
you can do like this,
click File, choose Save .... as, then in the save file dialog, choose save with Encoding, another dialog shows up, you can choose Unix format.

Resources