Example #1
0
        private void ChangeGeneratedFiles()
        {
            var msbuildData = _repoData.RepoConfig.MSBuildGenerateData;

            if (msbuildData.HasValue)
            {
                var fileName = new FileName(_generateDirectory, msbuildData.Value.RelativeFilePath);
                var packages = GenerateUtil.GetFilteredPackages(msbuildData.Value, _repoData);
                GenerateUtil.WriteMSBuildContent(fileName, packages);
            }
        }
Example #2
0
        private void ChangeGeneratedFiles(IEnumerable <NuGetPackage> floatingPackages)
        {
            var msbuildData = _repoData.RepoConfig.MSBuildGenerateData;

            if (msbuildData.HasValue)
            {
                var fileName = new FileName(_repoData.SourcesPath, msbuildData.Value.RelativeFileName);
                var packages = GenerateUtil.GetFilteredPackages(msbuildData.Value, _repoData);
                GenerateUtil.WriteMSBuildContent(fileName, packages);
            }
        }