Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit e8295cf

Browse files
committed
..
1 parent 8a42f36 commit e8295cf

File tree

4 files changed

+53
-8
lines changed

4 files changed

+53
-8
lines changed

Analogy.LogViewer.VisualStudioActivityLog/Analogy.LogViewer.VisualStudioActivityLog.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2424
<PackageIcon>AnalogyVS.png</PackageIcon>
2525
<Description>Visual studio Activity log parser for Analogy Log Viewer</Description>
26-
<Version>1.3.1</Version>
26+
<Version>1.3.3</Version>
27+
<Nullable>enable</Nullable>
28+
<LangVersion>8.0</LangVersion>
2729
<PackageReleaseNotes>Initial version</PackageReleaseNotes>
2830
</PropertyGroup>
2931
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -34,7 +36,8 @@
3436
<DebugType>pdbonly</DebugType>
3537
</PropertyGroup>
3638
<ItemGroup>
37-
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.7.5" />
39+
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.7.9.5" />
40+
<PackageReference Include="Analogy.LogViewer.Template" Version="1.6.10" />
3841
<PackageReference Include="Microsoft.Build.Tasks.Git" Version="1.0.0">
3942
<PrivateAssets>all</PrivateAssets>
4043
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.Linq;
5+
using System.Reflection;
6+
using System.Runtime.Versioning;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using Analogy.LogViewer.Template;
10+
11+
namespace Analogy.LogViewer.VisualStudioActivityLog.IAnalogy
12+
{
13+
public class DownloadInformation : Analogy.LogViewer.Template.AnalogyDownloadInformation
14+
{
15+
protected override string RepositoryURL { get; set; } = "https://api.github.com/repos/Analogy-LogViewer/Analogy.LogViewer.Affirmations";
16+
public override TargetFrameworkAttribute CurrentFrameworkAttribute { get; set; } = (TargetFrameworkAttribute)Assembly.GetExecutingAssembly().GetCustomAttribute(typeof(TargetFrameworkAttribute));
17+
18+
public override Guid FactoryId { get; set; } = VSActivityLogFactory.Id;
19+
public override string Name { get; set; } = "VisualStudio Log Parser Data Provider";
20+
21+
private string? _installedVersionNumber;
22+
public override string InstalledVersionNumber
23+
{
24+
get
25+
{
26+
if (_installedVersionNumber != null)
27+
{
28+
return _installedVersionNumber;
29+
}
30+
Assembly assembly = Assembly.GetExecutingAssembly();
31+
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
32+
_installedVersionNumber = fvi.FileVersion;
33+
return _installedVersionNumber;
34+
}
35+
}
36+
}
37+
}

Analogy.LogViewer.VisualStudioActivityLog/IAnalogy/VSActivityLogFactory.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ namespace Analogy.LogViewer.VisualStudioActivityLog.IAnalogy
1010
{
1111
public class VSActivityLogFactory : IAnalogyFactory
1212
{
13-
internal static Guid factory = new Guid("a437ad53-0ecc-49a7-9fc3-b2f60ad007e2");
14-
public Guid FactoryId { get; set; } = factory;
13+
internal static Guid Id = new Guid("a437ad53-0ecc-49a7-9fc3-b2f60ad007e2");
14+
public void RegisterNotificationCallback(INotificationReporter notificationReporter)
15+
{
16+
17+
}
18+
19+
public Guid FactoryId { get; set; } = Id;
1520
public string Title { get; set; } = "VS Activity Log Parser";
1621
public Image SmallImage { get; set; } = Resources.AnalogyVS16x16;
1722
public Image LargeImage { get; set; } = Resources.AnalogyVS32x32;
@@ -22,7 +27,7 @@ public class VSActivityLogFactory : IAnalogyFactory
2227

2328
public class AnalogyXMLDataProviderFactory : IAnalogyDataProvidersFactory
2429
{
25-
public Guid FactoryId { get; set; } = VSActivityLogFactory.factory;
30+
public Guid FactoryId { get; set; } = VSActivityLogFactory.Id;
2631
public string Title { get; set; } = "VS Activity Log Data Provider";
2732
public IEnumerable<IAnalogyDataProvider> DataProviders { get; } = new List<IAnalogyDataProvider>()
2833
{
@@ -32,7 +37,7 @@ public class AnalogyXMLDataProviderFactory : IAnalogyDataProvidersFactory
3237

3338
public class VSActivityLogCustomActionFactory : IAnalogyCustomActionsFactory
3439
{
35-
public Guid FactoryId { get; set; } = VSActivityLogFactory.factory;
40+
public Guid FactoryId { get; set; } = VSActivityLogFactory.Id;
3641
public string Title { get; set; } = "VS Activity Log tools";
3742
public IEnumerable<IAnalogyCustomAction> Actions { get; } = new List<IAnalogyCustomAction>(0);
3843
}

Analogy.LogViewer.VisualStudioActivityLog/IAnalogy/VSComponentImages.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ namespace Analogy.LogViewer.VisualStudioActivityLog.IAnalogy
99
//{
1010
// public Image GetLargeImage(Guid analogyComponentId)
1111
// {
12-
// if (analogyComponentId == VSActivityLogFactory.factory)
12+
// if (analogyComponentId == VSActivityLogFactory.Id)
1313
// return Resources.AnalogyVS32x32;
1414
// return null;
1515
// }
1616

1717
// public Image GetSmallImage(Guid analogyComponentId)
1818
// {
19-
// if (analogyComponentId == VSActivityLogFactory.factory)
19+
// if (analogyComponentId == VSActivityLogFactory.Id)
2020
// return Resources.VS16x16;
2121
// return null;
2222
// }

0 commit comments

Comments
 (0)