Logged this error for the partial in the bug section a couple of weeks ago and received no reply so thought it was maybe just my box, but can you check something just to see if it is the same with you?
When an exception is thrown, the highlighted line has no relation to the error, the image below demonstrates, but just so everyone knows, I broke it to demonstrate the error in an obvious way, ie the error is thrown on the image property not the highlighted one. Had this happening yesterday and it seemed random, whatever it was it confused the life out of a not very smart person.
Hm, my issue seems more of a general problem with the standard core code references - have checked the web.config assembly references and they are as per latest config, but for some reason aren't picking up code completion properly - but will run fine.
So for example in following image of the visual studio editor you can see the extension methods aren't being picked up, but the front end is running and displaying everthing fine.
Yes, can confirm the above too, but my thoughts are that this is more VS than Umbraco. I'm running 2012 Ultimate and am receiving updates almost daily especially in the area of Web Essentials, I am getting some real odd error messages, but as you say it runs fine.
That said, it didn't occur in the V6 RC, but does in the release, odd one, but will continue to monitor it for now.
In v6 some extension methods moved to a different namespace. If you want to use the GetPropertyValue<> extension method you need to add the Umbraco.Web namespace instead of Umbraco.Core.
Thought it would be something pretty much exactly like that. Cheers.
Btw adding the the namespace to the web.config razor section doesn't appear to work for some reason, however using the following at top of the views works fine (Core needed for access to methods like HasValue).
v6 upgrade issue: code completion
code completion for Partial, GetPropertyValue and a bunch of other methods seems broken (editing razor views in Visual Studio), runs fine though.
HI Mark
Logged this error for the partial in the bug section a couple of weeks ago and received no reply so thought it was maybe just my box, but can you check something just to see if it is the same with you?
When an exception is thrown, the highlighted line has no relation to the error, the image below demonstrates, but just so everyone knows, I broke it to demonstrate the error in an obvious way, ie the error is thrown on the image property not the highlighted one. Had this happening yesterday and it seemed random, whatever it was it confused the life out of a not very smart person.
Cheers G
Hm, my issue seems more of a general problem with the standard core code references - have checked the web.config assembly references and they are as per latest config, but for some reason aren't picking up code completion properly - but will run fine.
So for example in following image of the visual studio editor you can see the extension methods aren't being picked up, but the front end is running and displaying everthing fine.
Hi Mark
Yes, can confirm the above too, but my thoughts are that this is more VS than Umbraco. I'm running 2012 Ultimate and am receiving updates almost daily especially in the area of Web Essentials, I am getting some real odd error messages, but as you say it runs fine.
That said, it didn't occur in the V6 RC, but does in the release, odd one, but will continue to monitor it for now.
Regards G
In v6 some extension methods moved to a different namespace. If you want to use the GetPropertyValue<> extension method you need to add the Umbraco.Web namespace instead of Umbraco.Core.
Jeroen
Thought it would be something pretty much exactly like that. Cheers.
Btw adding the the namespace to the web.config razor section doesn't appear to work for some reason, however using the following at top of the views works fine (Core needed for access to methods like HasValue).
is working on a reply...