Skip to content

Commit

Permalink
Merge pull request #246 from honda-tatsuya/fix-nuget-path
Browse files Browse the repository at this point in the history
fix: .nuget path
  • Loading branch information
neuecc authored Dec 27, 2019
2 parents e9e39d7 + e2305b9 commit cdcf563
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/MagicOnion.GeneratorCore/Utils/PseudoCompilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,7 @@ private static void CollectDocument(string csproj, HashSet<string> source, List<
// Try default
// Windows: %userprofile%\.nuget\packages
// Mac/Linux: ~/.nuget/packages
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
nugetPackagesPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), @".nuget\packages");
}
else
{
nugetPackagesPath = "~/.nuget/packages";
}
nugetPackagesPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages");
}

var resolvedDllPaths = new HashSet<string>();
Expand Down

0 comments on commit cdcf563

Please sign in to comment.