a couple of MSVC questions
concerning vs2005, Nothing major but
A/ WRT find in files (One of my most used commands) but is it possible to apply hilighting to the results, specifically I want to be able to tell if the results point to a line that is commented out, thus can be ignored
B/ Is it possible to rename a .vcproj, Ive tried manually 'hacking' the file but it doesnt work
Quote:Original post by zedz
A/ WRT find in files (One of my most used commands) but is it possible to apply hilighting to the results, specifically I want to be able to tell if the results point to a line that is commented out, thus can be ignored
I know Visual Assist X can do it, but not sure about vanilla MSVC.
Quote:B/ Is it possible to rename a .vcproj, Ive tried manually 'hacking' the file but it doesnt work
Sure, why wouldn't it be? I wouldn't "hack" it though, just remove the project from the solution, rename the file (there could be references inside the project file to the old name so change those too), and add it back to the solution. Easy. If you're feeling really lucky you can directly modify the solution file (which preserves project dependency settings), but that can be dangerous if you miss a reference. I've done all this before, so I know it's possible. Just make sure to catch all the references (including source control)!
thanks Zipster Ill try virtual assist (though the last couple of plugin things Ive tried to get working with vc2005 have failed, I think my installation is screwed from when I tried to install vc2008 which failed to install, I really need a fresh install of windows though Im waiting for windows7).
About the renaming, I have tried that but it doesnt work, I believe theres info in the GUID that invalidates when u rename a file
from the *.sln file
Project("{8B11CEB8-8B4A-11D0-8E11-00V0C91BC84A}") = "BASIS", "BASIS.vcproj", "{F26AAC16-9B44-4A03-85E3-CBE454C5DE25}"
Yes this is a minor issue but literrally all my projects (20+) from the last 2-3years are called the same, which aint ascetically nice
About the renaming, I have tried that but it doesnt work, I believe theres info in the GUID that invalidates when u rename a file
from the *.sln file
Project("{8B11CEB8-8B4A-11D0-8E11-00V0C91BC84A}") = "BASIS", "BASIS.vcproj", "{F26AAC16-9B44-4A03-85E3-CBE454C5DE25}"
Yes this is a minor issue but literrally all my projects (20+) from the last 2-3years are called the same, which aint ascetically nice
Quote:Original post by zedz
About the renaming, I have tried that but it doesnt work, I believe theres info in the GUID that invalidates when u rename a file
from the *.sln file
Project("{8B11CEB8-8B4A-11D0-8E11-00V0C91BC84A}") = "BASIS", "BASIS.vcproj", "{F26AAC16-9B44-4A03-85E3-CBE454C5DE25}"
No, the guid is just a guid. I've actually created entirely new ones and replaced them wholesale when our solution files got corrupted (side note: ClearCase is a crappy source-control product). You're probably missing something, which is fairly easy to do.
Renaming .vcproj files is straighforward, you just need to change the name of the file on disk and in the solution file. I do it all the time.
OK Ive got it working, sort of
if u manually edit it + click on the .sln file it doesnt open, same with running it from a command prompt it doesnt work (it also doesnt display an error message)
if u hover with the mouse over the *.sln file it displays in a box
Size:X bytes
Type: MS V S S
Version: (unrecognized version) <-- thus somehow MSVC is aware if u alter a *.sln file (perhaps its compares time of creation between *.sln + *.vcproj)
though it DOES work if u click on the *vcproj file
if u manually edit it + click on the .sln file it doesnt open, same with running it from a command prompt it doesnt work (it also doesnt display an error message)
if u hover with the mouse over the *.sln file it displays in a box
Size:X bytes
Type: MS V S S
Version: (unrecognized version) <-- thus somehow MSVC is aware if u alter a *.sln file (perhaps its compares time of creation between *.sln + *.vcproj)
though it DOES work if u click on the *vcproj file
Can't remember if it works in 2005, but in 2008, you just right click the project in VS and rename it. I'm guessing it doesn't in 2005.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement