Remove use of GetTempFileName (#313)

This commit is contained in:
Jass Bagga 2017-06-28 12:11:17 -07:00 committed by GitHub
parent b5ccc996f0
commit 61505b88a5
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
@ -71,7 +71,7 @@ namespace Microsoft.DotNet.Watcher.Internal
{
EnsureInitialized();
var watchList = Path.GetTempFileName();
var watchList = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
try
{
var projectDir = Path.GetDirectoryName(_projectFile);

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
@ -34,7 +34,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Internal
? configuration
: DefaultConfig;
var outputFile = Path.GetTempFileName();
var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
try
{
var args = new[]