Skip to content

Commit

Permalink
add vs 2015 plugin register tool
Browse files Browse the repository at this point in the history
  • Loading branch information
wudixiaop committed Oct 17, 2015
1 parent 55649f8 commit 77dfde3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/ShaderlabVS/ShaderlabVS-2015.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
<Compile Include="Utilities.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Shaderlab.lex" />
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
Expand All @@ -143,6 +142,7 @@
<None Include="TestFiles\Lighting.cginc" />
<None Include="TestFiles\UnityCG.cginc" />
<None Include="TestFiles\UnityCG.glslinc" />
<None Include="vs2015-register.cmd" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Keywords.png">
Expand Down
6 changes: 5 additions & 1 deletion Src/ShaderlabVS/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="ShaderlabVS..c702cfb7-573c-45f4-9469-115fcb519ad2" Version="0.5" Language="en-US" Publisher="Rocky Lai" />
<Identity Id="ShaderlabVS..c702cfb7-573c-45f4-9469-115fcb519ad2" Version="0.6" Language="zh-Hans" Publisher="Rocky Lai" />
<DisplayName>ShaderlabVS</DisplayName>
<Description xml:space="preserve">ShaderlabVS is a Visual Studio plugin for Unity3D shader programming.</Description>
<MoreInfo>https://github.com/wudixiaop/ShaderlabVS/blob/master/README.md</MoreInfo>
Expand All @@ -14,6 +14,10 @@
<InstallationTarget Version="[11.0,12.0]" Id="Microsoft.VisualStudio.Ultimate" />
<InstallationTarget Version="[11.0,12.0]" Id="Microsoft.VisualStudio.Premium" />
<InstallationTarget Version="[11.0,12.0]" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
<InstallationTarget Version="[14.0,15.0)" Id="Microsoft.VisualStudio.Community" />
<InstallationTarget Version="[14.0,15.0)" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[14.0,15.0)" Id="Microsoft.VisualStudio.Enterprise" />
<InstallationTarget Version="[14.0,15.0)" Id="Microsoft.VisualStudio.VSWinExpress" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="4.5" />
Expand Down
8 changes: 8 additions & 0 deletions Tools/vs2015-register.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@ECHO OFF
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\Languages\File Extensions\.shader" /t REG_SZ /d {c702cfb7-573c-45f4-9469-115fcb519ad2} /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\Languages\File Extensions\.cginc" /t REG_SZ /d {c702cfb7-573c-45f4-9469-115fcb519ad2} /f

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0Exp_Config\Languages\File Extensions\.shader" /t REG_SZ /d {c702cfb7-573c-45f4-9469-115fcb519ad2} /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0Exp_Config\Languages\File Extensions\.cginc" /t REG_SZ /d {c702cfb7-573c-45f4-9469-115fcb519ad2} /f

pause

0 comments on commit 77dfde3

Please sign in to comment.