Search:
Namespaces
Discussions
.NET v1.1
Feedback
renaming project file ?
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.languages.vc
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Chris
Hi,
I create a new VC++ project, then want to rename the default filename Form1
(used for .h, .cpp, .resx) to something else.
If I rename it from within Windows explorer the project becomes all messed
up.
So, how do I rename the files properly ?
thnx
Chris
Reply to this message...
Tarek Madkour [MSFT] (VIP)
"Chris" <
Click here to reveal e-mail address
> wrote in
news:O0iZc.232775$
Click here to reveal e-mail address
:
[Original message clipped]
First, you'll need to rename the files in the project. You can
either, rename the files from the command-line then go to the
solution explorer and make the project point to the new renamed
files. Or (easier), just rename the files from solution explorer
(which both renames the file on disk and makes the project point
to the new file name).
Second, you'll need to make resgen.exe use the correct name for
the .resources file. The correct name is
"namespace.formclassname.resources". You'll need to update the
input name property on the .resx file to reflect the correct name.
The reason you need to do this step is that, by default, the input
to resgen is set to use the "filename.resources" but now that the
filename is not the same as the class name, you need to make it
point to the class name.
Hope this helps.
Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com