Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions AutoT4MVC.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug-VS2015|Any CPU = Debug-VS2015|Any CPU
Release|Any CPU = Release|Any CPU
Release-VS2015|Any CPU = Release-VS2015|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Debug-VS2015|Any CPU.ActiveCfg = Debug-VS2015|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Debug-VS2015|Any CPU.Build.0 = Debug-VS2015|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Release|Any CPU.Build.0 = Release|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Release-VS2015|Any CPU.ActiveCfg = Release-VS2015|Any CPU
{E25F1D10-8F69-4FD8-8032-CAFDA99934CC}.Release-VS2015|Any CPU.Build.0 = Release-VS2015|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
24 changes: 23 additions & 1 deletion AutoT4MVC/AutoT4MVC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
<WarningLevel>4</WarningLevel>
<DeployExtension>True</DeployExtension>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug-VS2015'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug-VS2015\</OutputPath>
<DefineConstants>TRACE;DEBUG;VS2015</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DeployExtension>True</DeployExtension>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
Expand All @@ -61,6 +71,16 @@
<RunCodeAnalysis>true</RunCodeAnalysis>
<DeployExtension>True</DeployExtension>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release-VS2015' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release-VS2015\</OutputPath>
<DefineConstants>TRACE;VS2015</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<DeployExtension>True</DeployExtension>
</PropertyGroup>
<ItemGroup>
<Reference Include="envdte, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>False</EmbedInteropTypes>
Expand All @@ -82,7 +102,9 @@
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.VisualStudio.TextManager.Interop" />
<Reference Include="Microsoft.VisualStudio.Shell.11.0" />
<Reference Include="Microsoft.VisualStudio.Shell.11.0" Condition="'$(Configuration)' == 'Debug' Or '$(Configuration)' == 'Release'" />
<Reference Include="Microsoft.VisualStudio.Shell.15.0" Condition="'$(Configuration)' == 'Debug-VS2015' Or '$(Configuration)' == 'Release-VS2015'" />
<Reference Include="Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" Condition="'$(Configuration)' == 'Debug-VS2015' Or '$(Configuration)' == 'Release-VS2015'" />
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0" />
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.11.0" />
<Reference Include="System" />
Expand Down
12 changes: 12 additions & 0 deletions AutoT4MVC/AutoT4MVCPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using System.ComponentModel.Design;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio;
Expand All @@ -17,7 +19,11 @@ namespace AutoT4MVC
[ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExists_string)]
[ProvideOptionPage(typeof (Options), Options.CategoryName, Options.PageName, 1000, 1001, false)]
[ProvideMenuResource("Menus.ctmenu", 1)]
#if VS2015
public sealed class AutoT4MVCPackage : AsyncPackage
#else
public sealed class AutoT4MVCPackage : Package
#endif
{
private BuildEvents _buildEvents;
private Controller _controller;
Expand All @@ -31,8 +37,14 @@ private Options Options
get { return (Options)GetDialogPage(typeof (Options)); }
}

#if VS2015
protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await JoinableTaskFactory.SwitchToMainThreadAsync();
#else
protected override void Initialize()
{
#endif
base.Initialize();

_dte = GetService(typeof (SDTE)) as DTE;
Expand Down
48 changes: 24 additions & 24 deletions AutoT4MVC/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?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="c676817c-46cc-47d3-b03c-8a05f499d4a5" Version="1.5.3" Language="en-US" Publisher="Bennor McCarthy" />
<DisplayName>AutoT4MVC</DisplayName>
<Description xml:space="preserve">An extension for Visual Studio which automatically runs your T4MVC templates at build time and when you create/remove/rename/save a file that T4MVC cares about.</Description>
<MoreInfo>http://bennor.github.io/AutoT4MVC/</MoreInfo>
<License>LICENCE.txt</License>
<ReleaseNotes>https://github.com/bennor/AutoT4MVC/releases</ReleaseNotes>
<Icon>noun_project_2223.png</Icon>
<Tags>T4MVC</Tags>
</Metadata>
<Installation InstalledByMsi="false">
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[11.0,15.0]" />
<InstallationTarget Version="[11.0,15.0]" Id="Microsoft.VisualStudio.Premium" />
<InstallationTarget Version="[11.0,15.0]" Id="Microsoft.VisualStudio.Ultimate" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0.26208.0,16.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Metadata>
<Identity Id="c676817c-46cc-47d3-b03c-8a05f499d4a5" Version="1.5.3" Language="en-US" Publisher="Bennor McCarthy" />
<DisplayName>AutoT4MVC</DisplayName>
<Description xml:space="preserve">An extension for Visual Studio which automatically runs your T4MVC templates at build time and when you create/remove/rename/save a file that T4MVC cares about.</Description>
<MoreInfo>http://bennor.github.io/AutoT4MVC/</MoreInfo>
<License>LICENCE.txt</License>
<ReleaseNotes>https://github.com/bennor/AutoT4MVC/releases</ReleaseNotes>
<Icon>noun_project_2223.png</Icon>
<Tags>T4MVC</Tags>
</Metadata>
<Installation InstalledByMsi="false">
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[11.0,16.0]" />
<InstallationTarget Version="[11.0,16.0]" Id="Microsoft.VisualStudio.Premium" />
<InstallationTarget Version="[11.0,16.0]" Id="Microsoft.VisualStudio.Ultimate" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>