Skip to content

Commit

Permalink
Use nuget no cache option (#148)
Browse files Browse the repository at this point in the history
* Remove double slash from nuget package API calls

* Allow for other projects to be upgraded if one or more are with old Sitefinity version

* Improve logic for SyncReferencesWithPackages;

* Add list of system assemblies that should not have their references and binding redirects updated

* Add mandatory NoCache option for NuGet CLI install/restore

* Bump version

Co-authored-by: Stoyan Ruzmanov <[email protected]>
  • Loading branch information
yasen-yankov and RuzmanovDev authored Sep 17, 2021
1 parent 27be99e commit b6db524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sitefinity CLI/PackageManagement/NuGetCliClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void InstallPackage(string packageId, string version, string solutionDire
{
string source = string.Join(';', sources);

this.RunProcess($"install \"{packageId}\" -Version {version} -SolutionDirectory \"{solutionDirectory}\" -Source \"{source}\"");
this.RunProcess($"install \"{packageId}\" -Version {version} -SolutionDirectory \"{solutionDirectory}\" -Source \"{source}\" -NoCache");
}

public void Install(string configFilePath)
Expand All @@ -27,7 +27,7 @@ public void Install(string configFilePath)

public void Restore(string solutionFilePath)
{
this.RunProcess($"restore \"{solutionFilePath}\"");
this.RunProcess($"restore \"{solutionFilePath}\" -NoCache");
}

private void RunProcess(string arguments)
Expand Down
4 changes: 2 additions & 2 deletions Sitefinity CLI/Sitefinity CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
<AssemblyName>sf</AssemblyName>
<RootNamespace>Sitefinity_CLI</RootNamespace>
<AssemblyVersion>1.1.0.24</AssemblyVersion>
<AssemblyVersion>1.1.0.25</AssemblyVersion>
<Version>1.1.0</Version>
<FileVersion>1.1.0.24</FileVersion>
<FileVersion>1.1.0.25</FileVersion>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>
Expand Down

0 comments on commit b6db524

Please sign in to comment.