Skip to content

Commit

Permalink
Merge pull request #17 from usysware/AzurePipeline
Browse files Browse the repository at this point in the history
Modified pipeline for non-beta builds.
  • Loading branch information
sergey-visual-studio authored Dec 6, 2020
2 parents 34244b2 + e82910f commit 30bcfa9
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 51 deletions.
22 changes: 19 additions & 3 deletions .azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net

parameters:
- name: configuration
displayName: Build Configuration
type: string
default: Release
values:
- Debug
- Release
- name: beta
displayName: Beta
type: boolean
default: false
values:
- true
- false

trigger:
batch: true
branches:
Expand All @@ -15,9 +31,9 @@ pool:
variables:
solution: 'DPackRx.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
buildConfiguration: ${{ parameters.configuration }}

name: "DPack.$(Date:yyyyMMdd).$(Build.BuildID)$(BuildBeta)"
name: "DPackRx.$(Date:yyyyMMdd).$(Build.BuildID)"
steps:
- task: NuGetToolInstaller@1

Expand All @@ -32,7 +48,7 @@ steps:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArgs: '-verbosity:minimal -p:DeployExtension=false -p:BETA=$(BuildBeta)'
msbuildArgs: '-verbosity:minimal -p:DeployExtension=false -p:BETA=${{ parameters.beta }}'

- task: VSTest@2
inputs:
Expand Down
4 changes: 1 addition & 3 deletions .azure/vsix-readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Please be aware that DPack Rx currently is and will remain for a while in **BETA** status.

DPack Rx is a free collection of solution, project and file navigation and productivity tools for Visual Studio. DPack Rx is an evolution of the [original DPack](https://marketplace.visualstudio.com/items?itemName=SergeyM.DPack-16348), built as an OS project. It's currently in _BETA_.
DPack Rx is a free collection of solution, project and file navigation and productivity tools for Visual Studio. DPack Rx is an evolution of the [original DPack](https://marketplace.visualstudio.com/items?itemName=SergeyM.DPack-16348), built as an OS project.

DPack Rx includes various navigation tools (aka browsers) that allow the developer to quickly find solution files, types, particular type code members, methods or properties for instance. DPack Rx also includes greatly enhanced numbered bookmarks feature, and much more.

Expand Down
8 changes: 3 additions & 5 deletions DPackRx.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Reflection;

[assembly: AssemblyTitle("USysWare DPack Rx Tests")]
[assembly: AssemblyCompany("USysWare, Inc.")]
[assembly: AssemblyCopyright("Copyright © 2004-2019 USysWare, Inc.")]
[assembly: AssemblyTrademark("USysWare, Inc.")]
[assembly: AssemblyTitle("DPack Rx Tests")]
[assembly: AssemblyCopyright("Copyright © 2004-2020 Sergey Mishkovskiy")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyProduct("DPack Rx")]
[assembly: AssemblyDescription("USysWare DPack Rx Tests")]
[assembly: AssemblyDescription("DPack Rx Tests")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Expand Down
2 changes: 1 addition & 1 deletion DPackRx/DPackRx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants Condition=" '$(BETA)' != '' ">$(DefineConstants);BETA</DefineConstants>
<DefineConstants Condition=" '$(BETA)' == 'true' ">$(DefineConstants);BETA</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>rules.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion DPackRx/Features/CodeBrowser/CodeBrowserViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private void ApplyMembers()
filter = "methods";
else if (this.Filter.HasFlag(CodeModelFilterFlags.Properties))
filter = "properties";
this.Title = $"USysWare Code Browser {(string.IsNullOrEmpty(filter) ? string.Empty : $"- {filter} ")}- {Path.GetFileName(this.FileName)}";
this.Title = $"Code Browser {(string.IsNullOrEmpty(filter) ? string.Empty : $"- {filter} ")}- {Path.GetFileName(this.FileName)}";

_sourceMembers.Clear();
_sourceMembers.AddRange(members); // causes filter to be evaluated
Expand Down
2 changes: 1 addition & 1 deletion DPackRx/Features/FileBrowser/FileBrowserWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
d:DataContext="{d:DesignInstance Type=local:FileBrowserViewModel, IsDesignTimeCreatable=True}"
Icon="Images/FileBrowser.ico"
Height="400" Width="600" MinHeight="200" MinWidth="400"
Title="USysWare File Browser" WindowStartupLocation="CenterOwner" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
Title="File Browser" WindowStartupLocation="CenterOwner" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
behaviors:WindowCloseOnEsc.Enabled="True"
behaviors:WindowClose.DialogResult="{Binding CloseWindow}">

Expand Down
5 changes: 2 additions & 3 deletions DPackRx/Package/IDs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ public static class IDs
{
public const int PRODUCT = 101;
public const int ABOUT = 102;
public const int COMPANY = 103;
public const int URL = 104;
public const int EMAIL = 105;
public const int URL = 103;
public const int EMAIL = 104;
}
}
5 changes: 0 additions & 5 deletions DPackRx/Package/IPackageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ public interface IPackageService : IServiceProvider
/// </summary>
string ProductName { get; }

/// <summary>
/// Product company name.
/// </summary>
string CompanyName { get; }

/// <summary>
/// Product version.
/// </summary>
Expand Down
8 changes: 0 additions & 8 deletions DPackRx/Package/PackageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,6 @@ public string ProductName
get { return GetResourceString(IDs.PRODUCT); }
}

/// <summary>
/// Product company name.
/// </summary>
public string CompanyName
{
get { return GetResourceString(IDs.COMPANY); }
}

/// <summary>
/// Product version.
/// </summary>
Expand Down
8 changes: 3 additions & 5 deletions DPackRx/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("USysWare DPack Rx")]
[assembly: AssemblyCompany("USysWare, Inc.")]
[assembly: AssemblyCopyright("Copyright © 2004-2020 USysWare, Inc.")]
[assembly: AssemblyTrademark("USysWare, Inc.")]
[assembly: AssemblyTitle("DPack Rx")]
[assembly: AssemblyCopyright("Copyright © 2004-2020 Sergey Mishkovskiy")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyProduct("DPack Rx")]
[assembly: AssemblyDescription("USysWare DPack Rx for Visual Studio")]
[assembly: AssemblyDescription("DPack Rx for Visual Studio")]
[assembly: ComVisible(true)]

