text:
Evaluating projects to determine OutputPath

Our CI script was using $"**/bin/{configuration}/**/*test*.dll" and $"../../Common/**/bin/{configuration}/**/*test*.dll" to search for test assemblies for VSTest, but it's very messy. It picks up things like Microsoft's TestFramework dll many times which clutters the log with warnings, and it picks up the same dll more than once because some projects reference a core test dll which gets copied to the output folder of multiple other test projects.
So, I thought, I can solve the entire glob matching mess with something more 1:1 with our actual intention, which is to run each output test assembly in the solution.
So I referenced Microsoft.Build and Microsoft.Build.Runtime, and tried this as a test:
foreach (var slnProject in SolutionFile.Parse(solutionPath).ProjectsInOrder)
{
    var project = new Project(slnProject.AbsolutePath);
    var outputPath = project.GetPropertyValue("OutputPath");
}

Of course the new Project line crashes because it tries to import the SDK relative to Microsoft.Build.dll which came from NuGet without any SDKs. I know we are waiting for SDKs to be published on NuGet, so is this a dead end?
Is there currently any way to succeed at my objective of locating all assemblies compiled by a solution? If so, what's the lightest weight recommended solution?

Are you doing this from MSBuild on the full .NET Framework or the .NET Core MSBuild?
The former should automagically handle this for you; the latter is unfortunately a bit harder. A possible but brittle solution would be to set the environment variable MSBuildSdksPath to the path within your dotnet CLI location--maybe by finding the cli executable and constructing a relative path? I don't think it's exposed in a nicer way at the moment.
Related: https://github.com/dotnet/cli/issues/5650.

Are you doing this from MSBuild on the full .NET Framework or the .NET Core MSBuild?

I'm doing this from a Cake build script on the full .NET Framework, so pretty much the same as a net462 console app. Cake has the ability to locate MSBuild 15 but this code is running outside MSBuild, in preparation for calling VSTest.console.exe.

@jnm2  Can you check what msbuild dlls get loaded in your repro? Are they the ones under Visual Studio?

@cdmihai Debug > Modules shows Microsoft.Build.dll and Microsoft.Build.Framework.dll both loaded from the console project's output folder. This is the repro:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net462</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Build" Version="15.1.548" />
    <PackageReference Include="Microsoft.Build.Runtime" Version="15.1.548" />
  </ItemGroup>

</Project>

using Microsoft.Build.Construction;
using Microsoft.Build.Evaluation;

public static class Program
{
    public static void Main()
    {
        const string solutionPath = @"C:\Users\jmusser\Source\TFS\HeritagePMS\Heritage-dev\HeritagePMS.sln";

        foreach (var slnProject in SolutionFile.Parse(solutionPath).ProjectsInOrder)
        {
            var project = new Project(slnProject.AbsolutePath);
            var outputPath = project.GetPropertyValue("OutputPath");
        }
    }
}

Since setting up build evaluation is really hard at the moment, you could do sth like the EF team is doing for dotnet ef: Drop an extension targets file and make it generate parseable output or write a file with all the properties you need. Then call it using dotnet msbuild your.csproj /t:WriteConfigToFile. @natemcmaster has written a great blog post about it: http://www.natemcmaster.com/blog/2016/12/26/project-evalutation-cli-tool/
Setting up the right properties (and unsetting some during execution!) is tricky. There is some code in omnisharp-roslyn that sets it up but it is hard to do. I've even tried using msbuild targets that generate C# files with constants set to the msbuild variables used during build, but it was flaky at best.

See also https://github.com/dotnet/cli/issues/5300

Team Triage:
Closing this as duplicate. See #1096 in our repo and also https://github.com/dotnet/sdk/issues/300. We don't really have a good solution to this at this time. Creating a full usable distribution of MSBuild is difficult.

authors: AndyGerlicher cdmihai dasMulli jnm2 natemcmaster rainersigwald

repo: Microsoft/msbuild


text:
Qiwye/hotfix

@feiga  please review the hot fix.

adding 64 bit support.
fix sparse update's server num; sending to the right server.
adding empty msg for empty sever

@feiga @ycdoit  please reviewing these hotfixes

source: gharchive/pull-request

repo: Microsoft/multiverso

license: mit

license_type: permissive

license_source: bigquery


text:
Remote Debugging - Unable to attach

Hello,
There are really a few issues here.

Biggest: Can't attach.  I have node running on an intel Edison.  I have deployed the RemoteDebug.js and my application along with modules.  Those all match my local code.  I execute node RemoteDebug.js app.js , it subsequently starts.  I then go to attach from VS, which fails.  The failure is a silent one.  Breakpoints are not hit, the output from the Edison's console is: remoteserverconnected, remoteserverdisconnected.

flags for waitforattach and breakatentrypoint do not function.  It just starts going right away.

It did successfully work ~1 month ago.  I made no changes to code.  I did update the Edison's OS to a newer version however.

