Reputation: 336
I have Below Settings, but my project still creates .sbr and .bsc file.
What could be the reason? How can I disable creating those files?
Upvotes: 3
Views: 3109
Reputation: 571
I'll post this solution here even though this post is old, as it's not mentioned in the post.
I found that once you enable the .bsc file generation, it's on forever. Even setting it to false doesn't stop its generation. If you have the following line in your .vcxproj file:
<BrowseInformation>false</BrowseInformation>
Then the file is still generated! The only way to stop it is to manually edit your .vcxproj file and delete this line (which is quite safe to do).
It worked for me; perhaps someone else Googling this problem will find this helpful.
Upvotes: 0
Reputation: 181
Today I learned my lesson on VS ... each cpp file has his own properties in the project file. ... and its possible to configure the project to no browseinformation and enable the option at file-level
Solution for my BSCMAKE error was to disable the option in the project (already done) AND to set the option for each cpp file in the project to "no" .. could be done manually or with search and replace in the vcxproj file.
Upvotes: 1
Reputation: 36
If you did all of what Helder Magalhães wrote and VS still creates .sbr and .bsc files then you have to check all source files in the project, because they can have that setting for them individually (as I found out):
Upvotes: 2
Reputation: 616
As there are several ways of enabling the feature, more awkward ones need to be checked also:
/FR
or /Fr
cl
or bscmake
commandsUpvotes: 2