开发者

Missing Public Assemblies folder

开发者 https://www.devze.com 2023-01-11 05:45 出处:网络
Several articles and blogs I have read suggest placing assemblies I wish to make available to T4 in the Visual Studio Public Assemblies folder.This is s开发者_JAVA百科upposed to be located at C:\\Prog

Several articles and blogs I have read suggest placing assemblies I wish to make available to T4 in the Visual Studio Public Assemblies folder. This is s开发者_JAVA百科upposed to be located at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies, but I have no PublicAssemblies' folder there, onlyPrivateAssemblies. Creating my ownPublicAssemblies` folder doesn't seem to work. Assemblies located here are supposed to be available in the .NET section of the Add References dialogue, and my assembly located there is not.

SOLVED: I was looking under Program Files, not Program Files (x86). I found Public Assemblies in the latter location.


I don't know about that folder, but MS suggests adding a registry key to make your assemblies available in VS as in this quote from this article: How to display an assembly in the "Add Reference" dialog box

To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly [HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies]@="C:\\MyAssemblies" where MyAssemblies is the name of the folder in which the assemblies reside.


Maybe you can find the answer in another SO question: Can't reference an assembly in a T4 template

0

精彩评论

暂无评论...
验证码 换一张
取 消