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

Content Type Element in Feed.XML is Absolute not Relative #29

Open
burtsimpson opened this issue Sep 23, 2021 · 1 comment
Open

Content Type Element in Feed.XML is Absolute not Relative #29

burtsimpson opened this issue Sep 23, 2021 · 1 comment

Comments

@burtsimpson
Copy link

The src value in the content type is absolute. Something like:

<content type="application/octet-stream" src="E:\MicroserviceTemplate\VSMicroservicesTemplate.vsix" /

If you then move this to a web site or remote UNC, the path is no longer valid.

Change it to a relative, file name only, src solved the issue of moving to a network UNC.

<content type="application/octet-stream" src="VSMicroservicesTemplate.vsix" /

To affect this I change line 81 in FeedWriter.cs from

writer.WriteAttributeString("src", package.FullPath);

to

writer.WriteAttributeString("src", package.FileName);

@gmarginet
Copy link

It would be handy if we could select this behaviour via an extra command option

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