On occasion, I get the following error in design mode of some user controls in Visual Studio 2008:
The file 'UserControl.vb' does not support code parsing or generation because it is not contained within a project that supports code.
It doesn't happen on a consistent basis, but it happens enough to be annoying. Are there any common causes of this error?
And yes, it is in a project that supports code - last I checked, WinForms projects typically have code in them!
We need to enable the designer in Visual Studio. Go to Tools > Options > Environment > Preview Features and select the Use the preview Windows Forms designer for .
Recipe design-time errors refer to errors which are caught while building a recipe. These errors typically show up when you select recipe test or recipe start, and prevent you from testing or starting the recipe until they are resolved.
It is a bug in VS. It happens in VS2005 as well.
Don't waste your time: close VS, open it again and everything should work fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With