我有这个(工作)代码,pkgName
“myNugetPackage”在哪里
var componentModel = (IComponentModel)GetService(typeof(SComponentModel));
IVsPackageInstallerServices installerServices = componentModel.GetService<IVsPackageInstallerServices>();
if (!installerServices.IsPackageInstalled(project, pkgName))
{
IVsPackageInstaller installer = (IVsPackageInstaller)componentModel.GetService<IVsPackageInstaller>();
installer.InstallPackage("All", project, pkgName, (System.Version)null, false);
}
不幸的是,我必须修改 nuget 包“myNugetPackage”,但我不知道在我的电脑上哪里可以找到它。
PackageInstaller 查找 nuget 包的路径是什么?