When a WebSetup project starts (under VS2008) it will read all files from the project in memory.
In the 'PreBuildEvent' a batch-file is run to update Versionnumber inside 'AssemblyInfo.c s' (the version is updated, as visible in the file on disk).
But looking in the resulting assembly, the version is the one that was in AssemblyInfo.cs at the start of the Setup, not the adjusted version.
Looks like PreBuild is carried out before the actual build starts (as expected), but after the files are read from disk. Fustrating.
Is there any way to re-read files before the build actually starts? I did not find any info about this so far arround the Internet.
Thanks in advance,
Bosk04
In the 'PreBuildEvent' a batch-file is run to update Versionnumber inside 'AssemblyInfo.c s' (the version is updated, as visible in the file on disk).
But looking in the resulting assembly, the version is the one that was in AssemblyInfo.cs at the start of the Setup, not the adjusted version.
Looks like PreBuild is carried out before the actual build starts (as expected), but after the files are read from disk. Fustrating.
Is there any way to re-read files before the build actually starts? I did not find any info about this so far arround the Internet.
Thanks in advance,
Bosk04