Remove use of GetTempFileName (#313)
This commit is contained in:
parent
b5ccc996f0
commit
61505b88a5
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Reference in New Issue