Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Change current directory
Browse files Browse the repository at this point in the history
Env.CurrentDirectory was wrong choice, now using
AppDomain..BaseDirectory
  • Loading branch information
Kingloo committed Apr 22, 2018
1 parent 3335c25 commit 86f19ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hosts/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using hosts.Common;
using hosts.DnsServerTargets;
Expand All @@ -11,7 +13,7 @@ namespace hosts
{
public static class Program
{
private static DirectoryInfo workingDirectory = new DirectoryInfo(Environment.CurrentDirectory);
private static DirectoryInfo workingDirectory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);

public static async Task<int> Main(string[] args)
{
Expand Down

0 comments on commit 86f19ea

Please sign in to comment.