Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
don't update assembly info for cached packages
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed May 19, 2021
1 parent d06d19a commit 281ec18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Editor/Utilities/AssemblyDefinitionPreProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ private void OnPreprocessAsset()
{
if (assetPath.Contains("package.json") && !Application.isBatchMode)
{
if (Path.GetFullPath(assetPath).Contains("PackageCache"))
{
Debug.Log($"Skipped {assetPath}");
return;
}

var text = File.ReadAllText(assetPath);
var asmdef = AssemblyDefinitionEditorExtension.AssemblyDefinition.FromJson(text);

Expand Down

0 comments on commit 281ec18

Please sign in to comment.