Mono拒绝解析T4模板中的相对路径包括 [英] Mono refuses to resolve relative paths in T4 template includes

查看:345
本文介绍了Mono拒绝解析T4模板中的相对路径包括的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我试图在一起的东西使SubSonic3与Postgres,在Mono工作。

Ok so I'm trying to hack together something to make SubSonic3 work with Postgres, on Mono.

我几乎有模板生成,但遇到了一个小问题。

I almost have the templates generating but have ran into one small problem.

<#@ include file="PostgreSQL.ttinclude" #>

会提供无法解析包含档案错误。

will give a "cannot resolve include file" error.

但是,指定完整路径将工作(虽然繁琐)

However, specifying a full path will work(though cumbersome)

<#@ include file="/home/earlz/Projects/SubSonicPostgres/SubSonicPostgres/SubSonic/PostgreSQL.ttinclude" #>

有没有解决这个问题?它是一个已知的错误?

Is there any kind of fix to this issue? Is it even a known bug?

推荐答案

这是我听说过的第一个,我写了MonoDevelop T4引擎:)

This is the first I've heard about it, and I wrote the MonoDevelop T4 engine :)

没有一个简单的解决方法,虽然因为完整的源代码MonoDevelop可用,你可以轻松地修补它。可能的问题是,由于T4引擎在MD进程内运行,其工作目录是MD的工作目录。但是,主机可以轻松地覆盖LoadIncludeText或ResolvePath以模拟不同的工作目录。

There's no trivial workaround, though since full source to MonoDevelop is available, you could easily patch it. Presumably the problem is that since the T4 engine is running inside the MD process, its working directory is MD's working directory. However, the host could easily override LoadIncludeText or ResolvePath to simulate a different working directory.

真的不适合回报错误 - 您很幸运我看到您的讯息。您应该在MonoDevelop邮件列表中提出问题,并在适当的地方提出错误。

This really isn't the right place to report bugs - you're lucky I saw your post. You should ask on the MonoDevelop mailing list, and file bugs in the appropriate place.

这篇关于Mono拒绝解析T4模板中的相对路径包括的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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