I am trying to create a add-in for version number auto update, i don't know how to get assemblyinfo (physical file) which are all associate with my current solution file.
Kindly help me to solve this.
Version number "auto update" is handled with an attribute:
// Version information for an assembly consists of the following four values:
// Major Version
// Minor Version
// Build Number
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion( "1.0.*" )]
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
Thank you Gerry Schmitz,
i can able to update the version in assemblyinfo.cs but my issue is i don't know how to get all assemblyinfo file path(ex: in my solution i have 5 projects i need to update all assemblyinfo respectively) from solution file.
I know why I am having the problem but I need a solution/workaround.
I have a c# program that generates excel output and saves it as an html file in the user's document folder. This automatically generates the [excel_file_name]_files subfolderwhich is used to store specific info used by the html file. The program ALSO auto-generates jpg images every time it is run based on historic data that is taken from the spreadsheet each time it is run and saves those images in this sub-folder. The program needs to be able to delete the files it creates within this folder but of course the user's folder makes sure to keep programs from simply deleting arbitrary files within the user's folder so that prevents me from deleting them as I do not have permission to delete a users files.
Is it possible for me to programmatically grant the application OS permissions to delete/change files it creates within a user's subfolder? Or will the user need to run the program with admin rights each time (if they can even get such rights).?
Did you read my post? I already specified that. Specifically the program saves an Excel file "as an html file in the user's document folder. This automatically generates the [excel_file_name]_files subfolder... The program ALSO auto-generates jpg images every time... and saves those images in this sub-folder."
If that is too confusing, it is a subfolder of %USERPROFILE%\Documents created by Excel. This is BEFORE the application exports any excel files to html so the folder is not in use... and my application checks to make sure the folder exists before attempting any file operations; just in case the user has not ever used the program before.
Last Visit: 26-Feb-20 4:52 Last Update: 26-Feb-20 4:52