Visual Studio Gallery - MVC 项目模板无法上传
我已经创建了一个 Visual Studio 2010 ASP.NET MVC 项目模板作为 VSIX 包,我想将其上传到 Visual Studio Gallery,但每次我尝试时它都会告诉我路径太长...
在本地,它安装和工作没有问题...
项目的结构(压缩为 t.zip 以尝试减少长度)是一个标准的 MVC 结构化项目,唯一的警告是它需要(好吧,不需要,但使安装到 C# 语言下的 Web 子文件夹,因此 VSIX 包内的路径为 ProjectTemplate\CSharp\Web
。
有没有办法绕过这个限制,或者我只是做错了什么?
I've created a Visual Studio 2010 ASP.NET MVC Project Template as a VSIX package that I'd like to upload to the Visual Studio Gallery, but every time I try it tells me the path is too long...
Locally, it installs and works without issue...
The structure of the project (zipped as t.zip to try and reduce the length) is a standard MVC structured project, the only caveat is that it needs (well, doesn't need to but makes sense for it be there) installs to the Web sub-folder under the C# language, so the path inside the VSIX package is ProjectTemplate\CSharp\Web
.
Is there a way around this limitation, or am I simply doing something wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您上传到 VS Gallery 时,会进行一项检查,以查看安装在用户计算机上时路径长度是否可能太长。此检查不仅包括直接在 VSIX 中的文件,还包括嵌入在 zip 文件中的文件。 (这是因为模板在用于实例化新项目之前会在磁盘上解压缩。)
不幸的是,我认为您唯一的选择是缩短模板本身中文件的路径。
There is a check when you upload to the VS Gallery to see if the path length might end up being too long when installed on the users machine. This check includes not only the files directly in your VSIX, but also the files embedded inside the zip file. (This is because templates are unzipped on disk before they are used for instantiating a new project.)
Unfortunately, I think your only option is to shorten-up the paths of the files in the template itself.