1. Create new website
2. Delete packages folder
3. build
Actual:
packages are not restored
Expected:
packages to be restore
packageconfigexists is not able to find the packages.config file in the website. Instead it's looking at the solution for the config file.
> NuGet.VsEvents.dll!NuGet.VisualStudio.VsUtility.PackagesConfigExists(EnvDTE.Solution solution) Line 140 C#
NuGet.VsEvents.dll!NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action) Line 83 + 0x17 bytes C#
EnvDTE.dll!EnvDTE._dispBuildEvents_SinkHelper.OnBuildBegin(EnvDTE.vsBuildScope A_1, EnvDTE.vsBuildAction A_2) + 0x42 bytes
foreach (Project project in solution.Projects)
{
if (PackagesConfigExists(project))
{
return true;
}
}
2. Delete packages folder
3. build
Actual:
packages are not restored
Expected:
packages to be restore
packageconfigexists is not able to find the packages.config file in the website. Instead it's looking at the solution for the config file.
> NuGet.VsEvents.dll!NuGet.VisualStudio.VsUtility.PackagesConfigExists(EnvDTE.Solution solution) Line 140 C#
NuGet.VsEvents.dll!NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action) Line 83 + 0x17 bytes C#
EnvDTE.dll!EnvDTE._dispBuildEvents_SinkHelper.OnBuildBegin(EnvDTE.vsBuildScope A_1, EnvDTE.vsBuildAction A_2) + 0x42 bytes
foreach (Project project in solution.Projects)
{
if (PackagesConfigExists(project))
{
return true;
}
}