Loading
XML File Changes - fails due to read-only
Hi All...

 

We have an install script project where we're changing an installed XML file - web.config - using XML File Changes.

 

Before we build the release, we download all of the install files out of a source-control project - Visual SourceSafe.

 

Since all of the files being downloaded out of SourceSafe are written as read-only, the XML File Changes is failing.

 

We've tried changing the attributes of that file unsing a call to SetFileInfo inside OnMoving() and OnMoved(), but neither one seems to do the trick.

 

If after the files are downloaded out of SourceSafe we go and change the attribute of this xml file explicitly, everything works. The extra step is annoying... It'd be nice if IS 2010 could turn off the read-only before modifying the file.

 

Any thoughts?

 

Many thanks! -- Curt

  • " curtisdehaven wrote:

     

    Hi All...

     

    We have an install script project where we're changing an installed XML file - web.config - using XML File Changes.

     

    Before we build the release, we download all of the install files out of a source-control project - Visual SourceSafe.

     

    Since all of the files being downloaded out of SourceSafe are written as read-only, the XML File Changes is failing.

     

    We've tried changing the attributes of that file unsing a call to SetFileInfo inside OnMoving() and OnMoved(), but neither one seems to do the trick.

     

    If after the files are downloaded out of SourceSafe we go and change the attribute of this xml file explicitly, everything works. The extra step is annoying... It'd be nice if IS 2010 could turn off the read-only before modifying the file.

     

    Any thoughts?

     

    Many thanks! -- Curt "

     

    Hi,

     

    If you are using the msi project type you can change the read-only flag for the file.

     

    If the file is included in a component in your project.

     

    Goto the components view and right click -- properties.

     

    You can override the file attributes.

     

     

    Vijay__k
    Expand Post
  • But the above solution is only applicable when the file is added individually to the component.

     

    If the file is in dynamic linking folder then how can we resolve this issue?

Loading
XML File Changes - fails due to read-only