public void IsReferenceSameVersionTests(string version1, string version2, bool expected) { SdkReference sdk = new SdkReference("Microsoft.NET.Sdk", version1, null); SdkResolverService.IsReferenceSameVersion(sdk, version2).ShouldBe(expected); }
/// <summary> /// Ideally caches should be discarded by discarding this entire object. /// However, there could be situations where API users have a <see cref="Project"/> object loaned to another entity, and cannot swap the context, but still need to reset it. /// </summary> public void ResetCaches() { SdkResolverService.ClearCaches(); FileSystem.ClearCaches(); FileEntryExpansionCache.Clear(); }