dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.84k stars 663 forks source link

Intellisense doesn't work with azure artefacts as paket source #4485

Open runefs opened 3 years ago

runefs commented 3 years ago

Issue Description

When using azure artefacts with a PAT stored in an environment variable the msbuild restore fails to find the env var

Steps to Reproduce

setup dependencies using paket and azure artefacts with a source like: source https://<org name>.pkgs.visualstudio.com/<project name>/_packaging/<feed name>/nuget/v3/index.json username: "%FEED_PAT%" password: "%FEED_PAT%" The restore fails because FEED_PAT is unset

Expected Behavior

That the restore can be completed successfully and that intellisense works correctly

Actual Behavior

The restore fails because FEED_PAT is unset

Logs

MSBuild log

Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore... Paket version 6.0.0-beta8 The last restore is still up to date. Nothing left to do. Total time taken: 0 milliseconds Paket version 6.0.0-beta8 environment variable '%FEED_PAT%' not found

FEED_PAT being the env var where we keep the personal access token for the azure artefacts feed

OmniSharp log

empty

C# log

empty

Environment information

VSCode version: 1.55.0 C# Extension: 1.23.9

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.200 Commit: 70b3e65d53 Runtime Environment: OS Name: Mac OS X OS Version: 11.0 OS Platform: Darwin RID: osx.11.0-x64 Base Path: /usr/local/share/dotnet/sdk/5.0.200/ Host (useful for support): Version: 5.0.3 Commit: c636bbdc8a .NET SDKs installed: 3.1.404 [/usr/local/share/dotnet/sdk] 5.0.100 [/usr/local/share/dotnet/sdk] 5.0.200 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |csharp|ms-dotnettools|1.23.9| |dotnet-test-explorer|formulahendry|0.7.5| |file-downloader|mindaro-dev|1.0.10| |Ionide-FAKE|Ionide|1.2.3| |Ionide-fsharp|Ionide|5.4.1| |Ionide-Paket|Ionide|2.0.0| |mechanic|Ionide|0.0.19| |mindaro|mindaro|1.0.120210401| |remote-containers|ms-vscode-remote|0.163.2| |vscode-docker|ms-azuretools|1.11.0| |vscode-kubernetes-tools|ms-kubernetes-tools|1.3.0| |vscode-yaml|redhat|0.17.0|;
JoeRobich commented 3 years ago

@runefs When are you seeing this error? Is it when invoking the build task in vscode?