-
Notifications
You must be signed in to change notification settings - Fork 347
try-not-restoring #15476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
try-not-restoring #15476
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -57,6 +57,8 @@ public static void AssemblyInitialize(TestContext _) | |||||
| Debug.WriteLine($"Building test assets and unzipping packages took: {sw.ElapsedMilliseconds} ms"); | ||||||
| sw.Restart(); | ||||||
| BuildTestAssets(nugetCache); | ||||||
| Debug.WriteLine($"Building test assets took: {sw.ElapsedMilliseconds} ms"); | ||||||
| sw.Restart(); | ||||||
| BuildTestAssetsCompatibility(nugetCache); | ||||||
| Debug.WriteLine($"Building test assets compatibility matrix took: {sw.ElapsedMilliseconds} ms"); | ||||||
| sw.Restart(); | ||||||
|
|
@@ -228,12 +230,14 @@ private static void BuildTestAssetsCompatibility(string nugetCache) | |||||
| var netTestSdkVersionDir = netTestSdkVersion.TrimStart('[').TrimEnd(']'); | ||||||
| if (Directory.Exists(Path.Combine(nugetCache, "microsoft.testplatform", netTestSdkVersionDir)) && Directory.Exists(Path.Combine(nugetCache, "microsoft.testplatform.cli", netTestSdkVersionDir))) | ||||||
| { | ||||||
| Debug.WriteLine($"Version {netTestSdkVersion} of TestPlatform and TestPlatform.CLI is already in the cache, skipping restore."); | ||||||
| continue; | ||||||
| } | ||||||
|
|
||||||
| // We restore this project to download TestPlatform and TestPlatform.CLI nugets, into our package cache. | ||||||
| // Using nuget.exe install errors out in various weird ways. | ||||||
| var tools = Path.Combine(Root, "test", "TestAssets", "Tools", "Tools.csproj"); | ||||||
| Debug.WriteLine($"Restoring {tools} for {netTestSdkVersion}"); | ||||||
| ExecuteApplication2(Dotnet, $"""restore --packages {nugetCache} {nugetFeeds} --source "{IntegrationTestEnvironment.LocalPackageSource}" "{tools}" -p:PackageVersion={netTestSdkVersionDir} """); | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -253,13 +257,14 @@ private static void BuildTestAssetsCompatibility(string nugetCache) | |||||
| if (cacheIdText == currentCacheId) | ||||||
| { | ||||||
| // Project cache is up-to-date, just rebuilding solution. | ||||||
| ExecuteApplication2(Dotnet, $"""restore --packages {nugetCache} {nugetFeeds} --source "{IntegrationTestEnvironment.LocalPackageSource}" "{generatedSln}" """); | ||||||
| ExecuteApplication2(Dotnet, $"build {generatedSln} --no-restore --configuration {IntegrationTestEnvironment.BuildConfiguration} -v:minimal"); | ||||||
|
||||||
| ExecuteApplication2(Dotnet, $"build {generatedSln} --no-restore --configuration {IntegrationTestEnvironment.BuildConfiguration} -v:minimal"); | |
| ExecuteApplication2(Dotnet, $"build {generatedSln} --configuration {IntegrationTestEnvironment.BuildConfiguration} -v:minimal"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammatically, this refers to two packages, so it should use plural agreement (e.g., 'are already in the cache').