Skip to content

Commit

Permalink
Remove unnecessary dependences. - Refactoring:
Browse files Browse the repository at this point in the history
- added nuspec to MAML.HelpTopics.Content
- changed namespace for MAML.HelpTopics.Content
- fixed warning
Issue #: 4857
  • Loading branch information
mpostol committed Aug 15, 2016
1 parent 20c4c53 commit 9cbff9b
Show file tree
Hide file tree
Showing 26 changed files with 252 additions and 69 deletions.
33 changes: 23 additions & 10 deletions MAML/CAS.MAML.sln → CAS.MAML.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.Scripts", "..\Scripts\MAML.Scripts.csproj", "{E1FC0810-38EB-4EFF-A015-BEAF031DD987}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.Scripts", "Scripts\MAML.Scripts.csproj", "{E1FC0810-38EB-4EFF-A015-BEAF031DD987}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Content", "MAML.HelpTopics.Content\MAML.HelpTopics.Content.csproj", "{8D532F2D-3F40-462A-917F-F7BFEC8B0ED0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Content", "MAML\MAML.HelpTopics.Content\MAML.HelpTopics.Content.csproj", "{8D532F2D-3F40-462A-917F-F7BFEC8B0ED0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.SiteMap.Content", "MAML.SiteMap.Content\MAML.SiteMap.Content.csproj", "{57DA813F-65E2-4BD8-9603-AC30C1F24671}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.SiteMap.Content", "MAML\MAML.SiteMap.Content\MAML.SiteMap.Content.csproj", "{57DA813F-65E2-4BD8-9603-AC30C1F24671}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Plugin", "MAML.HelpTopics.Plugin\MAML.HelpTopics.Plugin.csproj", "{8028D656-0229-46A7-9EDA-C10CDEBDE7D8}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Plugin", "MAML\MAML.HelpTopics.Plugin\MAML.HelpTopics.Plugin.csproj", "{8028D656-0229-46A7-9EDA-C10CDEBDE7D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant", "MAML.HelpAssistant\MAML.HelpAssistant.csproj", "{F1314E3F-65F6-4024-A31F-ACD8CA75550E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant", "MAML\MAML.HelpAssistant\MAML.HelpAssistant.csproj", "{F1314E3F-65F6-4024-A31F-ACD8CA75550E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Command", "MAML.HelpTopics.Command\MAML.HelpTopics.Command.csproj", "{7E80AF18-FC7C-4067-AD9C-3034914B2CC5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpTopics.Command", "MAML\MAML.HelpTopics.Command\MAML.HelpTopics.Command.csproj", "{7E80AF18-FC7C-4067-AD9C-3034914B2CC5}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "HelpAssistantSetup", "MAML.HelpAssistant.Setup\MAML.HelpAssistant.Setup.vdproj", "{87636843-DF0B-4C41-97B6-DE90EA706AAA}"
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "HelpAssistantSetup", "MAML\MAML.HelpAssistant.Setup\MAML.HelpAssistant.Setup.vdproj", "{87636843-DF0B-4C41-97B6-DE90EA706AAA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant.Guii", "MAML.HelpAssistant.Gui\MAML.HelpAssistant.Guii.csproj", "{2B5C241D-FFAE-4204-BBAC-2C92C6430675}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant.Guii", "MAML\MAML.HelpAssistant.Gui\MAML.HelpAssistant.Guii.csproj", "{2B5C241D-FFAE-4204-BBAC-2C92C6430675}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant.Documentation", "MAML.HelpAssistant.Documentation\MAML.HelpAssistant.Documentation.csproj", "{E7B51B22-2E47-4574-9EEE-CC3F1BE4567D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAML.HelpAssistant.Documentation", "MAML\MAML.HelpAssistant.Documentation\MAML.HelpAssistant.Documentation.csproj", "{E7B51B22-2E47-4574-9EEE-CC3F1BE4567D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{27A2E45D-F914-4F03-A148-9773045D9727}"
ProjectSection(SolutionItems) = preProject
ReadMeFirst.txt = ReadMeFirst.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "T4Definitions", "PR39-CommonResources\T4Definitions\T4Definitions.csproj", "{D506423B-BA21-49E6-8C3B-88A771CA444E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -63,8 +69,15 @@ Global
{E7B51B22-2E47-4574-9EEE-CC3F1BE4567D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7B51B22-2E47-4574-9EEE-CC3F1BE4567D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7B51B22-2E47-4574-9EEE-CC3F1BE4567D}.Release|Any CPU.Build.0 = Release|Any CPU
{D506423B-BA21-49E6-8C3B-88A771CA444E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D506423B-BA21-49E6-8C3B-88A771CA444E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D506423B-BA21-49E6-8C3B-88A771CA444E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D506423B-BA21-49E6-8C3B-88A771CA444E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D506423B-BA21-49E6-8C3B-88A771CA444E} = {27A2E45D-F914-4F03-A148-9773045D9727}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions CAS.MAML.sln.GhostDoc.user.dic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deserializes
2 changes: 1 addition & 1 deletion MAML/MAML.HelpAssistant.Gui/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0" )]
[assembly: GuidAttribute( "3733714A-4D67-4192-8CD3-D710D33C63FD" )]
8 changes: 4 additions & 4 deletions MAML/MAML.HelpAssistant.Gui/WindowHelpAssistantGui.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
//=============================================================================


using HelpAssistant;
using HelpAssistant.HelpElementTypes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using HelpAssistant;
using HelpAssistant.HelpElementTypes;

namespace HelpAssistantGui
{
Expand All @@ -40,7 +40,7 @@ public partial class HelpAssistantWindow: Window

#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="Window1"/> class.
/// Initializes a new instance of the <see cref="HelpAssistantWindow"/> class.
/// </summary>
public HelpAssistantWindow()
{
Expand Down Expand Up @@ -441,7 +441,7 @@ private void Refresh_Click( object sender, RoutedEventArgs e )
/// Handles the SelectedItemChanged event of the treeViewTree control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.RoutedPropertyChangedEventArgs&lt;System.Object&gt;"/> instance containing the event data.</param>
/// <param name="e">The <see cref="RoutedPropertyChangedEventArgs{Object}"/> instance containing the event data.</param>
private void treeViewTree_SelectedItemChanged( object sender, RoutedPropertyChangedEventArgs<object> e )
{
if ( treeViewTree.SelectedItem == null )
Expand Down
3 changes: 3 additions & 0 deletions MAML/MAML.HelpAssistant/HelpContentCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

namespace HelpAssistant
{
/// <summary>
/// Class HelpContentCreator.
/// </summary>
public class HelpContentCreator
{
#region constructors
Expand Down
21 changes: 21 additions & 0 deletions MAML/MAML.HelpAssistant/HelpEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,35 @@
//=============================================================================
namespace HelpAssistant
{
/// <summary>
/// Class HelpEntity.
/// </summary>
public abstract class HelpEntity
{
/// <summary>
/// Enum elementType
/// </summary>
public enum elementType
{
/// <summary>
/// The image
/// </summary>
Image,
/// <summary>
/// The token
/// </summary>
Token,
/// <summary>
/// The topic
/// </summary>
Topic,
/// <summary>
/// The code entity
/// </summary>
CodeEntity,
/// <summary>
/// The external link
/// </summary>
ExternalLink,
}
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions MAML/MAML.HelpAssistant/IOHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

namespace HelpAssistant
{
/// <summary>
/// Class IOHelpers.
/// </summary>
public class IOHelpers
{
private static Regex isGuid = new Regex( @"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", RegexOptions.Compiled );
Expand Down
2 changes: 1 addition & 1 deletion MAML/MAML.HelpAssistant/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0" )]
4 changes: 4 additions & 0 deletions MAML/MAML.HelpAssistant/Types/HelpElementTypes/CodeEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

namespace HelpAssistant.HelpElementTypes
{
/// <summary>
/// Class CodeEntity.
/// </summary>
/// <seealso cref="HelpAssistant.HelpEntity" />
public class CodeEntity: HelpEntity
{
private string codeEntityName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

namespace HelpAssistant.HelpElementTypes
{
/// <summary>
/// Class ExternalLink.
/// </summary>
/// <seealso cref="HelpAssistant.HelpEntity" />
public class ExternalLink: HelpEntity
{
private string linkText;
Expand Down
4 changes: 4 additions & 0 deletions MAML/MAML.HelpAssistant/Types/HelpElementTypes/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

namespace HelpAssistant.HelpElementTypes
{
/// <summary>
/// Class Image.
/// </summary>
/// <seealso cref="HelpAssistant.HelpEntity" />
public class Image: HelpEntity
{
private string imageName;
Expand Down
4 changes: 4 additions & 0 deletions MAML/MAML.HelpAssistant/Types/HelpElementTypes/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

namespace HelpAssistant.HelpElementTypes
{
/// <summary>
/// Class Token.
/// </summary>
/// <seealso cref="HelpAssistant.HelpEntity" />
public class Token: HelpEntity
{
private string tokenId;
Expand Down
4 changes: 4 additions & 0 deletions MAML/MAML.HelpAssistant/Types/HelpElementTypes/Topic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

namespace HelpAssistant.HelpElementTypes
{
/// <summary>
/// Class Topic.
/// </summary>
/// <seealso cref="HelpAssistant.HelpEntity" />
public class Topic: HelpEntity
{
private Guid topicsGuid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ public string Value
}
}

/// <remarks/>
// /// <remarks/>
//[System.CodeDom.Compiler.GeneratedCodeAttribute( "xsd", "2.0.50727.3038" )]
//[System.SerializableAttribute()]
//[System.Diagnostics.DebuggerStepThroughAttribute()]
Expand All @@ -2327,7 +2327,7 @@ public string Value
// }
//}

/// <remarks/>
// /// <remarks/>
//[System.CodeDom.Compiler.GeneratedCodeAttribute( "xsd", "2.0.50727.3038" )]
//[System.SerializableAttribute()]
//[System.Diagnostics.DebuggerStepThroughAttribute()]
Expand Down Expand Up @@ -2454,7 +2454,7 @@ public enum ItemsChoiceType
/// <remarks/>
NamingMethod,

/// <remarks/>
// /// <remarks/>
// PlugInConfigurations,

/// <remarks/>
Expand Down
2 changes: 1 addition & 1 deletion MAML/MAML.HelpTopics.Command/HelpTopicsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
using System.IO;
using HelpAssistant;
using HelpAssistant.HelpElementTypes;
using TopicsLibrary;
using SiteMapLibrary;
using CAS.MAML.HelpTopics.Content;

namespace HelpTopicsCommand
{
Expand Down
2 changes: 1 addition & 1 deletion MAML/MAML.HelpTopics.Command/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0.*" )]
[assembly: AssemblyFileVersion( "1.0.0" )]
2 changes: 1 addition & 1 deletion MAML/MAML.HelpTopics.Content/HelpContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// This source code was auto-generated by xsd, Version=2.0.50727.42.
//

namespace TopicsLibrary
namespace CAS.MAML.HelpTopics.Content
{
/// <uwagi/>
[System.CodeDom.Compiler.GeneratedCodeAttribute( "xsd", "2.0.50727.42" )]
Expand Down
36 changes: 32 additions & 4 deletions MAML/MAML.HelpTopics.Content/MAML.HelpTopics.Content.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -8,7 +8,7 @@
<ProjectGuid>{8D532F2D-3F40-462A-917F-F7BFEC8B0ED0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CAS.HelpTopicsLibrary</RootNamespace>
<RootNamespace>CAS.MAML.HelpTopics.Content</RootNamespace>
<AssemblyName>CAS.MAML.HelpTopics.Content</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand All @@ -19,6 +19,7 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -28,14 +29,18 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DocumentationFile>bin\Debug\CAS.MAML.HelpTopics.Content.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DocumentationFile>bin\Release\CAS.MAML.HelpTopics.Content.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand All @@ -55,13 +60,36 @@
<Compile Include="HelpContent.cs">
<DependentUpon>HelpContent.xsd</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>AssemblyInfo.tt</DependentUpon>
</Compile>
<Compile Include="Topics.helper.cs" />
</ItemGroup>
<ItemGroup>
<None Include="MAML.HelpTopics.Content.nuspec">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>MAML.HelpTopics.Content.tt</DependentUpon>
</None>
<None Include="cas.snk" />
<None Include="HelpContent.xsd" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="MAML.HelpTopics.Content.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>MAML.HelpTopics.Content.nuspec</LastGenOutput>
</Content>
<Content Include="Properties\AssemblyInfo.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AssemblyInfo.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
30 changes: 30 additions & 0 deletions MAML/MAML.HelpTopics.Content/MAML.HelpTopics.Content.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>CAS.MAML.HelpTopics.Content</id>
<version>1.0.3</version>
<title>Library containing schema definition of the all topics xml file.</title>
<authors>CAS</authors>
<owners>commsvr.com</owners>
<projectUrl>svn://svnserver.hq.cas.com.pl/VS/trunk/CAS.MAML/MAML/MAML.HelpTopics.Content</projectUrl>
<licenseUrl>http://www.commsvr.com/DownloadCenter/ProductSoftware/LicenseAgreement.aspx</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<developmentDependency>false</developmentDependency>
<description>
Library containing schema definition of the all topics xml file.
</description>
<summary>
Library containing schema definition of the all topics xml file.
</summary>
<releaseNotes>
Released for ASMD
</releaseNotes>
<copyright>Copyright (c) 2000-2016 CAS LODZ POLAND</copyright>
<tags>OPCUA, CommServer, ASMD, Address Space Model Designer.</tags>
</metadata>
<files>
<file src="bin\Release\CAS.MAML.HelpTopics.Content.dll" target="lib\net35\CAS.MAML.HelpTopics.Content.dll" />
<file src="bin\Release\CAS.MAML.HelpTopics.Content.XML" target="lib\net35\CAS.MAML.HelpTopics.Content.XML" />
</files>
</package>

Loading

0 comments on commit 9cbff9b

Please sign in to comment.