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.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
@ -71,7 +71,7 @@ namespace Microsoft.DotNet.Watcher.Internal
|
||||||
{
|
{
|
||||||
EnsureInitialized();
|
EnsureInitialized();
|
||||||
|
|
||||||
var watchList = Path.GetTempFileName();
|
var watchList = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var projectDir = Path.GetDirectoryName(_projectFile);
|
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.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
@ -34,7 +34,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Internal
|
||||||
? configuration
|
? configuration
|
||||||
: DefaultConfig;
|
: DefaultConfig;
|
||||||
|
|
||||||
var outputFile = Path.GetTempFileName();
|
var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var args = new[]
|
var args = new[]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue