How do I stop VS2008 trying to compile .ASP pages as Visual Basic?

I have a website with mixed ASP (classic) and ASP.NET pages.

For some reason Visual Studio (2008 Pro in particular) keeps trying to compile classic ASP pages.

How can I prevent trying to compile .asp pages?

Cause. I am getting tons of errors in a specific .asp file that includes the class. I believe it is trying to compile it as a Visual Basic class rather than treating it as a vBScript class. It should be skipping .asp files anyway, right?

Here is the error:

The Get / Let / Set property is no longer supported; use the new property of the declaration syntax.

0


source to share


3 answers


Is Service Pack 1 installed? It addresses some of the problems with classic ASP.



+1


source


What's in the @Page directive in these classic ASP pages? Have you tried inserting <% @Page language="vbscript" %>

Is this already done?



0


source


This is one solution. Go to file explorer (in windows, not vs), select properties and make them hidden. This will force Visual Studio to compile the files.

0


source







All Articles