Not sure how much help I can be, as I'm not familiar with the Intel Edison, but let's give it a whirl :smiley:

"remoteserverconnected" and "remoteserverdisconnected" are not coming from anything in the NTVS codebase... are there any other messages available in ntvs, or the node cmd line? Does it work if you launch without debugging?

Check out the related comments in #1328 on codeplex

Hello,
About the Edison:  It is a system on a chip, it is similar to a Raspberry Pi, it runs Yocto Linux (no idea).  Runs node with bindings to c libraries.  I have actually had this tool working previously.

The code actually runs and functions great both ways.  RemoteDebugger launches it, I can see messages launching from the debugger kicking off, I cracked open the code to view the flow it is taking and it is going through connected then disconnected.  It just doesn't stay connected for debugging.  This is the biggest issue.

This looks awesome, I'll write feedback after a demo this morning.  I put my parameters in the wrong order, and the ping=0 looks like a cool trick.  I'll let you know how it goes.  This is useful as I intend to write some new drivers for the Edison in the Cylon library and set up scripts are really difficult to hit without this.

Looks like I was able to get this working on my Edison with a new Edison and a fresh new image.  I believe the other Edison may have a corrupt image.
That said, there are some areas of improvement that would be nice.  I am not seeing populated types in javascript, I get breakpoints, but no real insight into the values of objects coming back.  Example: Console, expanded, does not display that "log" is an option within it.  I was wondering what this might be a limitation of (tool, tooling, or does this work on other applications).

OH, BTW, that waitforattach works now that args are in the right order and is super badass!

Happy to hear you got it working :smiley: I see log in the populated list - mind taking a screenshot?

And we should totally document #ping=0 once and for all

Yeah, we should really document that #ping=0 thing :wink:

@billti someday :stuck_out_tongue_winking_eye:

Added documentation for #ping=0 to wiki on remote debugging: https://github.com/Microsoft/nodejstools/wiki/Advanced-Debugging

source: gharchive/issue

authors: billti drcrook1 mjbvz mousetraps

repo: Microsoft/nodejstools


text:
[Hotfix release] Patch v0.8.2

Fix grafana rule syntax error and remove unnecessary template variables
machine-maintenance document adds more detail about how to add node to kubernetes cluster

Coverage remained the same at 51.638% when pulling 118c17cc0d8b14f2bd0bb6ea91ea923a5dfa7c99 on canwan/pai-0.8.2-release into 3b3ec92c7774660c12345984f75965301ab3060e on pai-0.8.y.

repo: Microsoft/pai

license: MIT

license_source: github-api


text:
Add Data/Telemetry to README.

Signed-off-by: Pan Li panli@microsoft.com

Codecov Report

Merging #327 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #327   +/-   ##
=======================================
  Coverage   80.93%   80.93%
=======================================
  Files          40       40
  Lines        1023     1023
  Branches      134      134
=======================================
  Hits          828      828
  Misses        126      126
  Partials       69       69

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5563d32...1fd2a45. Read the comment docs.

authors: Incarnation-p-lee codecov-io

repo: Microsoft/spring-data-cosmosdb


text:
Ignore all exception from telemetry.

Signed-off-by: Pan Li panli@microsoft.com

Codecov Report

Merging #343 into 2.0.x will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##            2.0.x     #343   +/-   ##
=======================================
  Coverage   80.79%   80.79%
=======================================
  Files          42       42
  Lines        1078     1078
  Branches      138      138
=======================================
  Hits          871      871
  Misses        133      133
  Partials       74       74

Impacted Files
Coverage Δ

...e/spring/data/cosmosdb/common/TelemetrySender.java
82.75% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a53b8bd...d05fe61. Read the comment docs.


text:
Maintain scroll position between tabs

Issue Type: Feature Request
Hi,
I imagine this is a simple request, let me know otherwise, but I'd like for the results pane not to automatically scroll to the top when switching tabs. This'd help a ton when I'm quickly comparing results in different queries that sit accross different tabs, since state is important in that scenario. Always scrolling to the top, as the app does now, breaks my ability to go back and forth and compare rows.
Let me know what you think. Thanks!
SQL Operations Studio version: sqlops 0.29.3 (7099922c35bc3b3e223228c972cc03cee5abbe25, 2018-05-04T05:46:24.032Z)
OS version: Windows_NT x64 10.0.17134

Closing as it's a duplicate of https://github.com/Microsoft/sqlopsstudio/issues/114

authors: IAmHopp abist

repo: Microsoft/sqlopsstudio


text:
Allow collectionUrl on the command line to override the cached/logged…

… in collection url
The scenario is that I need to upload build tasks to more than one collection/account. The PATs for each collection are cached, but you can only login to one at a time (and if you try to switch the login, it prompts for new PATs). I would like to specify --collectionurl on the command line to override the currently selected collection in the cache, while still optionally using cached credentials for the overridden collection.
The update is to the getCollectionUrl method. Instead of first checking the cache and then prompting for input, we will first check for the optional argument on the command line, then check the cache, and finally prompt at the end.
I have validated that this works locally for my scenario.

