Steve M. Robbins
2010-02-17 21:09:39 UTC
Hi,
I'm struggling with the interaction of Microsoft Visual Studio 2008
and perforce's design of marking checked-out files as read-only.
We have a codebase built using Visual Studio 2008 that contains
resource files (SR.resx). Some tool will create a file named
"SR.Designer.cs" from SR.resx and VS2008 adds it to source control.
All is well when first created. Things go badly when a second
developer checks out the sources on his machine.
We use Perforce, which checks out files read-only.
If the second developer is starting from scratch, the first build
generally fails with the message "Cannot write to the Strongly Typed
Resource class file "SR.Designer.cs". We need to set all the files to
read-write in order to do the build. This despite the fact that the
SR.Designer.cs files are not changed (checked via "diff" after the
build).
This also plays havoc with our build server, where we'd like to do the
build starting from an empty directory, pull the sources and build.
How do folks deal with this situation?
The generated code contains:
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
Can I configure StronglyTypedResourceBuilder in any way?
Thanks,
-Steve
P.S. Feel free to answer on StackOverflow [1] where I have also posed this question.
[1] http://stackoverflow.com/questions/2283777/vs2008-auto-generated-files-versus-source-control-read-only-checkout-best-practi
I'm struggling with the interaction of Microsoft Visual Studio 2008
and perforce's design of marking checked-out files as read-only.
We have a codebase built using Visual Studio 2008 that contains
resource files (SR.resx). Some tool will create a file named
"SR.Designer.cs" from SR.resx and VS2008 adds it to source control.
All is well when first created. Things go badly when a second
developer checks out the sources on his machine.
We use Perforce, which checks out files read-only.
If the second developer is starting from scratch, the first build
generally fails with the message "Cannot write to the Strongly Typed
Resource class file "SR.Designer.cs". We need to set all the files to
read-write in order to do the build. This despite the fact that the
SR.Designer.cs files are not changed (checked via "diff" after the
build).
This also plays havoc with our build server, where we'd like to do the
build starting from an empty directory, pull the sources and build.
How do folks deal with this situation?
The generated code contains:
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
Can I configure StronglyTypedResourceBuilder in any way?
Thanks,
-Steve
P.S. Feel free to answer on StackOverflow [1] where I have also posed this question.
[1] http://stackoverflow.com/questions/2283777/vs2008-auto-generated-files-versus-source-control-read-only-checkout-best-practi