473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Exclude files and general search

In VS 2005 if you exclude files from a project, it actually renames the
file to filename.exclude. In previous versions, it just left the file
alone but excluded it. If you have a very large ASP.net web site you
may have thousands of images. In our case we have millions because the
nature of the site is that users upload their photo albums to share
with other users. I NEVER want the IDE to enumerate these files for
any reason, including loading them into the solution explorer tree. If
I exclude them, the IDE will enumerate them as it renames them, taking
forever, and breaking the website.

The real problem is that I need to do a global replace for a string
that may be in the .aspx file or in the .aspx.vb file depending on the
page. The website only has about 100 different pages. When I do a
find with the search scope set to 'Current Project' it gets every file
from the web. This is the massage in the status bar.

Getting the file '9897686.jpg' from the web...

IMHO, an exclude should not rename any files and a find or replace
should be able to not try to access inappropriate files.

The question, finally, is are there any workarounds for this behavior?

Dec 28 '06 #1
1 1566
The problem is, the project type you are using is not the same as in VS
2003. You're using the new Web Site project in VS 2005, which uses a
different approach than VS 2003. You need to use a different project type.
There's a new project type for VS 2005 called Web Application projects. They
behave more to what you are used to in VS 2003 and were created due to the
demand for a project type similar to the old model. You can download the Web
Application project seperately over at www.asp.net, or you can download it
as part of the VS 2005 Service Pack 1.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"AntiChrist" <da***@davidtayloronline.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
In VS 2005 if you exclude files from a project, it actually renames the
file to filename.exclude. In previous versions, it just left the file
alone but excluded it. If you have a very large ASP.net web site you
may have thousands of images. In our case we have millions because the
nature of the site is that users upload their photo albums to share
with other users. I NEVER want the IDE to enumerate these files for
any reason, including loading them into the solution explorer tree. If
I exclude them, the IDE will enumerate them as it renames them, taking
forever, and breaking the website.

The real problem is that I need to do a global replace for a string
that may be in the .aspx file or in the .aspx.vb file depending on the
page. The website only has about 100 different pages. When I do a
find with the search scope set to 'Current Project' it gets every file
from the web. This is the massage in the status bar.

Getting the file '9897686.jpg' from the web...

IMHO, an exclude should not rename any files and a find or replace
should be able to not try to access inappropriate files.

The question, finally, is are there any workarounds for this behavior?

Dec 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Field | last post by:
Hello, Is it possible to exclude certain files in a wx.FileDialog, so that the user won't see them and can't select them with the mouse in de File open window? I was thinking of somehow...
1
by: Dave L | last post by:
I am authoring a basic search page for our website. First, I am searching our db using the entire phrase entered by the searcher. If there are no results, I parse the phrase using java's...
1
by: Hardy Wang | last post by:
Hi, I have a ASP.NET web site with form authentication. Now I need to create a sub folder named "abc", I need to exclude all files under this folder nopt to be protected by form authentication,...
4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
4
by: shonend | last post by:
I am trying to extract the pattern like this : "SUB: some text LOT: one-word" Described, "SUB" and "LOT" are key words; I want those words, everything in between and one word following the...
2
by: Arsen V. | last post by:
Hi, How to exclude the App_Data directory from Visual SourceSafe? It appears that Vs 2005 automatically adds the App_Data directory with the large binary MDF and LOG files to the Visual...
3
by: KJ | last post by:
Hello All, Can someone please explain what these .exclude/.include files are? They only show up in some web site projects, and it seems to be related to deleting. Any ideas?
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
3
by: ITSimTech | last post by:
I'm trying to learn how/do two things here: 1) If the user searches for "Data" ($searchtext = "Data") the output should also include the fourth record because Field1 contains "all". 2) But the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.