Include ASP packages in offline cache (#5124)
* Archive asp.net package references * Archive asp.net package references * Change the hash input so it's the same on all platforms * Address PR comments
This commit is contained in:
parent
47fb245258
commit
b72d625168
12 changed files with 138 additions and 11 deletions
|
@ -78,7 +78,7 @@ A command is running to initially populate your local package cache, to improve
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void ItRestoresTheNuGetPackagesToTheNuGetCacheFolder()
|
||||
public void ItCreatesASentinelFileUnderTheNuGetCacheFolder()
|
||||
{
|
||||
_nugetCacheFolder
|
||||
.Should()
|
||||
|
@ -86,11 +86,30 @@ A command is running to initially populate your local package cache, to improve
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void ItCreatesASentinelFileUnderTheNuGetCacheFolder()
|
||||
public void ItRestoresTheNuGetPackagesToTheNuGetCacheFolder()
|
||||
{
|
||||
List<string> expectedDirectories = new List<string>()
|
||||
{
|
||||
"microsoft.netcore.app",
|
||||
"microsoft.aspnetcore.diagnostics",
|
||||
"microsoft.aspnetcore.mvc",
|
||||
"microsoft.aspnetcore.razor.tools",
|
||||
"microsoft.aspnetcore.routing",
|
||||
"microsoft.aspnetcore.server.iisintegration",
|
||||
"microsoft.aspnetcore.server.kestrel",
|
||||
"microsoft.aspnetcore.staticfiles",
|
||||
"microsoft.extensions.configuration.environmentvariables",
|
||||
"microsoft.extensions.configuration.json",
|
||||
"microsoft.extensions.logging",
|
||||
"microsoft.extensions.logging.console",
|
||||
"microsoft.extensions.logging.debug",
|
||||
"microsoft.extensions.options.configurationextensions",
|
||||
"microsoft.visualstudio.web.browserlink.loader",
|
||||
};
|
||||
|
||||
_nugetCacheFolder
|
||||
.Should()
|
||||
.HaveDirectory("microsoft.netcore.app");
|
||||
.HaveDirectories(expectedDirectories);
|
||||
}
|
||||
|
||||
private string GetDotnetVersion()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue