Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
ensure definition file is overwritten (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Dec 27, 2017
1 parent 8204e32 commit 64606e2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand Down Expand Up @@ -63,8 +63,7 @@ public void AddCompilationRoots(IRootingServiceProvider rootProvider)

private void EmitExportedMethods()
{
string moduleName = Path.GetFileNameWithoutExtension(_exportsFile);
FileStream fileStream = new FileStream(_exportsFile, FileMode.OpenOrCreate);
FileStream fileStream = new FileStream(_exportsFile, FileMode.Create);
using (StreamWriter streamWriter = new StreamWriter(fileStream))
{
if (_module.Context.Target.IsWindows)
Expand Down

0 comments on commit 64606e2

Please sign in to comment.