Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit942d292

Browse files
committed
Use Assembly.EscapedCodeBase not .CodeBase in IDE unit tests
This was causing internal execution to fail when directory namescontained various special character.
1 parentc2335c0 commit942d292

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎vsintegration/src/Salsa/VsMocks.fs‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,11 +1655,7 @@ module internal VsActual =
16551655

16561656
// copy this private assembly next to unit tests, otherwise assembly loader cannot find it
16571657
letneededLocalAssem= vsInstallDir+@"\PrivateAssemblies\Microsoft.VisualStudio.Platform.VSEditor.Interop.dll"
1658-
#if FX_ATLEAST_45
1659-
letcurDir= System.IO.Path.GetDirectoryName((new System.Uri(System.Reflection.Assembly.Load("nunit.util").CodeBase)).LocalPath)
1660-
#else
1661-
letcurDir= System.IO.Path.GetDirectoryName((new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase)).LocalPath)
1662-
#endif
1658+
letcurDir= System.IO.Path.GetDirectoryName((new System.Uri(System.Reflection.Assembly.Load("nunit.util").EscapedCodeBase)).LocalPath)
16631659
letlocalCopy= System.IO.Path.Combine(curDir, System.IO.Path.GetFileName(neededLocalAssem))
16641660
System.IO.File.Copy(neededLocalAssem, localCopy,true)
16651661

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp