简体   繁体   English

将自定义项模板添加到 Visual Studio 解决方案

[英]Add custom Item Template to Visual Studio Solution

I have created a Custom Item Template within Visual Studio using ASPX and C#.我使用 ASPX 和 C# 在 Visual Studio 中创建了一个自定义项模板。

I understand how to export and import the template.我了解如何导出和导入模板。 However this gets saved locally within my PC's C:\\ drive.但是,这会在我的 PC 的 C:\\ 驱动器中本地保存。

C:\\Users[USERNAME]\\Documents\\Visual Studio 2017\\Templates\\ItemTemplates C:\\Users[用户名]\\Documents\\Visual Studio 2017\\Templates\\ItemTemplates

I am wondering how i would attach it to the website's solution and make it accessible for whoever opens the solution on their PC.我想知道如何将它附加到网站的解决方案,并使其可供在其 PC 上打开解决方案的任何人访问。 Without having to import or export it.无需导入或导出它。

Any ideas?有任何想法吗?

I had the same problem ,you have to add the item template to Assets, in source.extension.vsixmanifest.我遇到了同样的问题,您必须在 source.extension.vsixmanifest 中将项目模板添加到 Assets。

That should already work.那应该已经起作用了。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM