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

NAnt Build problem: RadControls for ASP.NET AJAX

3 Answers 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
cmehta
Top achievements
Rank 1
cmehta asked on 16 Feb 2009, 11:58 AM
We purchased the Telerik UI suite (RadControls for ASP.NET AJAX) with source code.

We want to add our own source code files to the Telerik code and reference our own assemblies in the new build.

1) We are not able to compile Telerik.Web.UI using Nant after performing above as suggested in Command Prompt
2) There is no log file available for NAnt Build to check the errors in the build.
2) If we do not use NAnt, we are able to build in VS 2005 in release mode but when assembly is used it generates the error:

Assembly 'Telerik.Web.UI, Version=2008.2.1001.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' contains a Web resource with name 'Telerik.Web.UI.Grid.RadGridScripts.js', but does not contain an embedded resource with name 'Telerik.Web.UI.Grid.RadGridScripts.js'.


Further on adding above required file in Grid folder, changing the properties of js file to Compile, then the project does not build only.
3) Also, when the assemblies we get after building in release mode in VS 2005 are used in an application, they go into source code of Telerik.Web.UI despite of being built in Release mode.This behavious is not desirable.

Please suggest the solution to above:
1) Either how to go forward using NAnt Build? or
2) How to build in Release mode in VS 2005 without above problems?

Please mark a copy of reply to:
-chetan.mehta@cognizant.com
-rohit.virmani@cognizant.com

Regards
Chetan
Frameworks Team
marketRx (A Cognizant company)



3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Feb 2009, 12:02 PM
Hi cmehta,

This error may occur if you are trying to make a release build from Visual Studio. As outlined in the source code documentation this is not supported. Only debug builds can be made from Visual Studio. For release build you need to use NAnt. There should always be a log file if NAnt ever starts compiling the project. Also what is the error message in the console you see when you start NAnt from command line?

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
cmehta
Top achievements
Rank 1
answered on 20 Feb 2009, 04:32 AM
We built in release mode using NAnt only.

But before building:
1) We opened the solution in Visual Studio, did not build.
2) We made RadGrid class partial and added another partial RadGrid class in a file to add our features in code.
3) We added the reference to some of our assemblies required for the features in the C# code
4) Till now, we did not build the code.
5) Now, we built the code using NAnt
6) Build failed

-- Can you please provide the solution for this?
-- What is the location of the log file formed in the hierarchy of folders and what is the name of log file?

Please mark a copy of reply to:
-chetan.mehta@cognizant.com
-rohit.virmani@cognizant.com

Regards
Chetan
Frameworks Team
marketRx (A Cognizant company)
0
Atanas Korchev
Telerik team
answered on 20 Feb 2009, 07:45 AM
Hello cmehta,

We are not sure what the problem is. Is there any log file? Could you paste its contents? Have you tried building with Visual Studio? Does it build as expected? Can you perform a successful build without modifying the source code? Have in mind that we do not support any modifications to the source code.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
cmehta
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
cmehta
Top achievements
Rank 1
Share this question
or