Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
You should use
OutputPath and more important you should use the right syntax :
msbuild mysolution.sln /p:OutputPath=c:\mydir
OutputPath is preferred over
OutDir. The documentation used to be wrong about this, but I see that they’ve finally fixed it.
Beyond that, it’s difficult to say exactly what the problem is, since you didn’t show the exact path that you’re passing as a parameter. There are two possible problems that I can imagine:
OutputPathoption specifies the path to the output directory relative to the project directory. That means you can’t set it to a global path like
C:\mydir. I assume it is unable to find the path you specified, and so it defaults to the one specified in your project file.
If the path that you’re actually specifying as a parameter contains spaces, the command is likely to fail. I believe you need to wrap the path in quotes and append an extra backslash to the end of the path string.
I believe you should be using OutputPath.
I was able to configure OutDir for MSBuild command line. Please see my answer at the link below with the command.
See my answer https://stackoverflow.com/a/26477048/1006422