Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Exclude files from vdproj file
 

Exclude files from vdproj file

Using VS2005,how do I (in MSI)

- exclude the files that are referenced in my vcproj file

If I try to exclude the files individually and then update the reference file version, again the MSI picks it up, so how can I also exclude the files, irrespective of its version.

Thanks

Mamatha

Mamatha  Tuesday, October 07, 2008 4:21 PM

I'm sorry, I don't think this really will work this way, because our identity of the file that's being excluded includes the version. When it changes, it doesn't match the exclusion list, and is brought back into the system.

I'm sorry I don't have a better answer.

David Guyer MSFT  Wednesday, October 08, 2008 5:20 AM

I'm sorry, I don't think this really will work this way, because our identity of the file that's being excluded includes the version. When it changes, it doesn't match the exclusion list, and is brought back into the system.

I'm sorry I don't have a better answer.

David Guyer MSFT  Wednesday, October 08, 2008 5:20 AM

One more question - if I exclude the version of the file on my development machine and build it using Team Build on the Build Machine, still I find the files are included. Also as the folders differ I updated the vdproj file as per the folder structure on the build machine and still no luck in excluding the files with Team Build (calls vdproj using devenv.exe command line).

any inputs how to resolve this issue.

Regards

Mamatha

Mamatha  Wednesday, October 22, 2008 3:03 PM

More Info:

I tried to build the vdproj file, then delete the files that need to be excluded from the MSI and then "build" the vdproj again. This seems to exclude the files on some solution files only but in the other solution file the csproj would compile again. Has anyone seen these issues.

Steps that work using command line when done manually on development machine works, but the same steps on the build machine through team build does not work

1. devenv <vdproj> /build "Release"

2. delete the files to be excluded

3. devenv <vdproj> /build "Release"

Mamatha  Tuesday, October 28, 2008 8:41 PM

You can use google to search for other answers

Custom Search

More Threads

• Register Dll in GAC using Click Once
• TemporaryKey.pfx" was canceled
• The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
• How to uninstall a Click Once Application from a batch file?
• Missing Security and Publish tabs from properties page
• Prerequisites of Published Programs
• Unable to find publish wizard in VS 2005
• ClickOnce - The Web server does not appear to have any authentication methods enabled (Visual Studio Team System 2005)
• When or how can I expect to be able to deploy reliably?
• Can't Seem to Make a VB EXpress app created on an XP machine run on a Vista machine.