1. string myString = (string)GetGlobalResourceObject("GResource", "msg_BrowserNotSupported");
This one is fine.
2. string myString = Resources.GResource.msg_BrowserNotSupported;
For this one JustCode underline GResource with the error
C#: Unknown type or namespace 'GResource' of 'Resources' |
5 Answers, 1 is accepted
This time we are one step ahead of you. Other people also reported this problem and it is already fixed. Early next week we will be releasing a new build that will incorporate this fix as well.
Kind regards,Deyan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Good news anyway. Will wait for the new release becuase this issue brings me 200+ errors in my solution.
We have released a new build of JustCode today. You can either download it from the site or use the build-in auto-update functionality. You can find a list of changes for this version here - http://bit.ly/7MPpph
If you have any questions or suggestions please feel free to contact us again.
Sincerely yours,
Deyan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thanks for reporting your problem. The issue at question was fixed in the Q1 release. What you might be experiencing is some cached error from a previous version. In order to fix this try refreshing code analysis using JustCode -> Refresh Code Analysis.
Another possibility is that you are experiencing a similar (but not the same) known issue. It appears when you have a global resource in a web site that is not a simple type (i.e. string). In this case your code could look similar to this:
string myString = Resources.GResource.MyObject.MyStringProperty;
If this is your case, you should know that this is already fixed and will be available with our next release (internal build as well).
If neither of this helps, Please use the "Report Good Code Red" functionality to report the issue - this way we will receive more info for your case.
If you have any other questions or problems please don't hesitate to come back to us.
Deyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.