Skip to content

Commit ec9105e

Browse files
committed
Fix issue with api call in offline mode for adding project reference file
When in offline mode, there should be no call to service for adding the project reference file.
1 parent 532bc4a commit ec9105e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Pixel.Automation.Reference.Manager/ReferenceManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public void Initialize(string projectId, string projectVersion, IFileSystem file
4747
else
4848
{
4949
this.projectReferences = CreateDefault();
50-
_ = this.referencesRepositoryClient.AddProjectReferencesAsync(this.projectId, this.projectVersion, this.projectReferences);
50+
if(!applicationSettings.IsOfflineMode)
51+
{
52+
_ = this.referencesRepositoryClient.AddProjectReferencesAsync(this.projectId, this.projectVersion, this.projectReferences);
53+
}
5154
SaveLocal();
5255
}
5356

0 commit comments

Comments
 (0)