remove pathext workaround
This commit is contained in:
		
					parent
					
						
							
								67f292947d
							
						
					
				
			
			
				commit
				
					
						448d9dc08b
					
				
			
		
					 1 changed files with 2 additions and 12 deletions
				
			
		|  | @ -15,6 +15,7 @@ using Microsoft.DotNet.Tools.Common; | ||||||
| using Microsoft.DotNet.Cli; | using Microsoft.DotNet.Cli; | ||||||
| using Microsoft.DotNet.Tools.Migrate; | using Microsoft.DotNet.Tools.Migrate; | ||||||
| using Build3Command = Microsoft.DotNet.Tools.Test.Utilities.Build3Command; | using Build3Command = Microsoft.DotNet.Tools.Test.Utilities.Build3Command; | ||||||
|  | using BuildCommand = Microsoft.DotNet.Tools.Test.Utilities.BuildCommand; | ||||||
| 
 | 
 | ||||||
| namespace Microsoft.DotNet.Migration.Tests | namespace Microsoft.DotNet.Migration.Tests | ||||||
| { | { | ||||||
|  | @ -114,12 +115,6 @@ namespace Microsoft.DotNet.Migration.Tests | ||||||
|         [Fact] |         [Fact] | ||||||
|         public void It_migrates_an_app_with_scripts_and_the_scripts_run() |         public void It_migrates_an_app_with_scripts_and_the_scripts_run() | ||||||
|         {    |         {    | ||||||
|             var oldPathExt = Environment.GetEnvironmentVariable("PATHEXT"); |  | ||||||
|             if (oldPathExt != null) |  | ||||||
|             { |  | ||||||
|                 Environment.SetEnvironmentVariable("PATHEXT", ".cmd"); |  | ||||||
|             } |  | ||||||
|              |  | ||||||
|             var projectDirectory = |             var projectDirectory = | ||||||
|                 TestAssetsManager.CreateTestInstance("TestAppWithMigrateableScripts", callingMethod: "i").WithLockFiles().Path; |                 TestAssetsManager.CreateTestInstance("TestAppWithMigrateableScripts", callingMethod: "i").WithLockFiles().Path; | ||||||
| 
 | 
 | ||||||
|  | @ -142,11 +137,6 @@ namespace Microsoft.DotNet.Migration.Tests | ||||||
| 
 | 
 | ||||||
|             msBuildStdOut.Should().Contain($"precompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); |             msBuildStdOut.Should().Contain($"precompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); | ||||||
|             msBuildStdOut.Should().Contain($"postcompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); |             msBuildStdOut.Should().Contain($"postcompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); | ||||||
| 
 |  | ||||||
|             if (oldPathExt != null) |  | ||||||
|             { |  | ||||||
|                 Environment.SetEnvironmentVariable("PATHEXT", oldPathExt); |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         private MigratedBuildComparisonData GetDotnetNewComparisonData(string projectDirectory, string dotnetNewType) |         private MigratedBuildComparisonData GetDotnetNewComparisonData(string projectDirectory, string dotnetNewType) | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Bryan Thornbury
				Bryan Thornbury