English 中文(简体)
T4 Toolbox problems
原标题:

I downloaded and installed the latest version of the T4 Toolbox for VIsual Studio 2010, in an attempt to create LINQ business objects, but I m having some troubles with it. First, I was getting errors saying it couldn t find T4Toolbox.tt and T4ToolboxLinqtoSql.tt in my project directory, but that s not where they are installed. Am I to provide the absolute path to them in my template?

In trying to get this to work, I removed the files I added via the instructions, and added them again. This time the error changed to "File doesn t exist: "XMLSCHEMASDBMLSCHEMA.XSD". I have populated the dbml file using the server explorer.

Both errors reference the same file, the "ServerBiz.tt" file that I created from a Linq to SQL Model template in the Code Generation section in Visual Studio. They ve also both generated the warning "The C# 2.0 and C# 3.5 compilers are no longer supported. Templates will always be compiled with the version 4 compiler instead of v3.5 as specified.", though switching the language attribute in the .tt file to "C#" cleared that up (and has had no effect on the errors I m receiving). I ve also got no color highlighting in the editor, though something tells me I just need to install a tool or something to get that to work. But I thought I d mention these things in case they were relevant.

Update: I was mistaken, the search did find T4Toolbox.tt in C:Program FilesT4 Toolbox. I ve updated the post to reflect this.

最佳回答

I reported this and the issue was fixed in the latest version. See my post here for details.

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签