[assembly: InternalsVisibleTo("DPackRx.Tests")]
Expand Down
10 changes: 3 additions & 7 deletions DPackRx/Resources/VSPackage.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,15 @@
</data>
<data name="102" xml:space="preserve">
<value>DPack Rx for Visual Studio
Copyright © 2004-2020 USysWare, Inc.</value>
Copyright © 2004-2020 Sergey Mishkovskiy</value>
<comment>Help|About</comment>
</data>
<data name="103" xml:space="preserve">
<value>USysWare</value>
<comment>Short company name</comment>
</data>
<data name="104" xml:space="preserve">
<value>https://github.com/usysware/dpack</value>
<comment>Project URL</comment>
</data>
<data name="105" xml:space="preserve">
<value>usysware@outlook.com</value>
<data name="104" xml:space="preserve">
<value>sergey-visual-studio@outlook.com</value>
<comment>Project email</comment>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
Expand Down
13 changes: 5 additions & 8 deletions DPackRx/Services/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,14 @@ private void Open()
if (_file != null)
return;

var attrib = (AssemblyCompanyAttribute)Attribute.GetCustomAttribute(
this.GetType().Assembly, typeof(AssemblyCompanyAttribute), false);
var attribs = attrib.Company.Split(' ');
var companyName = attribs[0];
if (companyName.EndsWith(",", StringComparison.OrdinalIgnoreCase))
companyName = companyName.Substring(0, companyName.Length - 1);
var attrib = (AssemblyProductAttribute)Attribute.GetCustomAttribute(
this.GetType().Assembly, typeof(AssemblyProductAttribute), false);
var product = attrib.Product;

var logFullName = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
companyName,
$"DPack for VS {_packageService.VSKnownVersion}",
product,
$"VS {_packageService.VSKnownVersion}",
this.GetType().Assembly.GetName().Name + ".log");

var dirName = Path.GetDirectoryName(logFullName);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Driving principal behind DPack design is fire-and-forget user experience with mi

Thanks and enjoy.

Sergey @ USysWare
Sergey Mishkovskiy

### Donate

Expand Down

0 comments on commit 30bcfa9

Please sign in to comment.