You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a windows app (.exe) and using clickonce to publish it. The project has a data file "data.xml" with some configurations. When I publish and install, the data file not being copied to the clickonce data folder and so the app can't find it. Before I apply transform to the data file the clickonce was function fine, the file was on clickonce data folder, but after I applied transform to the file the app began to give error of file not found.
After I analyze the problem I found this:
The data file is being deployed, there is a file on the publish folder "data.xml.deploy" (is there with and without the transform).
I found a difference in the manisfet file on the publish folder after I apply the transform. For some reason after slow-cheetah apply the transform at the data file the publish is not including the writeableType="applicationData" attribute to the manifest, what I think is the reason the data file not being copied to the data folder on installation.
A- part of the manifest of the data file without transform
The properties of the data file on VS is: Build Action = Content Copy to Output Folder = Copy Always
The config on the Publish > Application Files is:
data.xml Data File Required Include
(I set it to Data File and not Auto)
OBS1: I'm applying transform to the app.config file without problems the entire time.
OBS2: Later I remove the transform of the data file and remove the attribute TransformOnBuild from the ItemGroup > Content at the project file, the app works fine with the data.xml on the Data folder.
The text was updated successfully, but these errors were encountered:
Hi,
I have a windows app (.exe) and using clickonce to publish it. The project has a data file "data.xml" with some configurations. When I publish and install, the data file not being copied to the clickonce data folder and so the app can't find it. Before I apply transform to the data file the clickonce was function fine, the file was on clickonce data folder, but after I applied transform to the file the app began to give error of file not found.
After I analyze the problem I found this:
The data file is being deployed, there is a file on the publish folder "data.xml.deploy" (is there with and without the transform).
I found a difference in the manisfet file on the publish folder after I apply the transform. For some reason after slow-cheetah apply the transform at the data file the publish is not including the writeableType="applicationData" attribute to the manifest, what I think is the reason the data file not being copied to the data folder on installation.
A- part of the manifest of the data file without transform
The properties of the data file on VS is:
Build Action = Content
Copy to Output Folder = Copy Always
The config on the Publish > Application Files is:
data.xml Data File Required Include
(I set it to Data File and not Auto)
OBS1: I'm applying transform to the app.config file without problems the entire time.
OBS2: Later I remove the transform of the data file and remove the attribute TransformOnBuild from the
ItemGroup > Content
at the project file, the app works fine with the data.xml on the Data folder.The text was updated successfully, but these errors were encountered: