Updating AssemblyInfo.cs file with Build VS.NET Soultion Action

I can’t get the “Build VS.NET Solution” action to update the AssemblyInfo.cs file. This is in a project that was converted from VS 2003 and everything worked great in that version. I have tried using Property Sets and tried using the “auto increment” on the Assembly Info tab in the action. I have also moved the assemblyInfo.cs file from the auto generated APP_Code directory from the VS2003 conversion up one level thinking that might be the issue. I am also using FinalBuilder 5 build 150.

Any ideas or suggestions would be greatly appreciated!

Some additional information for this issue:
1. Visual Studio won’t use the assemblyinfo.cs file unless it is located in the app-Code directory
2. I tried doing this with and without MS BUILD with no luck
3. The build log shows “Updating AssemblyInfo” but the file is not touched.

Hi John

Please send your csproj file to support so we can see why finalbuilder is not finding the assemblyinfo.cs file.

As I just recently converted some existing projects to Visual Studio 2005 I am by no means an expert at what I am saying. It appears that when you build a Visual Studio Web Service Project it does not use a csproj file. It uses only a sln solution file. I have enclosed the project for you to look at.

We also installed an add module from the MS web site for Web Deployment projects. From what I understandMS released Visual Studio with the intent to deploy web projects to production by just copying all the source files to the IIS directory. And the code would be compiled when accesed then stored in the GAC. Because a lot of people complianed they add functionality to create a "Web Deployment Project so you can still build the dll if you add this additional module. See the following link: http://msdn2.microsoft.com/en-us/library/aa479568.aspxWebServices.zip (26.912 KB)

Hi John,

When compiling Web Deployment Projects, you will need to use the ‘AssemblyInfo Updater’ action on the AssemblyInfo.cs file before compiling the web project. You can then use either the Build VS.Net action or the MSBuild Project action to compile the web project.

It may also interest you to look at ‘VS 2005 Web Application Projects’, which provide a similiar project model to what was used in VS 2003 in VS 2005, http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx.

Regards,
Paul.