1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-09-11 18:47:19 +03:00

Version 0.9

This commit is contained in:
Regis Cosnier 2011-08-04 17:36:48 +02:00
parent 7d928af1e4
commit 8b9253e43d
13 changed files with 210 additions and 105 deletions

View File

@ -54,6 +54,7 @@ namespace XSDDiagram
public Hashtable ElementsByName { get { return this.hashtableElementsByName; } set { this.hashtableElementsByName = value; } }
public List<DiagramBase> RootElements { get { return this.rootElements; } }
private XMLSchema.any fakeAny = null;
public delegate void RequestAnyElementEventHandler(DiagramBase diagramElement, out XMLSchema.element element, out string nameSpace);
public event RequestAnyElementEventHandler RequestAnyElement;
@ -208,9 +209,22 @@ namespace XSDDiagram
public DiagramBase AddAny(DiagramBase parentDiagramElement, XMLSchema.any childElement, string nameSpace)
{
bool isDisabled = false;
if (childElement == null)
{
isDisabled = true;
if (fakeAny == null)
{
fakeAny = new XMLSchema.any();
fakeAny.minOccurs = "0";
fakeAny.maxOccurs = "unbounded";
}
childElement = fakeAny;
}
if (childElement != null)
{
DiagramBase childDiagramElement = new DiagramBase();
childDiagramElement.IsDisabled = isDisabled;
childDiagramElement.Diagram = this;
childDiagramElement.TabSchema = childElement;
childDiagramElement.Name = "any " + childElement.@namespace;
@ -326,10 +340,11 @@ namespace XSDDiagram
isSimpleType = complexTypeElement.mixed;
if (complexTypeElement.Items[i] is XMLSchema.complexContent)
{
hasChildren = false;
//hasChildren = false;
XMLSchema.complexContent complexContent = complexTypeElement.Items[i] as XMLSchema.complexContent;
if (complexContent.Item is XMLSchema.extensionType)
{
hasChildren = false;
XMLSchema.extensionType extensionType = complexContent.Item as XMLSchema.extensionType;
if (extensionType.all != null || extensionType.group != null || extensionType.choice != null || extensionType.sequence != null)
hasChildren = true;
@ -345,6 +360,11 @@ namespace XSDDiagram
}
}
}
//else if (complexContent.Item is XMLSchema.complexRestrictionType)
//{
// XMLSchema.complexRestrictionType complexRestrictionType = complexContent.Item as XMLSchema.complexRestrictionType;
//}
}
return;
}
@ -420,19 +440,22 @@ namespace XSDDiagram
{
if (complexTypeElement.Items != null)
{
for (int i = 0; i < complexTypeElement.Items.Length; i++)
XMLSchema.annotated[] items = complexTypeElement.Items;
XMLSchema.ItemsChoiceType4[] itemsChoiceType = complexTypeElement.ItemsElementName;
for (int i = 0; i < items.Length; i++)
{
if (complexTypeElement.Items[i] is XMLSchema.group)
if (items[i] is XMLSchema.group)
{
XMLSchema.group group = complexTypeElement.Items[i] as XMLSchema.group;
DiagramBase diagramCompositors = AddCompositors(parentDiagramElement, group, (DiagramBase.GroupTypeEnum)Enum.Parse(typeof(DiagramBase.GroupTypeEnum), complexTypeElement.ItemsElementName[i].ToString()), parentDiagramElement.NameSpace);
XMLSchema.group group = items[i] as XMLSchema.group;
DiagramBase diagramCompositors = AddCompositors(parentDiagramElement, group, (DiagramBase.GroupTypeEnum)Enum.Parse(typeof(DiagramBase.GroupTypeEnum), itemsChoiceType[i].ToString()), parentDiagramElement.NameSpace);
parentDiagramElement.ShowChildElements = true;
if (diagramCompositors != null)
ExpandChildren(diagramCompositors);
}
else if (complexTypeElement.Items[i] is XMLSchema.complexContent)
else if (items[i] is XMLSchema.complexContent)
{
XMLSchema.complexContent complexContent = complexTypeElement.Items[i] as XMLSchema.complexContent;
XMLSchema.complexContent complexContent = items[i] as XMLSchema.complexContent;
if (complexContent.Item is XMLSchema.extensionType)
{
XMLSchema.extensionType extensionType = complexContent.Item as XMLSchema.extensionType;
@ -475,12 +498,26 @@ namespace XSDDiagram
{
XMLSchema.restrictionType restrictionType = complexContent.Item as XMLSchema.restrictionType;
XSDObject xsdObject = this.hashtableElementsByName[restrictionType.@base.Namespace + ":type:" + restrictionType.@base.Name] as XSDObject;
if(xsdObject != null)
{
XMLSchema.annotated annotated = xsdObject.Tag as XMLSchema.annotated;
ExpandAnnotated(parentDiagramElement, annotated, restrictionType.@base.Namespace);
}
}
if (xsdObject != null)
{
XMLSchema.annotated annotated = xsdObject.Tag as XMLSchema.annotated;
ExpandAnnotated(parentDiagramElement, annotated, restrictionType.@base.Namespace);
}
else
{
for (int j = 0; j < items.Length; j++)
{
if (restrictionType.Items[j] is XMLSchema.group)
{
XMLSchema.group group = restrictionType.Items[j] as XMLSchema.group;
DiagramBase diagramCompositors = AddCompositors(parentDiagramElement, group, (DiagramBase.GroupTypeEnum)Enum.Parse(typeof(DiagramBase.GroupTypeEnum), restrictionType.ItemsElementName[j].ToString()), parentDiagramElement.NameSpace);
parentDiagramElement.ShowChildElements = true;
if (diagramCompositors != null)
ExpandChildren(diagramCompositors);
}
}
}
}
}
}
}
@ -533,40 +570,44 @@ namespace XSDDiagram
DiagramBase diagramCompositors = parentDiagramElement;
XMLSchema.group group = diagramCompositors.TabSchema as XMLSchema.group;
if (group.Items != null)
{
for (int i = 0; i < group.Items.Length; i++)
{
switch (group.ItemsElementName[i])
{
case XMLSchema.ItemsChoiceType2.element:
if (group.Items[i] is XMLSchema.element)
AddElement(diagramCompositors, group.Items[i] as XMLSchema.element, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.any:
if (group.Items[i] is XMLSchema.any)
AddAny(diagramCompositors, group.Items[i] as XMLSchema.any, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.group:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.group, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.all:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.all, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.choice:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.choice, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.sequence:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.sequence, diagramCompositors.NameSpace);
break;
}
}
parentDiagramElement.ShowChildElements = true;
}
if (group.Items != null)
{
for (int i = 0; i < group.Items.Length; i++)
{
switch (group.ItemsElementName[i])
{
case XMLSchema.ItemsChoiceType2.element:
if (group.Items[i] is XMLSchema.element)
AddElement(diagramCompositors, group.Items[i] as XMLSchema.element, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.any:
if (group.Items[i] is XMLSchema.any)
AddAny(diagramCompositors, group.Items[i] as XMLSchema.any, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.group:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.group, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.all:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.all, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.choice:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.choice, diagramCompositors.NameSpace);
break;
case XMLSchema.ItemsChoiceType2.sequence:
if (group.Items[i] is XMLSchema.group)
AddCompositors(diagramCompositors, group.Items[i] as XMLSchema.group, DiagramBase.GroupTypeEnum.sequence, diagramCompositors.NameSpace);
break;
}
}
parentDiagramElement.ShowChildElements = true;
}
else
{
AddAny(diagramCompositors, null, diagramCompositors.NameSpace);
}
}
}
@ -869,6 +910,7 @@ xmlns=""http://www.w3.org/2000/svg"">
protected GroupTypeEnum groupType;
protected bool isReference;
protected bool isSimpleContent;
protected bool isDisabled;
protected int minOccurrence = -1;
protected int maxOccurrence = -1;
protected bool hasChildElements = false;
@ -894,8 +936,9 @@ xmlns=""http://www.w3.org/2000/svg"">
public TypeEnum Type { get { return this.type; } set { this.type = value; } }
public GroupTypeEnum GroupType { get { return this.groupType; } set { this.groupType = value; } }
public bool IsReference { get { return this.isReference; } set { this.isReference = value; } }
public bool IsSimpleContent { get { return this.isSimpleContent; } set { this.isSimpleContent = value; } }
public int MinOccurrence { get { return this.minOccurrence; } set { this.minOccurrence = value; } }
public bool IsSimpleContent { get { return this.isSimpleContent; } set { this.isSimpleContent = value; } }
public bool IsDisabled { get { return this.isDisabled; } set { this.isDisabled = value; } }
public int MinOccurrence { get { return this.minOccurrence; } set { this.minOccurrence = value; } }
public int MaxOccurrence { get { return this.maxOccurrence; } set { this.maxOccurrence = value; } }
public bool HasChildElements { get { return this.hasChildElements; } set { this.hasChildElements = value; } }
public bool ShowChildElements { get { return this.showChildElements; } set { this.showChildElements = value; } }
@ -1068,8 +1111,13 @@ xmlns=""http://www.w3.org/2000/svg"">
{
//System.Diagnostics.Trace.WriteLine("DiagramElement.Paint\n\tName: " + this.name);
SolidBrush background = new SolidBrush(Color.White);
SolidBrush foreground = new SolidBrush(Color.Black);
Brush background = new SolidBrush(Color.White);
SolidBrush foreground = new SolidBrush(Color.Black);
if (IsDisabled)
{
background = new HatchBrush(HatchStyle.BackwardDiagonal, Color.Gray, Color.White);
foreground = new SolidBrush(Color.Gray);
}
Pen foregroundPen = new Pen(foreground);
float[] dashPattern = new float[] { Math.Max(2f, ScaleInt(5)), Math.Max(1f, ScaleInt(2)) };
@ -1433,8 +1481,9 @@ xmlns=""http://www.w3.org/2000/svg"">
stringFormatOccurences.Alignment = StringAlignment.Far;
stringFormatOccurences.LineAlignment = StringAlignment.Center;
stringFormatOccurences.FormatFlags |= StringFormatFlags.NoClip; //MONOFIX
string occurences = string.Format("{0}..", this.minOccurrence) + (this.maxOccurrence == -1 ? "∞" : string.Format("{0}", this.maxOccurrence));
PointF pointOccurences = new PointF();
//string occurences = string.Format("{0}..", this.minOccurrence) + (this.maxOccurrence == -1 ? "\u0066∞" : string.Format("{0}", this.maxOccurrence));
string occurences = string.Format("{0}..", this.minOccurrence) + (this.maxOccurrence == -1 ? "\u221E" : string.Format("{0}", this.maxOccurrence));
PointF pointOccurences = new PointF();
pointOccurences.X = this.Diagram.Scale * (this.Location.X + this.Size.Width - 10);
pointOccurences.Y = this.Diagram.Scale * (this.Location.Y + this.Size.Height + 10);
g.DrawString(occurences, this.SmallFont, foreground, pointOccurences, stringFormatOccurences);

View File

@ -478,50 +478,50 @@ namespace XSDDiagram
listAttributes.AddRange(ShowAttributes(complexType, nameSpace));
}
//RC++ Original code
else
{
}
//else
//{
//}
this.listViewAttributes.Items.Clear();
foreach (XSDAttribute attribute in listAttributes)
this.listViewAttributes.Items.Add(new ListViewItem(new string[] { attribute.Name, attribute.Type, attribute.Use, attribute.DefaultValue })).Tag = attribute;
//this.listViewAttributes.Items.Clear();
//foreach (XSDAttribute attribute in listAttributes)
// this.listViewAttributes.Items.Add(new ListViewItem(new string[] { attribute.Name, attribute.Type, attribute.Use, attribute.DefaultValue })).Tag = attribute;
//RC--
////Adrian++
////This part i modify
//else if (annotated is XMLSchema.simpleType)
//{
// XMLSchema.attribute attr = new XMLSchema.attribute();
// XMLSchema.localSimpleType def = new XMLSchema.localSimpleType();
// def.Item = (annotated as XMLSchema.simpleType).Item;
// attr.simpleType = def;
// string type = "";
// if (def.Item is XMLSchema.restriction) type = (def.Item as XMLSchema.restriction).@base.Name;
// XSDAttribute XSDattr = new XSDAttribute("filename", (annotated as XMLSchema.simpleType).name, "namespace", type, false, "", "", attr);
// listAttributes.Add(XSDattr);
//Adrian++
//This part i modify
else if (annotated is XMLSchema.simpleType)
{
XMLSchema.attribute attr = new XMLSchema.attribute();
XMLSchema.localSimpleType def = new XMLSchema.localSimpleType();
def.Item = (annotated as XMLSchema.simpleType).Item;
attr.simpleType = def;
string type = "";
if (def.Item is XMLSchema.restriction) type = (def.Item as XMLSchema.restriction).@base.Name;
XSDAttribute XSDattr = new XSDAttribute("filename", (annotated as XMLSchema.simpleType).name, "namespace", type, false, "", "", attr);
listAttributes.Add(XSDattr);
//}
////This part i modify
//this.listViewAttributes.Items.Clear();
//listAttributes.Reverse();
//foreach (XSDAttribute attribute in listAttributes)
//{
// string s = "";
// if (attribute.Tag.simpleType != null && attribute.Tag.simpleType.Item is XMLSchema.restriction)
// {
// XMLSchema.restriction r = attribute.Tag.simpleType.Item as XMLSchema.restriction;
// if (r.Items != null)
// {
// for (int i = 0; i < r.Items.Length; i++)
// {
// s += r.ItemsElementName[i].ToString() + "(" + r.Items[i].id + " " + r.Items[i].value + ");";
// }
// }
// }
}
//This part i modify
this.listViewAttributes.Items.Clear();
listAttributes.Reverse();
foreach (XSDAttribute attribute in listAttributes)
{
string s = "";
if (attribute.Tag.simpleType != null && attribute.Tag.simpleType.Item is XMLSchema.restriction)
{
XMLSchema.restriction r = attribute.Tag.simpleType.Item as XMLSchema.restriction;
if (r.Items != null)
{
for (int i = 0; i < r.Items.Length; i++)
{
s += r.ItemsElementName[i].ToString() + "(" + r.Items[i].id + " " + r.Items[i].value + ");";
}
}
}
// this.listViewAttributes.Items.Add(new ListViewItem(new string[] { attribute.Name, attribute.Type, attribute.Use, attribute.DefaultValue, s })).Tag = attribute;
//}
////Adrian--
this.listViewAttributes.Items.Add(new ListViewItem(new string[] { attribute.Name, attribute.Type, attribute.Use, attribute.DefaultValue, s })).Tag = attribute;
}
//Adrian--
}
}

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.8.0.0")]
[assembly: AssemblyFileVersion("0.8.0.0")]
[assembly: AssemblyVersion("0.9.0.0")]
[assembly: AssemblyFileVersion("0.9.0.1")]

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
// Runtime Version:4.0.30319.225
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -168,7 +168,7 @@ namespace XSDDiagram.Properties {
/// <summary>
/// Looks up a localized string similar to XSD Diagram is a free xml schema definition diagram viewer (http://regis.cosnier.free.fr).
///
///Version 0.8 Copyright 2006-2010 Regis Cosnier, All Rights Reserved.
///Version 0.9 Copyright © 2006-2011 Regis Cosnier, All Rights Reserved.
///
///This program is free software and may be distributed
///according to the terms of the GNU General Public License (GPL).
@ -179,7 +179,7 @@ namespace XSDDiagram.Properties {
///- GPL
///- Need of the Microsoft Framework.NET 2.0 (if not already install) or Mono
///- Display the elements, the groups and the attributes
///- Show the text/HTML documentation of element and attribute when availabl [rest of string was truncated]&quot;;.
///- Show the text/HTML documentation of element and attribute when availa [rest of string was truncated]&quot;;.
/// </summary>
internal static string ReadMe {
get {

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
// Runtime Version:4.0.30319.225
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

View File

@ -1,6 +1,6 @@
XSD Diagram is a free xml schema definition diagram viewer (http://regis.cosnier.free.fr).
Version 0.8 Copyright 2006-2010 Regis Cosnier, All Rights Reserved.
Version 0.9 Copyright © 2006-2011 Regis Cosnier, All Rights Reserved.
This program is free software and may be distributed
according to the terms of the GNU General Public License (GPL).
@ -93,6 +93,10 @@ TODO LIST:
CHANGES:
version 0.9 (2011-05-17)
- Allow to expand restriction type (Thanks to Hermann).
- Fix an unicode issue with infinity character when building xsd diagram on linux.
version 0.8 (2010-10-31)
- Add support for JPG.
- Add command line options to generate PNG, JPG or SVG image without the GUI window.
@ -151,7 +155,7 @@ version 0.1 (2006-09-14)
LICENSE:
Copyright (c) 2006-2010 Regis COSNIER, All Rights Reserved.
Copyright (c) 2006-2011 Regis COSNIER, All Rights Reserved.
This program is free software and may be distributed
according to the terms of the GNU General Public License (GPL).

View File

@ -1,5 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

View File

@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSDDiagram", "XSDDiagram.csproj", "{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSDDiagramConsole", "XSDDiagramConsole\XSDDiagramConsole.csproj", "{1D732DFD-D631-4BFB-8057-C34B9327A08F}"
@ -8,17 +8,27 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Debug|x86.ActiveCfg = Debug|x86
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Debug|x86.Build.0 = Debug|x86
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Release|Any CPU.Build.0 = Release|Any CPU
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Release|x86.ActiveCfg = Release|x86
{B212CAFE-B4C8-44CB-B82D-AA32B55D2719}.Release|x86.Build.0 = Release|x86
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Debug|x86.ActiveCfg = Debug|x86
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Debug|x86.Build.0 = Debug|x86
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Release|Any CPU.Build.0 = Release|Any CPU
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Release|x86.ActiveCfg = Release|x86
{1D732DFD-D631-4BFB-8057-C34B9327A08F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -14,7 +14,7 @@
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>http://localhost/XSDDiagram/</PublishUrl>
@ -34,6 +34,7 @@
<BootstrapperEnabled>true</BootstrapperEnabled>
<StartupObject>
</StartupObject>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -32,6 +32,26 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />

View File

@ -10,12 +10,13 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>XSDDiagramConsole</RootNamespace>
<AssemblyName>XSDDiagramConsole</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup/></configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup/></configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>