dotnet-installer/test/Microsoft.DotNet.Tools.Tests.Utilities/Commands
Peter Huene b2b3947c68
Fix Razor server shutdown on Windows.
On Windows, the Razor server correctly creates the pid file with
`FileAccess.Write` and `FileOptions.DeleteOnClose`.  This requires a share mode
of `FileShare.Write | FileShare.Delete` to open.  However, the
`dotnet build-server shutdown` command was opening the file with
`FileShare.Read`.  As a result, an `IOException` was being thrown and was not
handled.

This change first opens the file with the appropriate share access and also
properly handles a failure to access or read the contents of the pid file.

Additionally, an integration test was added to test that Razor server shutdown
works as expected.

Fixes #9158.
2018-04-27 13:52:17 -07:00
..
AddReferenceCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
BuildCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
BuildServerCommand.cs Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
CleanCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
DependencyToolInvokerCommand.cs Removing the additional shared framework from the official stage2 build of the CLI. Instead, I also create a stage2 build with the legacy runtime so that we can continue to run tests tthat depend on it, but most importantly, we will be able to run backwards compatibility tests using it. 2017-04-08 00:31:27 -07:00
DotnetCommand.cs Removing the additional shared framework from the official stage2 build of the CLI. Instead, I also create a stage2 build with the legacy runtime so that we can continue to run tests tthat depend on it, but most importantly, we will be able to run backwards compatibility tests using it. 2017-04-08 00:31:27 -07:00
DotnetTestCommand.cs Replacing the short form version of implicit msbuild parameters with longform ones. 2018-04-02 22:54:51 -07:00
HelpCommand.cs Replace dotnet help parser with CliCommandLineParser 2017-04-10 22:11:14 -07:00
ListReferenceCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
MigrateCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
MSBuildCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
NewCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
NewCommandShim.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
PackCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
PublishCommand.cs Rename publish --target to --manifest. 2017-04-14 16:08:32 -05:00
RemoveReferenceCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
RestoreCommand.cs Replacing the short form version of implicit msbuild parameters with longform ones. 2018-04-02 22:54:51 -07:00
RunCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00
StoreCommand.cs Fix tests for cache => store rename. 2017-04-07 15:51:37 -05:00
TestCommand.cs Support new artifacts layout in tests and other build logic 2017-08-24 15:49:13 -07:00
ToolCommand.cs Change command order for tools (#8862) 2018-03-21 19:12:32 -07:00
VSTestCommand.cs Move all test commands to DotNetCommand base 2017-03-14 14:07:51 -07:00