Skip to content

Commit

Permalink
Merge pull request #287 from majaeger/master
Browse files Browse the repository at this point in the history
Delete ref folder as part of package cleanup
  • Loading branch information
jwittner authored Oct 4, 2019
2 parents e036665 + 5534e82 commit edbb36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/NuGet/Editor/NugetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ private static void Clean(NugetPackageIdentifier package)
// Delete documentation folders since they sometimes have HTML docs with JavaScript, which Unity tried to parse as "UnityScript"
DeleteDirectory(packageInstallDirectory + "/docs");

// Delete ref folder, as it is just used for compile-time reference and does not contain implementations.
// Leaving it results in "assembly loading" and "multiple pre-compiled assemblies with same name" errors
DeleteDirectory(packageInstallDirectory + "/ref");

if (Directory.Exists(packageInstallDirectory + "/lib"))
{
int intDotNetVersion = (int)DotNetVersion; // c
Expand Down

0 comments on commit edbb36d

Please sign in to comment.