Skip to content

Commit

Permalink
Fix issue with api call in offline mode for adding project reference …
Browse files Browse the repository at this point in the history
…file

When in offline mode, there should be no call to service for adding the project reference file.
  • Loading branch information
Nfactor26 committed Dec 23, 2022
1 parent 532bc4a commit ec9105e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Pixel.Automation.Reference.Manager/ReferenceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ public void Initialize(string projectId, string projectVersion, IFileSystem file
else
{
this.projectReferences = CreateDefault();
_ = this.referencesRepositoryClient.AddProjectReferencesAsync(this.projectId, this.projectVersion, this.projectReferences);
if(!applicationSettings.IsOfflineMode)
{
_ = this.referencesRepositoryClient.AddProjectReferencesAsync(this.projectId, this.projectVersion, this.projectReferences);
}
SaveLocal();
}

Expand Down

0 comments on commit ec9105e

Please sign in to comment.