Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4542866
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:27:03+00:00 2026-05-21T15:27:03+00:00

Everytime I add an xsd file to my Visual Studio 2008 build project, its

  • 0

Everytime I add an xsd file to my Visual Studio 2008 build project, its build action is defaulted to “none”. I regularly forget to put this one to “content” which messes up the build…

Is there anyway to set the default build action of xsd files to “content”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:27:04+00:00Added an answer on May 21, 2026 at 3:27 pm

    Finally found the answer in another stackoverflow question:

    http://blog.andreloker.de/post/2010/07/02/Visual-Studio-default-build-action-for-non-default-file-types.aspx


    From the article:

    CHANGING THE DEFAULT BUILD ACTION FOR A FILE-TYPE The default build
    action of a file type can be configured in the registry. However,
    instead of hacking the registry manually, we use a much better
    approach: pkgdef files (a good article about pkgdef files). In
    essence, pkdef are configuration files similar to .reg files that
    define registry keys and values that are automatically merged into the
    correct location in the real registry. If the pkgfile is removed, the
    changes are automatically undone. Thus, you can safely modify the
    registry without the danger of breaking anything – or at least, it’s
    easy to undo the damage.

    Finally, here’s an example of how to change the default build action
    of a file type:

    1:
    [$RootKey$\Projects{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\FileExtensions.spark]
    2: “DefaultBuildAction”=”Content” The Guid in the key refers to
    project type. In this case, “{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}”
    means “C# projects”. A rather comprehensive list of project type guids
    can be found here. Although it does not cover Visual Studio 2010
    explicitly, the Guids apply to the current version as well. By the
    way, we can use C# as the project type here, because C# based MVC
    projects are in fact C# projects (and web application projects). For
    Visual Basic, you’d use “{F184B08F-C81C-45F6-A57F-5ABD9991F28F}”
    instead.

    $RootKey$ is in abstraction of the real registry key that Visual
    Studio stores the configuration under:
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config (Note:
    Do not try to manually edit anything under this key as it can be
    overwritten at any time by Visual Studio).

    The rest should be self explanatory: this option sets the default
    build action of .spark files to “Content”, so those files are included
    in the publishing process.

    All you need to do now is to put this piece of text into a file with
    the extension pkgdef, put it somewhere under
    %PROGRAMFILES(x86)%\Microsoft Visual Studio
    10.0\Common7\IDE\Extensions (on 64-bit systems) or %PROGRAMFILES(x86)%\Microsoft Visual Studio
    10.0\Common7\IDE\Extensions (on 32-bit systems) and Visual Studio will load and apply the settings automatically the next time it starts. To
    undo the changes, simply remove the files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using an ASP.NET MVC project and everytime I add a class to
Every time you start Visual Studio, the first time you click Add Reference to
Everytime I svn update I get the following error Failed to add file path/to/file:
Everytime I add a new Form to my WinForms project, the designer generates code
I'm writing a Visual Studio toolbar Add-In that displays the current time. I have
Everytime I upload a file to my ASP.NET site, all users are logged out
I have a old website that generate its own RSS everytime a new post
I have a medium size Java file. Everytime I make a change to one
I have created an ad-hoc provision profile for my iPhone application. Everytime I add
I'm using .NET 2.0 and/or 3.5. Weird thing is, everytime I add a query,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.