Skip to content

Commit

Permalink
update vsix
Browse files Browse the repository at this point in the history
ghost1372 committed Mar 30, 2021
1 parent 8ee1189 commit dcd7eb7
Showing 7 changed files with 61 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.VisualStudio.Shell;
using Task = System.Threading.Tasks.Task;

namespace HandyControl_VS2019
{
/// <summary>
/// This is the class that implements the package exposed by this assembly.
/// </summary>
/// <remarks>
/// <para>
/// The minimum requirement for a class to be considered a valid package for Visual Studio
/// is to implement the IVsPackage interface and register itself with the shell.
/// This package uses the helper classes defined inside the Managed Package Framework (MPF)
/// to do it: it derives from the Package class that provides the implementation of the
/// IVsPackage interface and uses the registration attributes defined in the framework to
/// register itself and its components with the shell. These attributes tell the pkgdef creation
/// utility what data to put into .pkgdef file.
/// </para>
/// <para>
/// To get loaded into VS, the package must be referred by &lt;Asset Type="Microsoft.VisualStudio.VsPackage" ...&gt; in .vsixmanifest file.
/// </para>
/// </remarks>
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[Guid(PackageGuidString)]
public sealed class HandyControl_VS2019Package : AsyncPackage
{
/// <summary>
/// HandyControl_VS2019Package GUID string.
/// </summary>
public const string PackageGuidString = "157ef242-83b5-47d0-8f2f-e21dc8308151";

#region Package Members

/// <summary>
/// Initialization of the package; this method is called right after the package is sited, so this is the place
/// where you can put all the initialization code that rely on services provided by VisualStudio.
/// </summary>
/// <param name="cancellationToken">A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down.</param>
/// <param name="progress">A provider for progress updates.</param>
/// <returns>A task representing the async work of package initialization, or an already completed task if there is none. Do not return null from this method.</returns>
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
// When initialized asynchronously, the current thread may be a background thread at this point.
// Do any initialization that requires the UI thread after switching to the UI thread.
await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
}

#endregion
}
}
Original file line number Diff line number Diff line change
@@ -10,5 +10,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("3.3.0.0")]
[assembly: AssemblyFileVersion("3.3.0.0")]
[assembly: AssemblyVersion("3.3.1.0")]
[assembly: AssemblyFileVersion("3.3.1.0")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="16adb6c8-d74c-451c-9c7e-a93ef604d0b9" Version="3.3.0.0" Language="en-US" Publisher="Mahdi Hosseini" />
<Identity Id="16adb6c8-d74c-451c-9c7e-a93ef604d0b9" Version="3.3.1.0" Language="en-US" Publisher="Mahdi Hosseini" />
<DisplayName>HandyControls</DisplayName>
<Description xml:space="preserve">Contains some simple and commonly used WPF controls based on HandyControl
This VSIX Project will help people initialize a HandyControls project.</Description>
@@ -25,7 +25,7 @@ This VSIX Project will help people initialize a HandyControls project.</Descript
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="WpfApp" d:TargetPath="|WpfApp;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="WpfCoreApp" d:TargetPath="|WpfCoreApp;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="WpfAppMVVMPrism" d:TargetPath="|WpfAppMVVMPrism;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
2 changes: 1 addition & 1 deletion Installers/VS2019/WpfApp/ProjectTemplate.csproj
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HandyControls" Version="3.3.0"/>
<PackageReference Include="HandyControls" Version="3.3.1"/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
2 changes: 1 addition & 1 deletion Installers/VS2019/WpfAppMVVMPrism/ProjectTemplate.csproj
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HandyControls" Version="3.3.0"/>
<PackageReference Include="HandyControls" Version="3.3.1"/>
<PackageReference Include="Prism.DryIoc" Version="8.0.0.1909" />
</ItemGroup>
<ItemGroup>
2 changes: 1 addition & 1 deletion Installers/VS2019/WpfCoreApp/ProjectTemplate.csproj
Original file line number Diff line number Diff line change
@@ -19,6 +19,6 @@
<DefineConstants>TRACE;Core</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HandyControls" Version="3.3.0" />
<PackageReference Include="HandyControls" Version="3.3.1" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Installers/VS2019/WpfCoreAppPrism/ProjectTemplate.csproj
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
<DefineConstants>TRACE;Core</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HandyControls" Version="3.3.0" />
<PackageReference Include="HandyControls" Version="3.3.1" />
<PackageReference Include="Prism.DryIoc" Version="8.0.0.1909" />
</ItemGroup>
</Project>

0 comments on commit dcd7eb7

Please sign in to comment.