Alex Rivera | Logout

Exclude from project, source control issue

Asked 2010-08-18T06:10:39.827
11

I'm using team foundation server 2010 @ work and home. I want to exclude some element from the project build but still have them exist in Team Foundation Server 2010 source control. How do I achieve this? Exclude From Project will delete the item.

tfs
Edit
Report

1 Answer

10

Same problem here, only way to do this is manually edit project file :(

Please vote that this bug is important to fix

https://connect.microsoft.com/VisualStudio/feedback/details/573582/vs-2010-exclude-from-project-deleting-files-from-source-control

Workaround posted on Connect:

Open the csproj file in notepad and find the files that need to be excluded and remove or comment the compile element for that file, and any related designer and resx files.

answered 2010-08-19T10:18:02.627

Your Answer