Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build VSIX Project w/Command (Community) project if there is a '#' character in the project path . #408

Open
dcastenholz opened this issue Jan 4, 2023 · 1 comment

Comments

@dcastenholz
Copy link

If there is a '#' in the path (I used 'C#' as one of the parent folders) the build fails with the following error:

Severity	Code	Description	Project	Path	File	Line	Column	Suppression State
Error		CreatePkgDef : error : ProvideCodeBaseAttribute: Could not load specified assembly: 'Community.VisualStudio.Toolkit' reason: Could not load file or assembly 'file:///C:\Users\xxxx\Documents\Code\Community.VisualStudio.Toolkit.dll' or one of its dependencies. The system cannot find the file specified.	VSIXProject1	C:\Users\xxxx\.nuget\packages\microsoft.vssdk.buildtools\17.0.5232\tools\VSSDK	C:\Users\xxxx\.nuget\packages\microsoft.vssdk.buildtools\17.0.5232\tools\VSSDK\Microsoft.VsSDK.targets	1193	5	

Solution file is located at: C:\Users\xxxx\Documents\Code\C#\PathTest\VSIXProject1\VSIXProject1.sln
Project file is located at: C:\Users\xxxx\Documents\Code\C#\PathTest\VSIXProject1\VSIXProject1\VSIXProject1.csproj

Renaming the 'C#' to 'C$" causes the project to successfully build.

@reduckted
Copy link
Contributor

This is a problem with the ProvideCodeBase attribute. See:

VsixCommunity/Samples#5

microsoft/VSExtensibility#159

I don't think there's anything that the toolkit can do here, other than maybe producing a warning that explains what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants