<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.codeblocks.org/index.php?action=history&amp;feed=atom&amp;title=Workspace_file</id>
	<title>Workspace file - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.codeblocks.org/index.php?action=history&amp;feed=atom&amp;title=Workspace_file"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Workspace_file&amp;action=history"/>
	<updated>2026-04-20T15:57:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Workspace_file&amp;diff=4466&amp;oldid=prev</id>
		<title>Mandrav: Initial text</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Workspace_file&amp;diff=4466&amp;oldid=prev"/>
		<updated>2007-03-01T11:59:28Z</updated>

		<summary type="html">&lt;p&gt;Initial text&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Code::Blocks Documentation]]&lt;br /&gt;
[[Category:Developer Documentation]]&lt;br /&gt;
The workspace XML file is a very simple one.&lt;br /&gt;
&lt;br /&gt;
A workspace is a collection of projects. Essentially the workspace file does exactly that: describes a collection of projects.&lt;br /&gt;
But let's see the contents of a sample workspace:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot; ?&amp;gt;&lt;br /&gt;
 &amp;lt;CodeBlocks_workspace_file&amp;gt;&lt;br /&gt;
 	&amp;lt;Workspace title=&amp;quot;Test Workspace&amp;quot;&amp;gt;&lt;br /&gt;
 		&amp;lt;Project filename=&amp;quot;TestConsole/TestConsole.cbp&amp;quot; active=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
 			&amp;lt;Depends filename=&amp;quot;TestLib/TestLib.cbp&amp;quot; /&amp;gt;&lt;br /&gt;
 		&amp;lt;/Project&amp;gt;&lt;br /&gt;
 		&amp;lt;Project filename=&amp;quot;TestLib/TestLib.cbp&amp;quot; /&amp;gt;&lt;br /&gt;
 	&amp;lt;/Workspace&amp;gt;&lt;br /&gt;
 &amp;lt;/CodeBlocks_workspace_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This XML text defines the workspace named &amp;quot;Test Workspace&amp;quot; containing two projects:&lt;br /&gt;
&lt;br /&gt;
* TestConsole/TestConsole.cbp and&lt;br /&gt;
* TestLib/TestLib.cbp&lt;br /&gt;
&lt;br /&gt;
Additionally, it defines a project dependency: the TestConsole project ''depends'' on the TestLib project. This instructs Code::Blocks to always make sure that the TestLib project is built ''before'' the TestConsole project.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' ''This is a build-order dependency that is being set. This will _not_ force a re-link of the TestConsole output (which is an executable) when the library generated by TestLib is updated. This behavior is influenced by another setting in the project file. See the [[Project file]] description for this.''&lt;br /&gt;
&lt;br /&gt;
Well, I 'd love to add various comments in the XML itself, to describe each element, but as you see it's pretty simple and straightforward :). The only thing that requires perhaps some explanation is the &amp;quot;active&amp;quot; attribute seen in the &amp;quot;Project&amp;quot; element for the TestConsole project. That attribute appears only when its value equals to &amp;quot;1&amp;quot; and in only one &amp;quot;Project&amp;quot; element inside the workspace. All it does is define which of the workspace projects will be the active one by default, when opening the workspace in Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all.&lt;br /&gt;
&lt;br /&gt;
[[User:Mandrav|Mandrav]] 11:59, 1 March 2007 (UTC)&lt;/div&gt;</summary>
		<author><name>Mandrav</name></author>
	</entry>
</feed>