-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
9988c1b
commit e14cee6
Showing
11 changed files
with
194 additions
and
75 deletions.
There are no files selected for viewing
File renamed without changes.
71 changes: 0 additions & 71 deletions
71
PecanWaffle/PecanWaffleSamplesVs/PecanWaffleSamplesVs.csproj
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,117 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.props" Condition="Exists('..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.props')" /> | ||
<PropertyGroup> | ||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
<NuGetPackageImportStamp> | ||
</NuGetPackageImportStamp> | ||
</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>{C82C0675-24C6-4660-9564-A58BEB5B7B50}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>PecanWaffleSamplesVs</RootNamespace> | ||
<AssemblyName>PecanWaffleSamplesVs</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<GeneratePkgDefFile>false</GeneratePkgDefFile> | ||
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer> | ||
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer> | ||
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment> | ||
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory> | ||
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory> | ||
</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="SolutionWizard.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
<None Include="Properties\pecan-waffle-settings.props" /> | ||
<None Include="source.extension.vsixmanifest"> | ||
<SubType>Designer</SubType> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="index.html" /> | ||
<Content Include="stylesheet.css" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="LigerShark.FileReplacer, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\file-replacer.0.4.5-beta\lib\dotnet\LigerShark.FileReplacer.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="PecanWaffle, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\pecan-waffle.0.0.15-beta\lib\PecanWaffle.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.IO.Compression" /> | ||
<Reference Include="System.IO.Compression.FileSystem" /> | ||
<Reference Include="envdte, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
<EmbedInteropTypes>False</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="EnvDTE100, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<EmbedInteropTypes>False</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
<EmbedInteropTypes>False</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="envdte90, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
<EmbedInteropTypes>False</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.11.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Interop.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
<PropertyGroup> | ||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
</PropertyGroup> | ||
<Error Condition="!Exists('..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.props'))" /> | ||
<Error Condition="!Exists('..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.targets'))" /> | ||
</Target> | ||
<Import Project="..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.targets" Condition="Exists('..\packages\pecan-waffle-vs.0.0.15-beta\build\pecan-waffle-vs.targets')" /> | ||
<!-- 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> |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
PecanWaffleSamplesVs/Properties/pecan-waffle-settings.props
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<PowerShellExe Condition=" '$(PowerShellExe)'=='' ">$(WINDIR)\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellExe> | ||
<pwInstallBranch Condition=" '$(pwInstallBranch)'=='' ">dev</pwInstallBranch> | ||
<pwTemplateZipRelDir Condition=" '$(pwTemplateZipRelDir)'=='' ">Output\ProjectTemplates\CSharp\Pecan Waffle\Multi Project Samples\</pwTemplateZipRelDir> | ||
<pwVerbose Condition=" '$(pwVerbose)'=='' ">false</pwVerbose> | ||
<PackagesDir Condition=" '$(PackagesDir)'=='' ">..\packages\</PackagesDir> | ||
<pwTemplateRoot Condition=" '$(pwTemplateRoot)'==''">$(MSBuildProjectDirectory)\templates\</pwTemplateRoot> | ||
</PropertyGroup> | ||
|
||
</Project> |
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,57 @@ | ||
using PecanWaffle; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.IO.Compression; | ||
using System.Reflection; | ||
using System.Threading; | ||
|
||
namespace PecanWaffleSamplesVs { | ||
public class SolutionWizard : ProjectWizard { | ||
public SolutionWizard() : base() { | ||
ExtensionInstallDir = (new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName); | ||
Properties["ExtensionInstallDir"] = ExtensionInstallDir; | ||
} | ||
|
||
public override void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, Microsoft.VisualStudio.TemplateWizard.WizardRunKind runKind, object[] customParams) { | ||
EnsurePecanWaffleExtracted(); | ||
|
||
base.RunStarted(automationObject, replacementsDictionary, runKind, customParams); | ||
} | ||
public override void RunFinished() { | ||
// set templatesource | ||
if (string.IsNullOrWhiteSpace(TemplateSource)) { | ||
TemplateSource = ExtensionInstallDir; | ||
} | ||
|
||
base.RunFinished(); | ||
} | ||
|
||
protected string PecanWaffleLocalModulePath | ||
{ | ||
get | ||
{ | ||
return Path.Combine(ExtensionInstallDir, @"PwModules\"); | ||
} | ||
} | ||
|
||
private void EnsurePecanWaffleExtracted() { | ||
if (!Directory.Exists(PecanWaffleLocalModulePath)) { | ||
var swDir = new DirectoryInfo(ExtensionInstallDir); | ||
var foundFiles = swDir.GetFiles("*.nupkg"); | ||
if (foundFiles == null || foundFiles.Length <= 0) { | ||
throw new FileNotFoundException(string.Format("Didn't find any files matching TemplateBuilder*.nupkg in [{0}]", swDir.FullName)); | ||
} | ||
|
||
foreach (var file in foundFiles) { | ||
var pkgdir = Path.Combine(PecanWaffleLocalModulePath, file.Name); | ||
if (!Directory.Exists(pkgdir)) { | ||
Directory.CreateDirectory(pkgdir); | ||
} | ||
ZipFile.ExtractToDirectory(file.FullName, pkgdir); | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
File renamed without changes.
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="file-replacer" version="0.4.5-beta" targetFramework="net45" /> | ||
<package id="nuget-powershell" version="0.2.5-beta" targetFramework="net45" /> | ||
<package id="pecan-waffle" version="0.0.15-beta" targetFramework="net45" /> | ||
<package id="pecan-waffle-vs" version="0.0.15-beta" targetFramework="net45" /> | ||
</packages> |
File renamed without changes.
File renamed without changes.