This project has moved. For the latest updates, please go here.

No Files Generated on VS 2008 TS

Jun 23, 2010 at 1:01 PM

Hi All,

I recently downloaded this fantastic tool. i added and ConfigurationSectionDesigner to an existing project, using the add item option. When i completed my diagram and validated it, there were no extra files generated such as;

ConfigurationSectionCode.tt

ConfigurationSectionSample.tt

ConfigurationSectionSchema.tt

 

How do i get these files to appear?, the tutorial does not even mention where these files come from.

so far i only have;

ConfigurationSectionDesigner1.csd

 

Thanks.

 

Mr. Ocelot.

 

Jun 23, 2010 at 5:14 PM

i think the tools which generate those files are missing, can anyone tell me why this might be the case?, i made sure i installed the csd while VS 2008 TS was off. i also tried reinstalling it.

Coordinator
Jun 24, 2010 at 8:28 AM

It should be set automatically but can you make sure that the .csd file has the "Custom Tool" set to "CsdFileGenerator" (without the quotes)? So right-click the .csd file and choose Properties, then set the Custom Tool property. If you now save the .csd file it should generate those files.

Coordinator
Jun 24, 2010 at 9:18 AM

Those .tt files have not been included (or required) with CSD projects since version 1.2. They are therefore not mentioned in the tutorial. Where are they mentioned, since you ask about them? And jelled is right, if you set the custom tool to "CsdFileGenerator" and your diagram is valid, it should generate files for you.

 

Jun 24, 2010 at 10:13 AM

thanks for your input.

Jelled, i have made sure that the .csd file has the custom tool set to CsdFileGenerator, but files are still not being generated. I right clicked on the file and selected; Run Custom Tool and i got the error; "The custom tool 'CsdFileGenerator' failed. Unable to retrieve Visual Studio ProjectItem. Try running the tool again.". this leads me to believe that the tool has not been installed, i have tried uninstalling CSD and then doing a fresh install but i get the same problem.

alexschrod, i have a colleague who can run this tool successfully on his VS and the files i mentioned are generated for him. also at the end of the tutorial i can see those files in the solution explorer window screen shot.

Coordinator
Jun 24, 2010 at 10:28 AM

Could you give me a link to the tutorial page you're talking of? I can't find it myself.

 

That error message; "The custom tool 'CsdFileGenerator' failed. Unable to retrieve Visual Studio ProjectItem. Try running the tool again."; is well known to me and is documented fairly well in this bug report. I recently checked in a (partial) fix to this bug that might help your issue, but it's only in source code yet, there has been no new release with it included. I'm not going to expect you to download and build the source for CSD yourself (it's quite a hassle for a "regular user") so all I can say is that I should perhaps make a new release soon (1.6.2) with the small bug fixes that have been applied in since 1.6.1.

Jun 24, 2010 at 10:39 AM

sorry alexschrod i just went back to that page and realised that it didn't have those files listed.

in the mean time would you recommend me using an older version?

Coordinator
Jun 24, 2010 at 11:31 AM

Not really, because that problem has existed since 1.2, so you'd have to revert to 1.1.1 to get one without it. What is your solution's layout? That's all that really matters. That bug only occurs with certain solution layouts.

Jun 24, 2010 at 11:34 AM

its a very big solution, consisting of around 37 projects, but the configuration designer is only included within one of the projects. that project is a class library type project.

Coordinator
Jun 24, 2010 at 12:08 PM

Yeah... that is probably the problem. I'm not going to go into detail, because it won't help you, but currently the CsdFileGenerator is very sensitive to every other project in your solution... among other things, it fails completely if your solution contains a VC++ project. So your best bet for now would be to put the configuration section project in a separate solution and then reference it as an assembly where required from there. When 1.6.2 comes out, you might be able to include it in the big solution.