コード例 #1
0
        private void ReadNugetConfig(out string feedUrl, out string feedName)
        {
            GVFSProcess gvfs = new GVFSProcess(GVFSTestConfig.PathToGVFS, enlistmentRoot: null, localCacheRoot: null);

            feedUrl  = gvfs.ReadConfig("upgrade.feedurl");
            feedName = gvfs.ReadConfig("upgrade.feedpackagename");
        }
コード例 #2
0
        private void ReadNugetConfig(out string feedUrl, out string feedName)
        {
            GVFSProcess gvfs = new GVFSProcess(GVFSTestConfig.PathToGVFS, enlistmentRoot: null, localCacheRoot: null);

            // failOnError is set to false because gvfs config read can exit with
            // GenericError when the key-value is not available in config file. That
            // is normal.
            feedUrl  = gvfs.ReadConfig(NugetFeedURLKey, failOnError: false);
            feedName = gvfs.ReadConfig(NugetFeedPackageNameKey, failOnError: false);
        }