WebSite Versioning.......

Last post 08-06-2008 4:28 AM by ravikiran189. 8 replies.

Sort Posts:

  • WebSite Versioning.......

    07-29-2008, 1:46 AM
    • Member
      2 point Member
    • ravikiran189
    • Member since 07-14-2008, 1:02 AM
    • Hyderabad
    • Posts 17

    Hello every one,

                               From the past 2 week's i have been trying to get over from  this problem....but no trace of luck....Any wayz Guys i need to give versioning for the dll's that have been generated through publishing the website thru MS.NET 2005.I'm using VB for this...Based on the survey i have did the deployment process also but no luck the ddl's have been generated by publishing but no trace of the version numbers i have specified in the assemblyinfo...

                               Hope you guys understand my problem....Please help me out of this..!!!!!

     

     

    Regard's

    Bob Gally

    BobGally
  • Re: WebSite Versioning.......

    07-29-2008, 5:38 PM
    • Contributor
      3,389 point Contributor
    • hongping
    • Member since 11-02-2006, 9:42 PM
    • Posts 633
    • AspNetTeam

    Please refer to the answers provided in your previous post: http://forums.asp.net/p/1290586/2492309.aspx#2492309

    If you are having specific problems with using Web Deployment Projects, please be more specific and state exactly what you did and what happened.

    I would recommend that you try out a simple empty web site and versioning it using Web Deployment Projects to see how it works.

    ==============================================
    If you get the answer to your question, please mark it as the answer.
  • Re: WebSite Versioning.......

    07-30-2008, 5:23 AM
    • Member
      2 point Member
    • ravikiran189
    • Member since 07-14-2008, 1:02 AM
    • Hyderabad
    • Posts 17

    Hey Bro ..!!!!

                            Have done with the web deployment process...I have done the changes as per the link you have specified.When the site is published the dll's are not versionised rather that being with o.o.o.o, It would be more helpful if u gimme one by one steps regarding this.Hope you understand my problem,More over i'm new to this environment

     

     

    Regard's

    Bob

    BobGally
  • Re: WebSite Versioning.......

    07-30-2008, 5:45 AM
    • Member
      86 point Member
    • mohdtabrez
    • Member since 05-01-2007, 5:40 AM
    • Posts 15

    Check AssemblyInfo.vb or cs file to mark the version - below example just mark your dll with version 3.1.2.7

     

    //

    // Version information for an assembly consists of the following four values:

    //

    // Major Version

    // Minor Version

    // Build Number

    // Revision

    //

    // You can specify all the values or you can default the Revision and Build Numbers

    // by using the '*' as shown below:

    [assembly: AssemblyVersion("3.1.2.7")]

  • Re: WebSite Versioning.......

    07-30-2008, 2:59 PM
    • Contributor
      3,389 point Contributor
    • hongping
    • Member since 11-02-2006, 9:42 PM
    • Posts 633
    • AspNetTeam

     You should be able to find many articles about using Web Deployment Projects on Msdn or using a major search engine.

    Here are two links I found which might be helpful. The first one is a step-by-step tutorial.

    http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx

    http://msdn.microsoft.com/en-us/library/aa479568.aspx

     

    ==============================================
    If you get the answer to your question, please mark it as the answer.
  • Re: WebSite Versioning.......

    07-31-2008, 1:39 AM
    • Member
      2 point Member
    • ravikiran189
    • Member since 07-14-2008, 1:02 AM
    • Hyderabad
    • Posts 17

    Hii Bro !!!

                         I have found many articles reg this but one thing disturbs me in all....I can't versionise each dll when i choose the option that builds individual dll for each aspx page..To be clear in this regard, the link which u have given  " http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx "     in    this " separate named assembly (for example: MyCompany.MyWebApp.Folder1, MyCompany.MyWebApp.Folder2) " i get into this category....I am able to give version if the output is different but when coming to generation of dll's for each aspx page ie .vb i cant get in to versioning..

     

                  Hope you understand my problem,Moreover thx for your repetitive support regarding this...Expecting the same further

     

    Regard's

    Bob Gally. 

    BobGally
  • Re: WebSite Versioning.......

    08-03-2008, 10:53 PM
    Answer

    Hi ravikiran189,

    From your description, I understand that you have added the web deployment project in the web site solution. You can generate the versioned assembly when selecting the “Merge each individual folder output to its own assembly” option in web deployment project’s property page. However, by selecting the “Create a separate assembly for each page and control output” option, all the version of generated assembly is 0.0.0.0. If there has been any misunderstanding, please let me know.

    As you can see, when we select the “Create a separate assembly for each page and control output” option, the merge options that we can assign assembly version is grayed out. It is because when selecting this option, Visual Studio IDE will not invoke the aspnet_merge.exe tool to merge each output assemblies. It just invoke the aspnet_compiler.exe tool to precompiler the web site project that by default set assembly versio to 0.0.0.0.

    To solve this issue, we need to add the AssebmlyInfo.cs file (AssebmlyInfo.vb for VB project) in the web site project, and the set the AssebmlyInfo file setting in web.config of the web site project (in the compilerOptions attribute of the compiler element). For your reference, please refer to the following steps:


    1. Add an AssemblyInfo.cs file in the web site project, the content of the AssemblyInfo.cs is like the following:

    *************** AssemblyInfo.cs ********************
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;

    [assembly: AssemblyDescription("")]
    [assembly: AssemblyConfiguration("")]
    [assembly: AssemblyCompany("Microsoft")]
    [assembly: AssemblyCopyright("Copyright © Microsoft 2008")]
    [assembly: AssemblyTrademark("")]
    [assembly: AssemblyCulture("")]
    [assembly: ComVisible(false)]
    [assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")]
    [assembly: AssemblyVersion("1.2.3.4")]
    [assembly: AssemblyFileVersion("1.2.3.4")]

    2. Specify the assembly-information file in the compilerOptions attribute of the compiler element.

    ****************** web.config *********************
    </configuration>
      ……………
      <system.codedom>
        <compilers>
          <!-- zero or more compiler elements -->
          <compiler
            language="c#;cs;csharp"
            extension=".cs"
            type="Microsoft.CSharp.CSharpCodeProvider, System,
              Version=2.0.3600.0, Culture=neutral,
              PublicKeyToken=b77a5c561934e089"
            compilerOptions="E:\program2008\WebSite\GeneralWebSite\AssemblyInfo.cs"
            warningLevel="1" />
        </compilers>
      </system.codedom>
    </configuration>

    3. Rebuild the web deployment project and check its output in the "bin" folder.

    For official introduction, please refer to the link below.

    How to: Create Versioned Assemblies for Precompiled Web Sites 
    http://msdn.microsoft.com/en-us/library/ms228042(VS.85).aspx

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: WebSite Versioning.......

    08-04-2008, 1:10 AM
    • Member
      2 point Member
    • ravikiran189
    • Member since 07-14-2008, 1:02 AM
    • Hyderabad
    • Posts 17

    Thx Ben....

                         You really solved my problem....Thk You Very Much..One more question disturbes me regarding the same  is...How about when an aspx page is changed & i gotta increment version for only that perticular one's...Is there any solution for this...

     Thank's & Regard's

    Ravi Kiran P

    BobGally
  • Re: WebSite Versioning.......

    08-06-2008, 4:28 AM
    • Member
      2 point Member
    • ravikiran189
    • Member since 07-14-2008, 1:02 AM
    • Hyderabad
    • Posts 17

    Hii... I have found many articles reg Versioning but one thing disturbs me in all....I was not able to versionise each dll,but later it was done.In versioning process of each dll when published or deployed all the dll's are versionised as per the Version given in " AssemblyInfo.vb ".....What if a perticular / Individual .aspx file has been modified, If so i gotta give a new version for the concerned dll..But giving versioning for a single dll is the one which stoped me, as i have to redeploy the whole website by doing this the  version number changes for all the dll's in the website...Guys please help me out from this problem..If you didn't ge my question please reply as i can modify as per.....

      FYI i am using MS.NET 2005 (aspx pages with VB)

     

     Thanks & Regards

     Ravi Kiran P

     

     

    BobGally
Page 1 of 1 (9 items)