- Moved SemanticVersion type into isolated assembly for release as a standalone component (Single responsibility principle)
This commit is contained in:
Родитель
cc42b0b6ae
Коммит
4e96df1821
|
@ -123,7 +123,6 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RepositoryPackage.cs" />
|
||||
<Compile Include="RepositoryUpdateEventArgs.cs" />
|
||||
<Compile Include="SemanticVersion.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
|
@ -132,6 +131,12 @@
|
|||
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
|
||||
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SemVer.NET\SemVer.NET.csproj">
|
||||
<Project>{1fae553d-f158-4b0c-a935-09332ece2a51}</Project>
|
||||
<Name>SemVer.NET</Name>
|
||||
</ProjectReference>
|
||||
</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.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using CMSIS.Pack.PackDescription;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
|
@ -49,7 +50,6 @@ namespace CMSIS.Pack.PackDescription
|
|||
[XmlIgnore]
|
||||
public SemanticVersion ApiVersion { get; set; }
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "condition", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Condition { get; set; }
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.IO;
|
|||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using CMSIS.Pack.PackDescription;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using CMSIS.Pack.PackDescription;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
{
|
||||
|
|
|
@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMSIS.Pack", "CMSIS.Pack\CM
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{E4D675B0-5DBD-45BE-A4A0-B2C0F1BF42E3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemVer.NET", "SemVer.NET\SemVer.NET.csproj", "{1FAE553D-F158-4B0C-A935-09332ECE2A51}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -27,6 +29,10 @@ Global
|
|||
{E4D675B0-5DBD-45BE-A4A0-B2C0F1BF42E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E4D675B0-5DBD-45BE-A4A0-B2C0F1BF42E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E4D675B0-5DBD-45BE-A4A0-B2C0F1BF42E3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1FAE553D-F158-4B0C-A935-09332ECE2A51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1FAE553D-F158-4B0C-A935-09332ECE2A51}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1FAE553D-F158-4B0C-A935-09332ECE2A51}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1FAE553D-F158-4B0C-A935-09332ECE2A51}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -100,6 +100,10 @@
|
|||
<Project>{145d7231-c105-41be-b646-5d400097c744}</Project>
|
||||
<Name>CMSIS.Pack</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SemVer.NET\SemVer.NET.csproj">
|
||||
<Project>{1fae553d-f158-4b0c-a935-09332ece2a51}</Project>
|
||||
<Name>SemVer.NET</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Refresh.png" />
|
||||
|
|
|
@ -3,6 +3,7 @@ using GalaSoft.MvvmLight;
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using CMSIS.Pack.PackDescription;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace NetmfPackInstaller
|
||||
{
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SemVer.NET")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SemVer.NET")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("1fae553d-f158-4b0c-a935-09332ece2a51")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{1FAE553D-F158-4B0C-A935-09332ECE2A51}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SemVer.NET</RootNamespace>
|
||||
<AssemblyName>SemVer.NET</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Sprache, Version=2.0.0.0, Culture=neutral, PublicKeyToken=23dafc55df9bd3a3, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Sprache.JetBrains.2.0.0.44\lib\portable-net4+netcore45+win8+wp8+sl5+MonoAndroid1+MonoTouch1\Sprache.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SemanticVersion.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</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.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using Sprache;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
namespace SemVer.NET
|
||||
{
|
||||
[Flags]
|
||||
public enum SemanticVersionOptions
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Sprache.JetBrains" version="2.0.0.44" targetFramework="net45" />
|
||||
</packages>
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using CMSIS.Pack;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace UnitTests
|
||||
{
|
||||
|
|
|
@ -63,9 +63,9 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CMSIS.Pack\CMSIS.Pack.csproj">
|
||||
<Project>{145d7231-c105-41be-b646-5d400097c744}</Project>
|
||||
<Name>CMSIS.Pack</Name>
|
||||
<ProjectReference Include="..\SemVer.NET\SemVer.NET.csproj">
|
||||
<Project>{1fae553d-f158-4b0c-a935-09332ece2a51}</Project>
|
||||
<Name>SemVer.NET</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
|
|
Загрузка…
Ссылка в новой задаче