Skip to content

Commit

Permalink
Updating NuGet solution file (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman authored Sep 5, 2023
1 parent e5e7bd0 commit 62d1bdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/utils/dotnet/solution/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Solution interface {
BuildInfo(module string, log utils.Log) (*buildinfo.BuildInfo, error)
Marshal() ([]byte, error)
GetProjects() []project.Project
DependenciesSourcesExist() bool
}

var projectRegExp *regexp.Regexp
Expand Down Expand Up @@ -139,6 +140,10 @@ func (solution *solution) GetProjects() []project.Project {
return solution.projects
}

func (solution *solution) DependenciesSourcesExist() bool {
return len(solution.dependenciesSources) > 0
}

func (solution *solution) getProjectsListFromSlns(log utils.Log) ([]project.Project, error) {
slnProjects, err := solution.getProjectsFromSlns()
if err != nil {
Expand Down

0 comments on commit 62d1bdd

Please sign in to comment.