Skip to content

Commit bf64ded

Browse files
committed
Initial commit of vsix source
1 parent 8f966e2 commit bf64ded

File tree

8 files changed

+252
-0
lines changed

8 files changed

+252
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.7.34018.315
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernUwpTemplateVsix", "ModernUwpTemplateVsix\ModernUwpTemplateVsix.csproj", "{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|arm64 = Debug|arm64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|arm64 = Release|arm64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|arm64.ActiveCfg = Debug|arm64
21+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|arm64.Build.0 = Debug|arm64
22+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|x86.ActiveCfg = Debug|x86
23+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Debug|x86.Build.0 = Debug|x86
24+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|arm64.ActiveCfg = Release|arm64
27+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|arm64.Build.0 = Release|arm64
28+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|x86.ActiveCfg = Release|x86
29+
{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}.Release|x86.Build.0 = Release|x86
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {3E2A0A1D-AD8E-40DC-A675-CF4D95B681C9}
36+
EndGlobalSection
37+
EndGlobal
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Daniel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
27 KB
Binary file not shown.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<PropertyGroup>
9+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11+
<SchemaVersion>2.0</SchemaVersion>
12+
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
13+
<ProjectGuid>{E4F6CBE5-10A9-44F4-886E-F8C6ADDD28BC}</ProjectGuid>
14+
<OutputType>Library</OutputType>
15+
<AppDesignerFolder>Properties</AppDesignerFolder>
16+
<RootNamespace>ModernUwpTemplateVsix</RootNamespace>
17+
<AssemblyName>ModernUwpTemplateVsix</AssemblyName>
18+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
19+
<GeneratePkgDefFile>true</GeneratePkgDefFile>
20+
<UseCodebase>true</UseCodebase>
21+
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
22+
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
23+
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
24+
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
25+
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory>
26+
<StartAction>Program</StartAction>
27+
<StartProgram Condition="'$(DevEnvDir)' != ''">$(DevEnvDir)devenv.exe</StartProgram>
28+
<StartArguments>/rootsuffix Exp</StartArguments>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31+
<DebugSymbols>true</DebugSymbols>
32+
<DebugType>full</DebugType>
33+
<Optimize>false</Optimize>
34+
<OutputPath>bin\Debug\</OutputPath>
35+
<DefineConstants>DEBUG;TRACE</DefineConstants>
36+
<ErrorReport>prompt</ErrorReport>
37+
<WarningLevel>4</WarningLevel>
38+
</PropertyGroup>
39+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
40+
<DebugType>pdbonly</DebugType>
41+
<Optimize>true</Optimize>
42+
<OutputPath>bin\Release\</OutputPath>
43+
<DefineConstants>TRACE</DefineConstants>
44+
<ErrorReport>prompt</ErrorReport>
45+
<WarningLevel>4</WarningLevel>
46+
</PropertyGroup>
47+
<ItemGroup>
48+
<Compile Include="Properties\AssemblyInfo.cs" />
49+
<Compile Include="ModernUwpTemplateVsixPackage.cs" />
50+
</ItemGroup>
51+
<ItemGroup>
52+
<None Include="Modern UWP Project.zip">
53+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
54+
</None>
55+
<Content Include="License.txt">
56+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
57+
<IncludeInVSIX>true</IncludeInVSIX>
58+
</Content>
59+
<Content Include="ProjectTemplates\Modern UWP Project.zip">
60+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
61+
<IncludeInVSIX>true</IncludeInVSIX>
62+
</Content>
63+
<None Include="source.extension.vsixmanifest">
64+
<SubType>Designer</SubType>
65+
</None>
66+
</ItemGroup>
67+
<ItemGroup>
68+
<Reference Include="System" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.32112.339" ExcludeAssets="runtime" />
72+
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.7.2190" />
73+
</ItemGroup>
74+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
75+
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
76+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
77+
Other similar extension points exist, see Microsoft.Common.targets.
78+
<Target Name="BeforeBuild">
79+
</Target>
80+
<Target Name="AfterBuild">
81+
</Target>
82+
-->
83+
</Project>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
using Microsoft.VisualStudio.Shell;
2+
using System;
3+
using System.Runtime.InteropServices;
4+
using System.Threading;
5+
using Task = System.Threading.Tasks.Task;
6+
7+
namespace ModernUwpTemplateVsix
8+
{
9+
/// <summary>
10+
/// This is the class that implements the package exposed by this assembly.
11+
/// </summary>
12+
/// <remarks>
13+
/// <para>
14+
/// The minimum requirement for a class to be considered a valid package for Visual Studio
15+
/// is to implement the IVsPackage interface and register itself with the shell.
16+
/// This package uses the helper classes defined inside the Managed Package Framework (MPF)
17+
/// to do it: it derives from the Package class that provides the implementation of the
18+
/// IVsPackage interface and uses the registration attributes defined in the framework to
19+
/// register itself and its components with the shell. These attributes tell the pkgdef creation
20+
/// utility what data to put into .pkgdef file.
21+
/// </para>
22+
/// <para>
23+
/// To get loaded into VS, the package must be referred by &lt;Asset Type="Microsoft.VisualStudio.VsPackage" ...&gt; in .vsixmanifest file.
24+
/// </para>
25+
/// </remarks>
26+
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
27+
[Guid(ModernUwpTemplateVsixPackage.PackageGuidString)]
28+
public sealed class ModernUwpTemplateVsixPackage : AsyncPackage
29+
{
30+
/// <summary>
31+
/// ModernUwpTemplateVsixPackage GUID string.
32+
/// </summary>
33+
public const string PackageGuidString = "659e36b5-6038-4d67-90f3-1db862e1c3f0";
34+
35+
#region Package Members
36+
37+
/// <summary>
38+
/// Initialization of the package; this method is called right after the package is sited, so this is the place
39+
/// where you can put all the initialization code that rely on services provided by VisualStudio.
40+
/// </summary>
41+
/// <param name="cancellationToken">A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down.</param>
42+
/// <param name="progress">A provider for progress updates.</param>
43+
/// <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>
44+
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
45+
{
46+
// When initialized asynchronously, the current thread may be a background thread at this point.
47+
// Do any initialization that requires the UI thread after switching to the UI thread.
48+
await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
49+
}
50+
51+
#endregion
52+
}
53+
}
Binary file not shown.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("ModernUwpTemplateVsix")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("ModernUwpTemplateVsix")]
13+
[assembly: AssemblyCopyright("")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// Version information for an assembly consists of the following four values:
23+
//
24+
// Major Version
25+
// Minor Version
26+
// Build Number
27+
// Revision
28+
//
29+
// You can specify all the values or you can default the Build and Revision Numbers
30+
// by using the '*' as shown below:
31+
// [assembly: AssemblyVersion("1.0.*")]
32+
[assembly: AssemblyVersion("1.0.0.0")]
33+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<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">
3+
<Metadata>
4+
<Identity Id="jeniusapps.modernuwptemplate" Version="0.1" Language="en-US" Publisher="Daniel Paulino" />
5+
<DisplayName>Modern UWP Project Template</DisplayName>
6+
<Description xml:space="preserve">Install a project template that is configured with the latest advancements to bootstrap your modern UWP app development.</Description>
7+
<License>License.txt</License>
8+
<Preview>true</Preview>
9+
</Metadata>
10+
<Installation>
11+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
12+
<ProductArchitecture>amd64</ProductArchitecture>
13+
</InstallationTarget>
14+
</Installation>
15+
<Dependencies>
16+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
17+
</Dependencies>
18+
<Prerequisites>
19+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
20+
</Prerequisites>
21+
<Assets>
22+
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
23+
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="File" Path="ProjectTemplates" d:TargetPath="ProjectTemplates\Modern UWP Project.zip" />
24+
</Assets>
25+
</PackageManifest>

0 commit comments

Comments
 (0)