Fixes #38

Fixes #31

This is fixed with the latest refactoring.

authors: jkeech trevorsg

repo: Microsoft/tfs-cli


text:
How to call from AL or C/SIDE the Windows Print Dialog Window - Print Report, Excel or Word or PDF local files.

Re: How to call from AL or C/SIDE the Windows Print Dialog Window - Print Report, Excel or Word or PDF local files.
Hello,
.NET is no longer supported in Dynamics NAV 2018 on AZURE.  D365.
The AZURE functions allow a C# .NET program through create function.
Looking for sample AZURE code unit for a Function callable from AL and C/SIDE to Prompt the Operator for the Local Print Dialog Window displaying a list of available printers from the desktop client. The solution would print either; a) Excel file b) Word Document or c) PDF document or d) a NAV 2018 Report from the Desktop NAV Windows Client or from the Web Client.
Thank you
Dennis Aubrey

Please see response in this issue: https://github.com/Microsoft/vscode-azurefunctions/issues/281

authors: EricJizbaMSFT dennisaubrey

repo: Microsoft/vscode-azureappservice


text:
Import/upload app settings from .env file

Similar to how Functions uploads settings: right-click on app settings, choose "import from .env..."
I'm not familiar enough with the variations of the format, but the extension should support with and without export statements.

@fiveisprime duplicate of https://github.com/Microsoft/vscode-azureappservice/issues/386?

@EricJizbaMSFT Close, but quite since #386 requests JSON as a format. A typical .env file looks like this for local use:
# Comment
EXPORT KEY="VALUE"
EXPORT KEY1="VALUE1"

# Quotes are optional if there are no special characters in the value.
EXPORT KEY2="VALUE2"

This allows you to run source .env from the command line to load all the env variables.
Or like
# Comment
KEY=VALUE
KEY1=VALUE1
KEY2=VALUE2

for use with Docker compose to allow you to pass environment variables to the container.

Thanks for more detail @nnja. I think @nturinski just mentioned json as one possibility, but he cared more about the ability to upload/download app settings regardless of file type. I went ahead and closed that bug as 'duplicate' since '.env' sounds more useful

authors: EricJizbaMSFT fiveisprime nnja


text:
Failed to parse connection id error under CosmosDB/Connections tree item

When at least one connection is broken error message appears. I think will be better to show all others connections that aren't broken and at the bottom of list show one/multiple error nodes/messages.
.
Also, the text of the message error could be better.

Not relevant now.


text:
Add EditorConfig

Adopted from vscode-go

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: electron0zero sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

We don't use editorconfig. We use prettier and tslint. Thanks.

authors: electron0zero msftclas octref

repo: Microsoft/vscode-extension-samples


text:
When I try to open a database after I logged with a password that contains @ I get the following error: "Username containing an unescaped at-sign"

Steps to reproduce:

Add a server with a connection string that has @ inside the password: e.g.
mongodb://admin:p%40ssword@127.0.0.1:27017/test?authSource=admin
I escaped the @ with %40 because the connection string is an URL.
The server is added with success, the connection is made and the databases are read and displayed in the tree.
If I click on a database in the tree, I get the following error message:
[Error - 03:43:45] (node:840) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 18): Error: Username containing an unescaped at-sign

Here I can see two problems:

The error message is missleading (not the username contains an @ )
If the connection was successful using an escaped character, I expect that retrieving collections from a database that was read without error should succeed.

My computer has the following applications installed:

MongoDB & MongoShell 3.2.3 x64
Visual Studio Code 1.18.1 x64
MongoDB Extension 0.0.1

For more information please check the attachment.

I am closing this issue because this version of the extension is no longer supported.
If you have not already done so, please switch to using the new version of this extension here: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb.  If this issue still reproduces in the newer extension and you would like us to take a look, please enter an issue here: https://github.com/Microsoft/vscode-cosmosdb/issues
Thanks!
Stephen

repo: Microsoft/vscode-mongodb


text:
Python interpreter shows as 32-bit even though it is 64 bit

Environment data

VS Code version: 1.28.1 (user setup)
Extension version (available under the Extensions sidebar): 2018.9.0
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7 64 bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: N/A

Actual behavior
Venv in the status bar shows as 32 bit, when running from the terminal it is 64 bit

Expected  behavior
Both say 64 bit
Steps to reproduce:

Create a 64 bit venv
Make it the active python interpreter

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
N/A

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
N/A

I can't reproduce:

@qubitron
Please could you try running the following Python code in the terminal:
import sys
print(sys.maxsize > 2**32)
prit(sys.maxsize)

I'm no longer able to reproduce this

authors: DonJayamanne brettcannon qubitron

repo: Microsoft/vscode-python