diff options
Diffstat (limited to '')
| -rw-r--r-- | src/internal/WixInternal.TestSupport/Builder.cs | 8 | ||||
| -rw-r--r-- | src/internal/WixInternal.TestSupport/TestData.cs | 4 | ||||
| -rw-r--r-- | src/internal/WixInternal.TestSupport/WixInternal.TestSupport.csproj | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/internal/WixInternal.TestSupport/Builder.cs b/src/internal/WixInternal.TestSupport/Builder.cs index eec51797..aee5a8cf 100644 --- a/src/internal/WixInternal.TestSupport/Builder.cs +++ b/src/internal/WixInternal.TestSupport/Builder.cs | |||
| @@ -64,7 +64,7 @@ namespace WixInternal.TestSupport | |||
| 64 | foreach (var ext in this.ExtensionTypes) | 64 | foreach (var ext in this.ExtensionTypes) |
| 65 | { | 65 | { |
| 66 | args.Add("-ext"); | 66 | args.Add("-ext"); |
| 67 | args.Add(Path.GetFullPath(new Uri(ext.Assembly.CodeBase).LocalPath)); | 67 | args.Add(Path.GetFullPath(ext.Assembly.Location)); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | args.AddRange(sourceFiles); | 70 | args.AddRange(sourceFiles); |
| @@ -126,7 +126,7 @@ namespace WixInternal.TestSupport | |||
| 126 | foreach (var ext in this.ExtensionTypes) | 126 | foreach (var ext in this.ExtensionTypes) |
| 127 | { | 127 | { |
| 128 | firstBuildArgs.Add("-ext"); | 128 | firstBuildArgs.Add("-ext"); |
| 129 | firstBuildArgs.Add(Path.GetFullPath(new Uri(ext.Assembly.CodeBase).LocalPath)); | 129 | firstBuildArgs.Add(Path.GetFullPath(ext.Assembly.Location)); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | firstBuildArgs.AddRange(sourceFiles); | 132 | firstBuildArgs.AddRange(sourceFiles); |
| @@ -171,7 +171,7 @@ namespace WixInternal.TestSupport | |||
| 171 | foreach (var ext in this.ExtensionTypes) | 171 | foreach (var ext in this.ExtensionTypes) |
| 172 | { | 172 | { |
| 173 | decompileArgs.Add("-ext"); | 173 | decompileArgs.Add("-ext"); |
| 174 | decompileArgs.Add(Path.GetFullPath(new Uri(ext.Assembly.CodeBase).LocalPath)); | 174 | decompileArgs.Add(Path.GetFullPath(ext.Assembly.Location)); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | decompileFunc(decompileArgs.ToArray()); | 177 | decompileFunc(decompileArgs.ToArray()); |
| @@ -188,7 +188,7 @@ namespace WixInternal.TestSupport | |||
| 188 | foreach (var ext in this.ExtensionTypes) | 188 | foreach (var ext in this.ExtensionTypes) |
| 189 | { | 189 | { |
| 190 | secondBuildArgs.Add("-ext"); | 190 | secondBuildArgs.Add("-ext"); |
| 191 | secondBuildArgs.Add(Path.GetFullPath(new Uri(ext.Assembly.CodeBase).LocalPath)); | 191 | secondBuildArgs.Add(Path.GetFullPath(ext.Assembly.Location)); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | secondBuildArgs.Add("-bindpath"); | 194 | secondBuildArgs.Add("-bindpath"); |
diff --git a/src/internal/WixInternal.TestSupport/TestData.cs b/src/internal/WixInternal.TestSupport/TestData.cs index 05691e8c..1b169699 100644 --- a/src/internal/WixInternal.TestSupport/TestData.cs +++ b/src/internal/WixInternal.TestSupport/TestData.cs | |||
| @@ -44,13 +44,13 @@ namespace WixInternal.TestSupport | |||
| 44 | 44 | ||
| 45 | public static string Get(params string[] paths) | 45 | public static string Get(params string[] paths) |
| 46 | { | 46 | { |
| 47 | var localPath = Path.GetDirectoryName(new Uri(Assembly.GetCallingAssembly().CodeBase).LocalPath); | 47 | var localPath = AppDomain.CurrentDomain.BaseDirectory; |
| 48 | return Path.Combine(localPath, Path.Combine(paths)); | 48 | return Path.Combine(localPath, Path.Combine(paths)); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | public static string GetUnitTestLogsFolder([CallerFilePath] string path = "", [CallerMemberName] string method = "") | 51 | public static string GetUnitTestLogsFolder([CallerFilePath] string path = "", [CallerMemberName] string method = "") |
| 52 | { | 52 | { |
| 53 | var startingPath = Path.GetDirectoryName(new Uri(Assembly.GetCallingAssembly().CodeBase).LocalPath); | 53 | var startingPath = AppDomain.CurrentDomain.BaseDirectory; |
| 54 | var buildPath = startingPath; | 54 | var buildPath = startingPath; |
| 55 | 55 | ||
| 56 | while (!String.IsNullOrEmpty(buildPath)) | 56 | while (!String.IsNullOrEmpty(buildPath)) |
diff --git a/src/internal/WixInternal.TestSupport/WixInternal.TestSupport.csproj b/src/internal/WixInternal.TestSupport/WixInternal.TestSupport.csproj index 4e1c3c26..1b713a0d 100644 --- a/src/internal/WixInternal.TestSupport/WixInternal.TestSupport.csproj +++ b/src/internal/WixInternal.TestSupport/WixInternal.TestSupport.csproj | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | 5 | ||
| 6 | <PropertyGroup> | 6 | <PropertyGroup> |
| 7 | <TargetFrameworks>netstandard2.0;net472</TargetFrameworks> | 7 | <TargetFrameworks>net6.0;net472</TargetFrameworks> |
| 8 | <IsPackable>true</IsPackable> | 8 | <IsPackable>true</IsPackable> |
| 9 | <DebugType>embedded</DebugType> | 9 | <DebugType>embedded</DebugType> |
| 10 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | 10 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
