-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.7.34018.315 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernUwpTemplateVsix", "ModernUwpTemplateVsix\ModernUwpTemplateVsix.csproj", "{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|arm64 = Debug|arm64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|arm64 = Release|arm64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|arm64.ActiveCfg = Debug|arm64 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|arm64.Build.0 = Debug|arm64 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|x86.ActiveCfg = Debug|x86 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|x86.Build.0 = Debug|x86 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|arm64.ActiveCfg = Release|arm64 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|arm64.Build.0 = Release|arm64 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|x86.ActiveCfg = Release|x86 | ||
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|x86.Build.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {3E2A0A1D-AD8E-40DC-A675-CF4D95B681C9} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Daniel | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Binary file not shown.
83 changes: 83 additions & 0 deletions
83
vsixSource/ModernUwpTemplateVsix/ModernUwpTemplateVsix.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
<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> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<ProjectGuid>{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>ModernUwpTemplateVsix</RootNamespace> | ||
<AssemblyName>ModernUwpTemplateVsix</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<GeneratePkgDefFile>true</GeneratePkgDefFile> | ||
<UseCodebase>true</UseCodebase> | ||
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer> | ||
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer> | ||
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment> | ||
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory> | ||
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory> | ||
<StartAction>Program</StartAction> | ||
<StartProgram Condition="'$(DevEnvDir)' != ''">$(DevEnvDir)devenv.exe</StartProgram> | ||
<StartArguments>/rootsuffix Exp</StartArguments> | ||
</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> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="ModernUwpTemplateVsixPackage.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Modern UWP Project.zip"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<Content Include="License.txt"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<IncludeInVSIX>true</IncludeInVSIX> | ||
</Content> | ||
<Content Include="ProjectTemplates\Modern UWP Project.zip"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<IncludeInVSIX>true</IncludeInVSIX> | ||
</Content> | ||
<None Include="source.extension.vsixmanifest"> | ||
<SubType>Designer</SubType> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.32112.339" ExcludeAssets="runtime" /> | ||
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.7.2190" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
<!-- 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> |
53 changes: 53 additions & 0 deletions
53
vsixSource/ModernUwpTemplateVsix/ModernUwpTemplateVsixPackage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Microsoft.VisualStudio.Shell; | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Threading; | ||
using Task = System.Threading.Tasks.Task; | ||
|
||
namespace ModernUwpTemplateVsix | ||
{ | ||
/// <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 <Asset Type="Microsoft.VisualStudio.VsPackage" ...> in .vsixmanifest file. | ||
/// </para> | ||
/// </remarks> | ||
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] | ||
[Guid(ModernUwpTemplateVsixPackage.PackageGuidString)] | ||
public sealed class ModernUwpTemplateVsixPackage : AsyncPackage | ||
{ | ||
/// <summary> | ||
/// ModernUwpTemplateVsixPackage GUID string. | ||
/// </summary> | ||
public const string PackageGuidString = "659e36b5-6038-4d67-90f3-1db862e1c3f0"; | ||
|
||
#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 | ||
} | ||
} |
Binary file added
BIN
+27 KB
vsixSource/ModernUwpTemplateVsix/ProjectTemplates/Modern UWP Project.zip
Binary file not shown.
33 changes: 33 additions & 0 deletions
33
vsixSource/ModernUwpTemplateVsix/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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("ModernUwpTemplateVsix")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("ModernUwpTemplateVsix")] | ||
[assembly: AssemblyCopyright("")] | ||
[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)] | ||
|
||
// 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.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
25 changes: 25 additions & 0 deletions
25
vsixSource/ModernUwpTemplateVsix/source.extension.vsixmanifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<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="jeniusapps.modernuwptemplate" Version="0.1" Language="en-US" Publisher="Daniel Paulino" /> | ||
<DisplayName>Modern UWP Project Template</DisplayName> | ||
<Description xml:space="preserve">Install a project template that is configured with the latest advancements to bootstrap your modern UWP app development.</Description> | ||
<License>License.txt</License> | ||
<Preview>true</Preview> | ||
</Metadata> | ||
<Installation> | ||
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)"> | ||
<ProductArchitecture>amd64</ProductArchitecture> | ||
</InstallationTarget> | ||
</Installation> | ||
<Dependencies> | ||
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" /> | ||
</Dependencies> | ||
<Prerequisites> | ||
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.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.ProjectTemplate" d:Source="File" Path="ProjectTemplates" d:TargetPath="ProjectTemplates\Modern UWP Project.zip" /> | ||
</Assets> | ||
</PackageManifest> |