Path ext hacks
This commit is contained in:
parent
e8df0e712e
commit
9067bc9e45
1 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,12 @@ 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;
|
||||||
|
|
||||||
|
@ -136,6 +142,11 @@ 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue