dotnet-installer/TestAssets
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
..
DesktopTestProjects Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
LockFiles/ExportFiles Fix package code for new NuGet. 2016-07-26 20:53:20 -05:00
NonRestoredTestProjects Add support for accepting directories to add and remove reference commands. 2017-12-07 17:23:31 -08:00
TestPackages Fixing the path to the prefercliruntime file. 2017-12-19 10:10:30 -08:00
TestProjects Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
Directory.Build.props Support new artifacts layout in tests and other build logic 2017-08-24 15:49:13 -07:00