Cannot Build When Including New Theme

Last post 12-07-2003 2:07 PM by Redd. 1 replies.

Sort Posts:

  • Cannot Build When Including New Theme

    12-06-2003, 12:28 AM
    • Member
      20 point Member
    • parkbrit
    • Member since 09-04-2003, 1:36 PM
    • Posts 4
    Hi,

    I just added a new skin in GCN that I was able to apply to my community with no problems. I am having an issue building my GCN solution in VS.NET 2003. Here's my compiler output...have any clues on why the compiler is looking for codebehind and resources for these new skin files, but not the original skins?:

    ------ Build started: Project: CSKDotNet, Configuration: Debug .NET ------

    Preparing resources...
    Updating references...
    Performing main compilation...
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Comments_DisplayComments.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Sections_SectionMenu.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Sections_SectionMenuBottom.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Topics_TopicMenu.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Users_DisplayProfile.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\ControlSkins\Users_UserLogin.ascx.cs' could not be opened ('The system cannot find the file specified. ')
    error CS1504: Source file 'D:\Program Files\CSKDotNet\Communities\Common\Themes\VCC\Skins\PageSkins\Default.ascx.cs' could not be opened ('The system cannot find the file specified. ')

    Build complete -- 7 errors, 0 warnings
    Building satellite assemblies...
    Satellite assemblies could not be built because the main project output is missing.


    ---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped
  • Re: Cannot Build When Including New Theme

    12-07-2003, 2:07 PM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 11:50 AM
    • Greenville SC
    • Posts 1,057
    VS.NET automatically creates a code-behind file for every user control and web form page you create through the solution explorer. You need to remove the code behind file manually. Then you must change the generate @control directive by removing the code-behind property and changing the inherits/imports property to point to the proper CSK code file (use the default theme's control properties as an example if you don't know which class you should point your skins towards)
    Stephen M. Redd
    http://www.reddnet.net
Page 1 of 1 (2 items)