Open tpmccrary opened 2 years ago
Thank you for reporting the issue.
It looks like you're running into this check in the underlying deployment tool: https://github.com/aws/aws-dotnet-deploy/blob/0ef3240cd0e6ad1540a3f52870f3197a3973d5e8/src/AWS.Deploy.Common/Utilities/PathUtilities.cs#L18-L19
This was added in https://github.com/aws/aws-dotnet-deploy/pull/311 to disallow deploying projects from Server Message Block (SMB) protocol shared drives, but looks like it's catching WSL paths too. This may not have been intended, we'll have to take a closer look.
I was also able to reproduce with just the CLI version of the tool (from Windows, not WSL) with:
dotnet aws deploy --project-path \\\\wsl$\\Ubuntu\\home\\path\\to\\project.csproj
@awschristou - do you have permission to move this over to https://github.com/aws/aws-dotnet-deploy? If not (or if you'd rather leave this open here), I can create a new issue over there.
@ashovlin , because the fix would go through a separate deploy tool and Toolkit release, please make a separate issue in aws-dotnet-deploy, and paste the URL to this issue in it (or vice versa). This way the issues will be linked, and we can track progress on the issue.
Created https://github.com/aws/aws-dotnet-deploy/issues/628 to track the fix in the underlying CLI.
One possible workaround (albeit a different experience) in the meantime if you're committed to WSL is deploy from the CLI within WSL instead of Visual Studio from Windows:
I'll use that workaround for now. Thanks for looking into this!
Describe the bug When attempting to use the AWS Toolkit on a project that is located in the WSL2 filesystem (
\\wsl.localhost
) it is unable to find the.csproj
file. Error thrown:To Reproduce
\\wsl.localhost\Ubuntu\home\<user>
.Expected behavior I expect the AWS Toolkit to launch as expected.
Screenshots
Computer:
Windows Version: Edition Windows 11 Home Version 21H2 OS build 22000.708
Visual Studio Version: Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.2.3
AWS Toolkit for Visual Studio Version: Version: 1.31.0.0