ITextTemplatingEngineHost是否取决于VisualStudio [英] Does ITextTemplatingEngineHost depends on VisualStudio

查看:193
本文介绍了ITextTemplatingEngineHost是否取决于VisualStudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在MVC上构建应用程序,它将获得模板文本并生成类似T4的代码,但是我不想依赖VisualStudio,我的意思是我不想在我的服务器上安装VisualStudio.应用程序将运行.当然,我会在服务器上安装Dot.Net Framework,但不会在VisualStudio上安装.

我读到,我需要实现ITextTemplatingEngineHost,但是要做到这一点,我需要参考:
1-Microsoft.VisualStudio.TextTemplating.10.0
2-Microsoft.VisualStudio.TextTemplating.Interfaces.10.0

2个问题:
1-此DLL是否随VisualStudio或Dot.Net Framework一起提供?
2-如果Visual Studio附带了它,是否可以在BIN文件夹中放入2个DLL,实现自定义HOST并将我的应用程序部署到没有安装Visual Studio的服务器上,并且我的应用程序将使用此DLL的所有功能?
谢谢

I want to build application on MVC, that will get template text and generate code like T4, but I don''t want to depend on VisualStudio, I mean I don''t want to install VisualStudio on the server where my application will be running. Of course, I''ll install Dot.Net Framework on the server but NOT VisualStudio.

I read, that I need to implement ITextTemplatingEngineHost, but to do this I need to reference:
1 - Microsoft.VisualStudio.TextTemplating.10.0
2 - Microsoft.VisualStudio.TextTemplating.Interfaces.10.0

2 questions:
1 - Does this DLLs come with VisualStudio or with Dot.Net Framework?
2 - If it comes with VisualStudio, can I put 2 DLLs in BIN folder, implement Custom HOST and deploy my application to the server where NO VisualStudio is installed and my application will use all the functionality of this DLLs?

Thank you

推荐答案

根据
According to this page[^], this feature is available in .NET Framework 4.0, so I think you should be safe just installing the framework on the target system. I don''t think Microsoft would be very popular if you had to install Visual Studio in order to run any .NET applications.


基于我从MSDN上获得的内容,它没有附带.NET框架.它专门是Visual Studio库的一部分.似乎在VS 2005、2008和2010中受支持.

我不知道再分配规则.检查一下,看看是否通过许可可以使您重新分发此DLL(我认为这不太可能,除非它们具有针对这组DLL的运行时下载文件.).

[更新]
----------

是的,我是对的,请参阅S.O上的相关主题.

http://stackoverflow.com/questions/1331767/distributing-microsoft- visualstudio-texttemplating-dll-with-custom-app [ ^ ]
Based on what I got from MSDN it does not come with the .NET framework. It is specifically a part of the Visual Studio libraries. Seems to be supported in VS 2005, 2008, and 2010.

I am not aware of redistribution rules though. Check so see if the licensing lets you redistribute this DLL (I would think it''s unlikely unless they have a runtime download for this set of DLLs).

[Update]
----------

Yeah I was right, see this related thread on S.O.

http://stackoverflow.com/questions/1331767/distributing-microsoft-visualstudio-texttemplating-dll-with-custom-app[^]


这篇关于ITextTemplatingEngineHost是否取决于VisualStudio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