@@ -194,6 +194,55 @@ function VS2015() {
194194 writeStream . Close ( ) ;
195195}
196196
197+ function VS2017 ( ) {
198+ if ( ! Session ) return ;
199+
200+ var args = ParseArguments ( "VS2017" ) ;
201+ var pkgdefFile = GetPkgDefFile ( args ) ;
202+ var text = ReadPkgDefFile ( pkgdefFile ) ;
203+ var newText = SubstitutePaths ( args , text ) ;
204+ var writeStream = pkgdefFile . OpenAsTextStream ( 2 , - 2 ) ;
205+ writeStream . Write ( newText ) ;
206+
207+ if ( newText . indexOf ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{FE369FD8-C6DB-433B-907B-05A115708416}]' ) < 0 ) {
208+ writeStream . WriteLine ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{FE369FD8-C6DB-433B-907B-05A115708416}]' ) ;
209+ writeStream . WriteLine ( '"name"="Nemerle.VisualStudio"' ) ;
210+ writeStream . WriteLine ( '"publicKeyToken"="c4c0f22444bf4088"' ) ;
211+ writeStream . WriteLine ( '"culture"="neutral"' ) ;
212+ writeStream . WriteLine ( '"oldVersion"="1.0.0.0-' + args . NemerleVisualStudioVersion + '"' ) ;
213+ writeStream . WriteLine ( '"newVersion"="' + args . NemerleVisualStudioVersion + '"' ) ;
214+ }
215+
216+ if ( newText . indexOf ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{BD1D3C51-E157-4DE0-A535-E94130D1970A}]' ) < 0 ) {
217+ writeStream . WriteLine ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{BD1D3C51-E157-4DE0-A535-E94130D1970A}]' ) ;
218+ writeStream . WriteLine ( '"name"="Microsoft.Windows.Design.Host"' ) ;
219+ writeStream . WriteLine ( '"publicKeyToken"="b03f5f7f11d50a3a"' ) ;
220+ writeStream . WriteLine ( '"culture"="neutral"' ) ;
221+ writeStream . WriteLine ( '"oldVersion"="4.0.0.0-4.2.0.0"' ) ;
222+ writeStream . WriteLine ( '"newVersion"="4.3.0.0"' ) ;
223+ }
224+
225+ if ( newText . indexOf ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{5978995F-FBA0-4DCC-8556-19AB2EB19D36}]' ) < 0 ) {
226+ writeStream . WriteLine ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{5978995F-FBA0-4DCC-8556-19AB2EB19D36}]' ) ;
227+ writeStream . WriteLine ( '"name"="Microsoft.Windows.Design.Interaction"' ) ;
228+ writeStream . WriteLine ( '"publicKeyToken"="b03f5f7f11d50a3a"' ) ;
229+ writeStream . WriteLine ( '"culture"="neutral"' ) ;
230+ writeStream . WriteLine ( '"oldVersion"="4.0.0.0-4.2.0.0"' ) ;
231+ writeStream . WriteLine ( '"newVersion"="4.3.0.0"' ) ;
232+ }
233+
234+ if ( newText . indexOf ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{F604D514-4F33-422E-BA44-E4F22381F044}]' ) < 0 ) {
235+ writeStream . WriteLine ( '[$RootKey$\\RuntimeConfiguration\\dependentAssembly\\bindingRedirection\\{F604D514-4F33-422E-BA44-E4F22381F044}]' ) ;
236+ writeStream . WriteLine ( '"name"="Microsoft.VisualStudio.Web.Application"' ) ;
237+ writeStream . WriteLine ( '"publicKeyToken"="b03f5f7f11d50a3a"' ) ;
238+ writeStream . WriteLine ( '"culture"="neutral"' ) ;
239+ writeStream . WriteLine ( '"oldVersion"="10.0.0.0-12.0.0.0"' ) ;
240+ writeStream . WriteLine ( '"newVersion"="14.0.0.0"' ) ;
241+ }
242+
243+ writeStream . Close ( ) ;
244+ }
245+
197246function UpdateFileTimestamp ( ) {
198247 var filePath = Session . Property ( "CustomActionData" ) ;
199248 var fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
0 commit comments