microsoft / microsoft/slngen

Allow defining project dependencies.

Open
#321 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
466
Forks
89
PR merge metrics
No merged PRs in 30d

Description

Hello.

In my company's projects we now have a few native libraries that are wrapped by CppSharp, and that requires dedicated projects to setup the bindings. We'd like to add dependencies to those projects so they build order is correct.

This is possible with the ProjectDependencies section:

Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NativeWrapper", "NativeWrapper.vcxproj", "{WRAPPER-GUID}"
	ProjectSection(ProjectDependencies) = postProject
		{BINDING-GENERATOR-GUID} = {BINDING-GENERATOR-GUID}
	EndProjectSection
EndProject

Currently it seems it is not possible to generate this information with SlnGen.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how SlnGen emits project entries in generated .sln files. Use the ProjectDependencies section in the issue as the expected output, then verify that declared wrapper and binding-generator dependencies produce the correct build order in a generated solution.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.