This is a migrated thread and some comments may be shown as answers.

Generated .cs files do not include 'using' statement

2 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 10 Apr 2012, 01:11 PM
We have been using previous releases successfully for quite a while and recently updated to the Q1 2012 release. No several of our machines now will not build our projects unless we do a 'clean' and then 'build'. Rebuild does not work. The issue is that none of the generated .cs files have the 'using Telerik.Windows.Controls' statement. Hence none of the Rad controls are defined. Simply doing a 'Clean' and 'Build' regenerated them with the using statement and it builds fine. Until the next time we load the project. This is just annoying for the developer, but it has completely broken our build scripts.

All of our xaml includes the line 'xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"' as in your examples.

Any ideas?

Thanks
Dave Goughnour

2 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 10 Apr 2012, 01:25 PM
Hi David,

Unfortunately the problem resides in Microsoft's mechanism for creating the g.i.cs and g.i.vb files. 
You can see the issue documented here

Hope this helps! 

Greetings,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
David
Top achievements
Rank 1
answered on 10 Apr 2012, 02:25 PM
Not exactly what I wanted to hear, but at least now I know how to get it to work (I hope). I added a step to our build process to remove all the files ending in g.i.cs in the project tree before doing a build. I started another build. Hopefully that will fix it.Our developers (at least the ones on whose machine this problem occurs) will have to avoid Rebuild and use Build (preceded by a Clean if they really need it).

Thanks
Dave

Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Nick
Telerik team
David
Top achievements
Rank 1
Share this question
or