Skip to content

Commit 8dbf5f0

Browse files
committed
Attempting to resolve binding failures with custom tool (daveaglick#89)
1 parent ce8db23 commit 8dbf5f0

4 files changed

Lines changed: 18 additions & 162 deletions

File tree

src/Scripty.CustomTool/CodeGeneratorRegistrationAttribute.cs

Lines changed: 0 additions & 158 deletions
This file was deleted.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
4+
using Microsoft.VisualStudio.Shell;
45

56
[assembly: AssemblyTitle("Scripty.CustomTool")]
67
[assembly: AssemblyDescription("")]
78
[assembly: Guid("dd26cc89-e1e8-4a94-8e8c-ad5215616c6c")]
8-
[assembly: ComVisible(true)]
9+
[assembly: ComVisible(true)]
10+
11+
[assembly: ProvideBindingRedirection(AssemblyName = "System.IO.FileSystem", PublicKeyToken = "b03f5f7f11d50a3a",
12+
OldVersionLowerBound = "0.0.0.0", OldVersionUpperBound = "4.0.2.0", NewVersion = "4.0.2.0")]
13+
14+
[assembly: ProvideBindingRedirection(AssemblyName = "System.IO.FileSystem.Primitives", PublicKeyToken = "b03f5f7f11d50a3a",
15+
OldVersionLowerBound = "0.0.0.0", OldVersionUpperBound = "4.0.2.0", NewVersion = "4.0.2.0")]

src/Scripty.CustomTool/Scripty.CustomTool.csproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
</Reference>
5353
<Reference Include="Microsoft.VisualStudio.Designer.Interfaces" />
5454
<Reference Include="Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
55-
<Reference Include="Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
56-
<SpecificVersion>False</SpecificVersion>
55+
<Reference Include="Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
56+
<Private>False</Private>
5757
</Reference>
5858
<Reference Include="Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
5959
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -70,14 +70,19 @@
7070
<Reference Include="System">
7171
<Name>System</Name>
7272
</Reference>
73+
<Reference Include="System.IO.FileSystem, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
74+
<HintPath>..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll</HintPath>
75+
</Reference>
76+
<Reference Include="System.IO.FileSystem.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
77+
<HintPath>..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
78+
</Reference>
7379
</ItemGroup>
7480
<ItemGroup>
7581
<Compile Include="..\SolutionInfo.cs">
7682
<Link>Properties\SolutionInfo.cs</Link>
7783
</Compile>
7884
<Compile Include="BaseCodeGenerator.cs" />
7985
<Compile Include="BaseCodeGeneratorWithSite.cs" />
80-
<Compile Include="CodeGeneratorRegistrationAttribute.cs" />
8186
<Compile Include="Properties\AssemblyInfo.cs">
8287
<SubType>Code</SubType>
8388
</Compile>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Microsoft.VSSDK.BuildTools" version="15.0.26201" targetFramework="net46" developmentDependency="true" />
4+
<package id="System.IO.FileSystem" version="4.3.0" targetFramework="net46" />
5+
<package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net46" />
46
</packages>

0 commit comments

Comments
 (0)